Class SimpleQueryProcessor
A SPARQL Query Processor where the query is processed by passing it to the Execute
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 |
---|---|---|
INatively |
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 |
---|---|---|
IRdf |
rdfHandler | RDF Handler. |
ISparql |
resultsHandler | Results Handler. |
Sparql |
query | SPARQL Query. |
Overrides
| Improve this Doc View SourceProcessQuery(SparqlQuery)
Processes a SPARQL Query.
Declaration
public object ProcessQuery(SparqlQuery query)
Parameters
Type | Name | Description |
---|---|---|
Sparql |
query | SPARQL Query. |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
IRdf |
rdfHandler | RDF handler invoked for queries that return RDF graphs. |
ISparql |
resultsHandler | Results handler invoked for queries that return SPARQL results sets. |
Sparql |
query | SPARQL query. |
Returns
Type | Description |
---|---|
System. |
ProcessQueryAsync(SparqlQuery)
Process a SPARQL query asynchronously returning either a Sparql
Declaration
public Task<object> ProcessQueryAsync(SparqlQuery query)
Parameters
Type | Name | Description |
---|---|---|
Sparql |
query | SPARQL query. |
Returns
Type | Description |
---|---|
System. |
Either an <see cref="IGraph">IGraph</see> instance of a <see cref="SparqlResultSet">SparqlResultSet</see> depending on the type of the query. |