Click or drag to resize

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

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