Click or drag to resize

GraphExtensions.ExecuteQuery Method (IGraph, IRdfHandler, ISparqlResultsHandler, SparqlParameterizedString)

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,
	SparqlParameterizedString sparqlQuery
)

Parameters

g
Type: VDS.RDF.IGraph
Graph to query.
rdfHandler
Type: VDS.RDF.IRdfHandler
RDF Handler.
resultsHandler
Type: VDS.RDF.ISparqlResultsHandler
SPARQL Results Handler.
sparqlQuery
Type: VDS.RDF.Query.SparqlParameterizedString
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