Click or drag to resize

LeviathanQueryProcessorProcessQuery 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.QuerySparqlQuery
SPARQL QUery.
rdfCallback
Type: VDS.RDFGraphCallback
Callback for queries that return a Graph.
resultsCallback
Type: VDS.RDFSparqlResultsCallback
Callback for queries that return a Result Set.
state
Type: SystemObject
State to pass to the callback.

Implements

ISparqlQueryProcessorProcessQuery(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