QueryService.Query Method (String, GraphCallback, SparqlResultsCallback, Object) |
Makes a SPARQL Query against the Knowledge Base.
Namespace:
VDS.RDF.Query.Inference.Pellet.Services
Assembly:
dotNetRDF (in dotNetRDF.dll) Version:
Syntaxpublic void Query(
string sparqlQuery,
GraphCallback graphCallback,
SparqlResultsCallback resultsCallback,
Object state
)
Public Sub Query (
sparqlQuery As String,
graphCallback As GraphCallback,
resultsCallback As SparqlResultsCallback,
state As Object
)
Parameters
- sparqlQuery
- Type: System.String
SPARQL Query. - graphCallback
- Type: VDS.RDF.GraphCallback
Callback to invoke for queries that return a Graph. - resultsCallback
- Type: VDS.RDF.SparqlResultsCallback
Callback to invoke for queries that return a Result Set. - state
- Type: System.Object
State to pass to whichever callback function is invoked.
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