Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GlushkovStageBuilder

A GlushkovStageBuilder is responsible for evaluation a SPARQL property path query using a Glushkov state automata.

author

Arthur Trottier

author

Charlotte Cogan

author

Julien Aimonier-Davat

Hierarchy

Index

Constructors

constructor

Properties

Protected _builder

_builder: PlanBuilder | null = null

Protected _dataset

_dataset: Dataset

Accessors

builder

dataset

Methods

_buildIterator

_executePropertyPath

_getGraph

  • _getGraph(iris: string[]): Graph
  • Return the RDF Graph to be used for BGP evaluation.

    • If iris is empty, returns the default graph
    • If iris has a single entry, returns the corresponding named graph
    • Otherwise, returns an UnionGraph based on the provided iris

    Parameters

    • iris: string[]

      List of Graph's iris

    Returns Graph

    An RDF Graph

evaluatePropertyPath

  • Continues the execution of the SPARQL property path and builds the result's paths

    Parameters

    • rPath: ResultPath

      Path being processed

    • obj: string

      Path object

    • graph: Graph

      RDF graph

    • context: ExecutionContext

      Execution context

    • automaton: Automaton<number, string>

      Automaton used to evaluate the SPARQL property path

    • forward: boolean

      if True the walk proceeds through outgoing edges, otherwise the walk proceeds in reverse direction

    Returns PipelineStage<TripleObject>

    An Observable which yield RDF triples matching the property path

execute

reflexiveClosure

startPropertyPathEvaluation

  • Starts the execution of a property path against a RDF Graph.

    • executes the reflexive closure if the path expression contains the empty word
    • builds the first step of the result's paths

    Parameters

    • subject: string

      Path subject

    • obj: string

      Path object

    • graph: Graph

      RDF graph

    • context: ExecutionContext

      Execution context

    • automaton: Automaton<number, string>

      Automaton used to evaluate the SPARQL property path

    • forward: boolean

      if True the walk starts from the subject, otherwise the walk starts from the object

    Returns PipelineStage<TripleObject>

    An Observable which yield RDF triples matching the property path

Generated using TypeDoc