Click or drag to resize

GraphExtensionsExecuteQuery Method (IGraph, IRdfHandler, ISparqlResultsHandler, String)

Executes a SPARQL Query on a Graph handling the results using the handlers provided.

Namespace:  VDS.RDF
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public static void ExecuteQuery(
	this IGraph g,
	IRdfHandler rdfHandler,
	ISparqlResultsHandler resultsHandler,
	string sparqlQuery
)

Parameters

g
Type: VDS.RDFIGraph
Graph to query.
rdfHandler
Type: VDS.RDFIRdfHandler
RDF Handler.
resultsHandler
Type: VDS.RDFISparqlResultsHandler
SPARQL Results Handler.
sparqlQuery
Type: SystemString
SPARQL Query.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IGraph. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also