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
| Improve this Doc View SourceSimpleQueryProcessor(INativelyQueryableStore)
Creates a new Simple Query Processor.
Declaration
public SimpleQueryProcessor(INativelyQueryableStore store)
Parameters
Type | Name | Description |
---|---|---|
INativelyQueryableStore | store | Triple Store. |
Methods
| Improve this Doc 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
| Improve this Doc View SourceProcessQuery(SparqlQuery)
Processes a SPARQL Query.
Declaration
public object ProcessQuery(SparqlQuery query)
Parameters
Type | Name | Description |
---|---|---|
SparqlQuery | query | SPARQL Query. |
Returns
Type | Description |
---|---|
System.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 |
---|---|
System.Threading.Tasks.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 |
---|---|
System.Threading.Tasks.Task<TResult><System.Object> | Either an <see cref="IGraph">IGraph</see> instance of a <see cref="SparqlResultSet">SparqlResultSet</see> depending on the type of the query. |