Click or drag to resize

QueryServiceQuery Method (IRdfHandler, ISparqlResultsHandler, String, QueryCallback, Object)

Processes a SPARQL Query against the Knowledge Base passing the results to the RDF or Results handler as appropriate.

Namespace:  VDS.RDF.Query.Inference.Pellet.Services
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public void Query(
	IRdfHandler rdfHandler,
	ISparqlResultsHandler resultsHandler,
	string sparqlQuery,
	QueryCallback callback,
	Object state
)

Parameters

rdfHandler
Type: VDS.RDFIRdfHandler
RDF Handler.
resultsHandler
Type: VDS.RDFISparqlResultsHandler
Results Handler.
sparqlQuery
Type: SystemString
SPARQL Query.
callback
Type: VDS.RDFQueryCallback
Callback to invoke once handling of results has completed.
state
Type: SystemObject
State to pass to the callback.
Remarks
If the operation succeeds the callback will be invoked normally, if there is an error the callback will be invoked with a instance of AsyncError passed as the state which provides access to the error message and the original state passed in.
See Also