QueryService.Query 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:
Syntaxpublic void Query(
IRdfHandler rdfHandler,
ISparqlResultsHandler resultsHandler,
string sparqlQuery,
QueryCallback callback,
Object state
)
Public Sub Query (
rdfHandler As IRdfHandler,
resultsHandler As ISparqlResultsHandler,
sparqlQuery As String,
callback As QueryCallback,
state As Object
)
Parameters
- rdfHandler
- Type: VDS.RDF.IRdfHandler
RDF Handler. - resultsHandler
- Type: VDS.RDF.ISparqlResultsHandler
Results Handler. - sparqlQuery
- Type: System.String
SPARQL Query. - callback
- Type: VDS.RDF.QueryCallback
Callback to invoke once handling of results has completed. - state
- Type: System.Object
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