Click or drag to resize

RemoteQueryProcessor.ProcessQuery Method (SparqlQuery, GraphCallback, SparqlResultsCallback, Object)

Processes a SPARQL Query asynchronously invoking the relevant callback when the query completes.

Namespace:  VDS.RDF.Query
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public void ProcessQuery(
	SparqlQuery query,
	GraphCallback rdfCallback,
	SparqlResultsCallback resultsCallback,
	Object state
)

Parameters

query
Type: VDS.RDF.Query.SparqlQuery
SPARQL QUery.
rdfCallback
Type: VDS.RDF.GraphCallback
Callback for queries that return a Graph.
resultsCallback
Type: VDS.RDF.SparqlResultsCallback
Callback for queries that return a Result Set.
state
Type: System.Object
State to pass to the callback.

Implements

ISparqlQueryProcessor.ProcessQuery(SparqlQuery, GraphCallback, SparqlResultsCallback, Object)
Remarks
In the event of a success the appropriate callback will be invoked, if there is an error both callbacks will be invoked and passed an instance of AsyncError which contains details of the error and the original state information passed in.
See Also