Class SimpleQueryProcessor
A SPARQL Query Processor where the query is processed by passing it to the ExecuteQuery() method of an INativelyQueryableStore.
Implements
Inherited Members
Namespace: VDS.RDF.Query
Assembly: dotNetRdf.dll
Syntax
public class SimpleQueryProcessor : QueryProcessorBase, ISparqlQueryProcessor
Constructors
| Edit this page View SourceSimpleQueryProcessor(INativelyQueryableStore)
Creates a new Simple Query Processor.
Declaration
public SimpleQueryProcessor(INativelyQueryableStore store)
Parameters
Type | Name | Description |
---|---|---|
INativelyQueryableStore | store | Triple Store. |
Methods
| Edit this page View SourceProcessQuery(IRdfHandler, ISparqlResultsHandler, SparqlQuery)
Processes a SPARQL Query passing the results to the RDF or Results handler as appropriate.
Declaration
public override void ProcessQuery(IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, SparqlQuery query)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | rdfHandler | RDF Handler. |
ISparqlResultsHandler | resultsHandler | Results Handler. |
SparqlQuery | query | SPARQL Query. |
Overrides
| Edit this page View SourceProcessQuery(SparqlQuery)
Processes a SPARQL Query.
Declaration
public object ProcessQuery(SparqlQuery query)
Parameters
Type | Name | Description |
---|---|---|
SparqlQuery | query | SPARQL Query. |
Returns
Type | Description |
---|---|
object |
ProcessQueryAsync(IRdfHandler, ISparqlResultsHandler, SparqlQuery)
Process a SPARQL query asynchronously, passing the results to teh relevant handler.
Declaration
public Task ProcessQueryAsync(IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, SparqlQuery query)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | rdfHandler | RDF handler invoked for queries that return RDF graphs. |
ISparqlResultsHandler | resultsHandler | Results handler invoked for queries that return SPARQL results sets. |
SparqlQuery | query | SPARQL query. |
Returns
Type | Description |
---|---|
Task |
ProcessQueryAsync(SparqlQuery)
Process a SPARQL query asynchronously returning either a SparqlResultSet or a IGraph depending on the type of the query.
Declaration
public Task<object> ProcessQueryAsync(SparqlQuery query)
Parameters
Type | Name | Description |
---|---|---|
SparqlQuery | query | SPARQL query. |
Returns
Type | Description |
---|---|
Task<object> | Either an <see cref="IGraph">IGraph</see> instance of a <see cref="SparqlResultSet">SparqlResultSet</see> depending on the type of the query. |