Show / Hide Table of Contents

Class LeviathanQueryProcessor

Default SPARQL Query Processor provided by the library's Leviathan SPARQL Engine.
Inheritance
System.Object
LeviathanQueryProcessor
ExplainQueryProcessor
Implements
ISparqlQueryProcessor
ISparqlQueryAlgebraProcessor<BaseMultiset, SparqlEvaluationContext>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Query
Assembly: dotNetRDF.dll
Syntax
public class LeviathanQueryProcessor : ISparqlQueryProcessor, ISparqlQueryAlgebraProcessor<BaseMultiset, SparqlEvaluationContext>
Remarks

The Leviathan Query Processor simply invokes the ISparqlAlgebra method of the SPARQL Algebra it is asked to process.

In future releases much of the Leviathan Query engine logic will be moved into this class to make it possible for implementors to override specific bits of the algebra processing but this is not possible at this time.

Constructors

| Improve this Doc View Source

LeviathanQueryProcessor(IInMemoryQueryableStore)

Creates a new Leviathan Query Processor.
Declaration
public LeviathanQueryProcessor(IInMemoryQueryableStore store)
Parameters
Type Name Description
IInMemoryQueryableStore store Triple Store.
| Improve this Doc View Source

LeviathanQueryProcessor(ISparqlDataset)

Creates a new Leviathan Query Processor.
Declaration
public LeviathanQueryProcessor(ISparqlDataset data)
Parameters
Type Name Description
ISparqlDataset data SPARQL Dataset.

Methods

| Improve this Doc View Source

GetContext()

Creates a new Evaluation Context.
Declaration
protected SparqlEvaluationContext GetContext()
Returns
Type Description
SparqlEvaluationContext
| Improve this Doc View Source

ProcessAlgebra(ISparqlAlgebra, SparqlEvaluationContext)

Processes SPARQL Algebra.
Declaration
public BaseMultiset ProcessAlgebra(ISparqlAlgebra algebra, SparqlEvaluationContext context)
Parameters
Type Name Description
ISparqlAlgebra algebra Algebra.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessAsk(Ask, SparqlEvaluationContext)

Processes an Ask.
Declaration
public virtual BaseMultiset ProcessAsk(Ask ask, SparqlEvaluationContext context)
Parameters
Type Name Description
Ask ask Ask.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessBgp(IBgp, SparqlEvaluationContext)

Processes a BGP.
Declaration
public virtual BaseMultiset ProcessBgp(IBgp bgp, SparqlEvaluationContext context)
Parameters
Type Name Description
IBgp bgp BGP.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessBindings(Bindings, SparqlEvaluationContext)

Processes a Bindings modifier.
Declaration
public virtual BaseMultiset ProcessBindings(Bindings b, SparqlEvaluationContext context)
Parameters
Type Name Description
Bindings b Bindings.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessDistinct(Distinct, SparqlEvaluationContext)

Processes a Distinct modifier.
Declaration
public virtual BaseMultiset ProcessDistinct(Distinct distinct, SparqlEvaluationContext context)
Parameters
Type Name Description
Distinct distinct Distinct modifier.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessExistsJoin(IExistsJoin, SparqlEvaluationContext)

Processes an Exists Join.
Declaration
public virtual BaseMultiset ProcessExistsJoin(IExistsJoin existsJoin, SparqlEvaluationContext context)
Parameters
Type Name Description
IExistsJoin existsJoin Exists Join.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessExtend(Extend, SparqlEvaluationContext)

Processes an Extend.
Declaration
public virtual BaseMultiset ProcessExtend(Extend extend, SparqlEvaluationContext context)
Parameters
Type Name Description
Extend extend Extend.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessFilter(IFilter, SparqlEvaluationContext)

Processes a Filter.
Declaration
public virtual BaseMultiset ProcessFilter(IFilter filter, SparqlEvaluationContext context)
Parameters
Type Name Description
IFilter filter Filter.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessGraph(Graph, SparqlEvaluationContext)

Processes a Graph.
Declaration
public virtual BaseMultiset ProcessGraph(Graph graph, SparqlEvaluationContext context)
Parameters
Type Name Description
Graph graph Graph.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessGroupBy(GroupBy, SparqlEvaluationContext)

Processes a Group By.
Declaration
public virtual BaseMultiset ProcessGroupBy(GroupBy groupBy, SparqlEvaluationContext context)
Parameters
Type Name Description
GroupBy groupBy Group By.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessHaving(Having, SparqlEvaluationContext)

Processes a Having.
Declaration
public virtual BaseMultiset ProcessHaving(Having having, SparqlEvaluationContext context)
Parameters
Type Name Description
Having having Having.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessJoin(IJoin, SparqlEvaluationContext)

Processes a Join.
Declaration
public virtual BaseMultiset ProcessJoin(IJoin join, SparqlEvaluationContext context)
Parameters
Type Name Description
IJoin join Join.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessLeftJoin(ILeftJoin, SparqlEvaluationContext)

Processes a LeftJoin.
Declaration
public virtual BaseMultiset ProcessLeftJoin(ILeftJoin leftJoin, SparqlEvaluationContext context)
Parameters
Type Name Description
ILeftJoin leftJoin Left Join.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessMinus(IMinus, SparqlEvaluationContext)

Processes a Minus.
Declaration
public virtual BaseMultiset ProcessMinus(IMinus minus, SparqlEvaluationContext context)
Parameters
Type Name Description
IMinus minus Minus.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessNegatedPropertySet(NegatedPropertySet, SparqlEvaluationContext)

Processes a Negated Property Set.
Declaration
public virtual BaseMultiset ProcessNegatedPropertySet(NegatedPropertySet negPropSet, SparqlEvaluationContext context)
Parameters
Type Name Description
NegatedPropertySet negPropSet Negated Property Set.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessNullOperator(NullOperator, SparqlEvaluationContext)

Processes a Null Operator.
Declaration
public virtual BaseMultiset ProcessNullOperator(NullOperator nullOp, SparqlEvaluationContext context)
Parameters
Type Name Description
NullOperator nullOp Null Operator.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessOneOrMorePath(OneOrMorePath, SparqlEvaluationContext)

Processes a One or More Path.
Declaration
public virtual BaseMultiset ProcessOneOrMorePath(OneOrMorePath path, SparqlEvaluationContext context)
Parameters
Type Name Description
OneOrMorePath path Path.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessOrderBy(OrderBy, SparqlEvaluationContext)

Processes an Order By.
Declaration
public virtual BaseMultiset ProcessOrderBy(OrderBy orderBy, SparqlEvaluationContext context)
Parameters
Type Name Description
OrderBy orderBy
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessPropertyPath(PropertyPath, SparqlEvaluationContext)

Processes a Property Path.
Declaration
public virtual BaseMultiset ProcessPropertyPath(PropertyPath path, SparqlEvaluationContext context)
Parameters
Type Name Description
PropertyPath path Path.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessQuery(IRdfHandler, ISparqlResultsHandler, SparqlQuery)

Processes a SPARQL Query sending the results to a RDF/SPARQL Results handler as appropriate.
Declaration
public void ProcessQuery(IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, SparqlQuery query)
Parameters
Type Name Description
IRdfHandler rdfHandler RDF Handler.
ISparqlResultsHandler resultsHandler Results Handler.
SparqlQuery query SPARQL Query.
| Improve this Doc View Source

ProcessQuery(IRdfHandler, ISparqlResultsHandler, SparqlQuery, QueryCallback, Object)

Processes a SPARQL Query asynchronously passing the results to the relevant handler and invoking the callback when the query completes.
Declaration
public void ProcessQuery(IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, SparqlQuery query, QueryCallback callback, object state)
Parameters
Type Name Description
IRdfHandler rdfHandler RDF Handler.
ISparqlResultsHandler resultsHandler Results Handler.
SparqlQuery query SPARQL Query.
QueryCallback callback Callback.
System.Object state State to pass to the callback.
Remarks
In the event of a success the callback will be invoked, if there is an error the callback will be invoked and passed an instance of AsyncError which contains details of the error and the original state information passed in.
| Improve this Doc View Source

ProcessQuery(SparqlQuery)

Processes a SPARQL Query.
Declaration
public object ProcessQuery(SparqlQuery query)
Parameters
Type Name Description
SparqlQuery query SPARQL Query.
Returns
Type Description
System.Object
| Improve this Doc View Source

ProcessQuery(SparqlQuery, GraphCallback, SparqlResultsCallback, Object)

Processes a SPARQL Query asynchronously invoking the relevant callback when the query completes.
Declaration
public void ProcessQuery(SparqlQuery query, GraphCallback rdfCallback, SparqlResultsCallback resultsCallback, object state)
Parameters
Type Name Description
SparqlQuery query SPARQL QUery.
GraphCallback rdfCallback Callback for queries that return a Graph.
SparqlResultsCallback resultsCallback Callback for queries that return a Result Set.
System.Object state State to pass to the callback.
Remarks
In the event of a success the appropriate callback will be invoked, if there is an error both callbacks will be invoked and passed an instance of AsyncError which contains details of the error and the original state information passed in.
| Improve this Doc View Source

ProcessReduced(Reduced, SparqlEvaluationContext)

Processes a Reduced modifier.
Declaration
public virtual BaseMultiset ProcessReduced(Reduced reduced, SparqlEvaluationContext context)
Parameters
Type Name Description
Reduced reduced Reduced modifier.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessSelect(Select, SparqlEvaluationContext)

Processes a Select.
Declaration
public virtual BaseMultiset ProcessSelect(Select select, SparqlEvaluationContext context)
Parameters
Type Name Description
Select select Select.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessSelectDistinctGraphs(SelectDistinctGraphs, SparqlEvaluationContext)

Processes a Select Distinct Graphs.
Declaration
public virtual BaseMultiset ProcessSelectDistinctGraphs(SelectDistinctGraphs selDistGraphs, SparqlEvaluationContext context)
Parameters
Type Name Description
SelectDistinctGraphs selDistGraphs Select Distinct Graphs.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessService(Service, SparqlEvaluationContext)

Processes a Service.
Declaration
public virtual BaseMultiset ProcessService(Service service, SparqlEvaluationContext context)
Parameters
Type Name Description
Service service Service.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessSlice(Slice, SparqlEvaluationContext)

Processes a Slice modifier.
Declaration
public virtual BaseMultiset ProcessSlice(Slice slice, SparqlEvaluationContext context)
Parameters
Type Name Description
Slice slice Slice modifier.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessSubQuery(SubQuery, SparqlEvaluationContext)

Processes a Subquery.
Declaration
public virtual BaseMultiset ProcessSubQuery(SubQuery subquery, SparqlEvaluationContext context)
Parameters
Type Name Description
SubQuery subquery Subquery.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessUnion(IUnion, SparqlEvaluationContext)

Processes a Union.
Declaration
public virtual BaseMultiset ProcessUnion(IUnion union, SparqlEvaluationContext context)
Parameters
Type Name Description
IUnion union Union.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessUnknownOperator(ISparqlAlgebra, SparqlEvaluationContext)

Processes a Unknown Operator.
Declaration
public virtual BaseMultiset ProcessUnknownOperator(ISparqlAlgebra algebra, SparqlEvaluationContext context)
Parameters
Type Name Description
ISparqlAlgebra algebra Unknown Operator.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessZeroLengthPath(ZeroLengthPath, SparqlEvaluationContext)

Processes a Zero Length Path.
Declaration
public virtual BaseMultiset ProcessZeroLengthPath(ZeroLengthPath path, SparqlEvaluationContext context)
Parameters
Type Name Description
ZeroLengthPath path Path.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset
| Improve this Doc View Source

ProcessZeroOrMorePath(ZeroOrMorePath, SparqlEvaluationContext)

Processes a Zero or More Path.
Declaration
public virtual BaseMultiset ProcessZeroOrMorePath(ZeroOrMorePath path, SparqlEvaluationContext context)
Parameters
Type Name Description
ZeroOrMorePath path Path.
SparqlEvaluationContext context SPARQL Evaluation Context.
Returns
Type Description
BaseMultiset

Implements

ISparqlQueryProcessor
ISparqlQueryAlgebraProcessor<TResult, TContext>

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • LeviathanQueryProcessor(IInMemoryQueryableStore)
    • LeviathanQueryProcessor(ISparqlDataset)
  • Methods
    • GetContext()
    • ProcessAlgebra(ISparqlAlgebra, SparqlEvaluationContext)
    • ProcessAsk(Ask, SparqlEvaluationContext)
    • ProcessBgp(IBgp, SparqlEvaluationContext)
    • ProcessBindings(Bindings, SparqlEvaluationContext)
    • ProcessDistinct(Distinct, SparqlEvaluationContext)
    • ProcessExistsJoin(IExistsJoin, SparqlEvaluationContext)
    • ProcessExtend(Extend, SparqlEvaluationContext)
    • ProcessFilter(IFilter, SparqlEvaluationContext)
    • ProcessGraph(Graph, SparqlEvaluationContext)
    • ProcessGroupBy(GroupBy, SparqlEvaluationContext)
    • ProcessHaving(Having, SparqlEvaluationContext)
    • ProcessJoin(IJoin, SparqlEvaluationContext)
    • ProcessLeftJoin(ILeftJoin, SparqlEvaluationContext)
    • ProcessMinus(IMinus, SparqlEvaluationContext)
    • ProcessNegatedPropertySet(NegatedPropertySet, SparqlEvaluationContext)
    • ProcessNullOperator(NullOperator, SparqlEvaluationContext)
    • ProcessOneOrMorePath(OneOrMorePath, SparqlEvaluationContext)
    • ProcessOrderBy(OrderBy, SparqlEvaluationContext)
    • ProcessPropertyPath(PropertyPath, SparqlEvaluationContext)
    • ProcessQuery(IRdfHandler, ISparqlResultsHandler, SparqlQuery)
    • ProcessQuery(IRdfHandler, ISparqlResultsHandler, SparqlQuery, QueryCallback, Object)
    • ProcessQuery(SparqlQuery)
    • ProcessQuery(SparqlQuery, GraphCallback, SparqlResultsCallback, Object)
    • ProcessReduced(Reduced, SparqlEvaluationContext)
    • ProcessSelect(Select, SparqlEvaluationContext)
    • ProcessSelectDistinctGraphs(SelectDistinctGraphs, SparqlEvaluationContext)
    • ProcessService(Service, SparqlEvaluationContext)
    • ProcessSlice(Slice, SparqlEvaluationContext)
    • ProcessSubQuery(SubQuery, SparqlEvaluationContext)
    • ProcessUnion(IUnion, SparqlEvaluationContext)
    • ProcessUnknownOperator(ISparqlAlgebra, SparqlEvaluationContext)
    • ProcessZeroLengthPath(ZeroLengthPath, SparqlEvaluationContext)
    • ProcessZeroOrMorePath(ZeroOrMorePath, SparqlEvaluationContext)
  • Implements
  • Extension Methods
Back to top Generated by DocFX