LeviathanQueryProcessorProcessQuery Method (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.
Namespace:
VDS.RDF.Query
Assembly:
dotNetRDF (in dotNetRDF.dll) Version:
Syntax public void ProcessQuery(
IRdfHandler rdfHandler,
ISparqlResultsHandler resultsHandler,
SparqlQuery query,
QueryCallback callback,
Object state
)
Public Sub ProcessQuery (
rdfHandler As IRdfHandler,
resultsHandler As ISparqlResultsHandler,
query As SparqlQuery,
callback As QueryCallback,
state As Object
)
Parameters
- rdfHandler
- Type: VDS.RDFIRdfHandler
RDF Handler. - resultsHandler
- Type: VDS.RDFISparqlResultsHandler
Results Handler. - query
- Type: VDS.RDF.QuerySparqlQuery
SPARQL Query. - callback
- Type: VDS.RDFQueryCallback
Callback. - state
- Type: SystemObject
State to pass to the callback.
Implements
ISparqlQueryProcessorProcessQuery(IRdfHandler, ISparqlResultsHandler, SparqlQuery, QueryCallback, Object)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.
See Also