Click or drag to resize

QueryServiceQuery 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:
Syntax
public void Query(
	string sparqlQuery,
	GraphCallback graphCallback,
	SparqlResultsCallback resultsCallback,
	Object state
)

Parameters

sparqlQuery
Type: SystemString
SPARQL Query.
graphCallback
Type: VDS.RDFGraphCallback
Callback to invoke for queries that return a Graph.
resultsCallback
Type: VDS.RDFSparqlResultsCallback
Callback to invoke for queries that return a Result Set.
state
Type: SystemObject
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