Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BGPStageBuilder

A BGPStageBuilder evaluates Basic Graph Patterns in a SPARQL query. Users can extend this class and overrides the "_buildIterator" method to customize BGP evaluation.

author

Thomas Minier

author

Corentin Marionneau

Hierarchy

Index

Constructors

constructor

Properties

Protected _builder

_builder: PlanBuilder | null = null

Protected _dataset

_dataset: Dataset

Accessors

builder

dataset

Methods

_buildFullTextSearchIterator

_buildIterator

_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

_replaceBlankNodes

  • _replaceBlankNodes(patterns: TripleObject[]): [TripleObject[], string[]]
  • Replace the blank nodes in a BGP by SPARQL variables

    Parameters

    • patterns: TripleObject[]

      BGP to rewrite, i.e., a set of triple patterns

    Returns [TripleObject[], string[]]

    A Tuple [Rewritten BGP, List of SPARQL variable added]

execute

Generated using TypeDoc