Interface ISparqlQueryProcessor
Interface for SPARQL Query Processors.
Namespace: VDS.RDF.Query
Assembly: dotNetRDF.dll
Syntax
public interface ISparqlQueryProcessor
Remarks
A SPARQL Query Processor is a class that knows how to evaluate SPARQL queries against some data source to which the processor has access.
The point of this interface is to allow for end users to implement custom query processors or to extend and modify the behaviour of the default Leviathan engine as required.
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
void ProcessQuery(IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, SparqlQuery query)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | rdfHandler | RDF Handler. |
ISparqlResultsHandler | resultsHandler | Results Handler. |
SparqlQuery | query | SPARQL Query. |
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
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. |
ProcessQuery(SparqlQuery)
Processes a SPARQL Query returning a IGraph instance or a SparqlResultSet depending on the type of the query.
Declaration
object ProcessQuery(SparqlQuery query)
Parameters
Type | Name | Description |
---|---|---|
SparqlQuery | query | SPARQL Query. |
Returns
Type | Description |
---|---|
System.Object | Either an IGraph instance of a SparqlResultSet depending on the type of the query. |
ProcessQuery(SparqlQuery, GraphCallback, SparqlResultsCallback, Object)
Processes a SPARQL Query asynchronously invoking the relevant callback when the query completes.
Declaration
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. |