Click or drag to resize

IQueryableStorage.Query Method (IRdfHandler, ISparqlResultsHandler, String)

Makes a SPARQL Query against the underlying store processing the resulting Graph/Result Set with a handler of your choice.

Namespace:  VDS.RDF.Storage
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
void Query(
	IRdfHandler rdfHandler,
	ISparqlResultsHandler resultsHandler,
	string sparqlQuery
)

Parameters

rdfHandler
Type: VDS.RDF.IRdfHandler
RDF Handler.
resultsHandler
Type: VDS.RDF.ISparqlResultsHandler
SPARQL Results Handler.
sparqlQuery
Type: System.String
SPARQL Query.
Exceptions
ExceptionCondition
RdfQueryExceptionThrown if an error occurs performing the query.
RdfStorageExceptionThrown if an error occurs performing the query.
RdfParseExceptionThrown if the query is invalid when validated by dotNetRDF prior to passing the query request to the store or if the request succeeds but the store returns malformed results.
RdfParserSelectionExceptionThrown if the store returns results in a format dotNetRDF does not understand.
See Also