Show / Hide Table of Contents

Class GenericQueryProcessor

A SPARQL Query Processor where the query is processed by passing it to the Query() method of an IQueryableStorage.

Inheritance
object
QueryProcessorBase
GenericQueryProcessor
Implements
ISparqlQueryProcessor
Inherited Members
QueryProcessorBase.ProcessQuery(SparqlQuery, GraphCallback, SparqlResultsCallback, object)
QueryProcessorBase.ProcessQuery(IRdfHandler, ISparqlResultsHandler, SparqlQuery, QueryCallback, object)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Query
Assembly: dotNetRdf.dll
Syntax
public class GenericQueryProcessor : QueryProcessorBase, ISparqlQueryProcessor

Constructors

| Edit this page View Source

GenericQueryProcessor(IQueryableStorage)

Creates a new Generic Query Processor.

Declaration
public GenericQueryProcessor(IQueryableStorage manager)
Parameters
Type Name Description
IQueryableStorage manager

Generic IO Manager.

Methods

| Edit this page View Source

ProcessQuery(IRdfHandler, ISparqlResultsHandler, SparqlQuery)

Processes a SPARQL Query passing the results to the RDF or Results handler as appropriate.

Declaration
public override void ProcessQuery(IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, SparqlQuery query)
Parameters
Type Name Description
IRdfHandler rdfHandler

RDF Handler.

ISparqlResultsHandler resultsHandler

Results Handler.

SparqlQuery query

SPARQL Query.

Overrides
QueryProcessorBase.ProcessQuery(IRdfHandler, ISparqlResultsHandler, SparqlQuery)
| Edit this page View Source

ProcessQuery(SparqlQuery)

Processes a SPARQL Query.

Declaration
public object ProcessQuery(SparqlQuery query)
Parameters
Type Name Description
SparqlQuery query

SPARQL Query.

Returns
Type Description
object
| Edit this page View Source

ProcessQueryAsync(IRdfHandler, ISparqlResultsHandler, SparqlQuery)

Process a SPARQL query asynchronously, passing the results to teh relevant handler.

Declaration
public Task ProcessQueryAsync(IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, SparqlQuery query)
Parameters
Type Name Description
IRdfHandler rdfHandler

RDF handler invoked for queries that return RDF graphs.

ISparqlResultsHandler resultsHandler

Results handler invoked for queries that return SPARQL results sets.

SparqlQuery query

SPARQL query.

Returns
Type Description
Task
| Edit this page View Source

ProcessQueryAsync(SparqlQuery)

Process a SPARQL query asynchronously returning either a SparqlResultSet or a IGraph depending on the type of the query.

Declaration
public Task<object> ProcessQueryAsync(SparqlQuery query)
Parameters
Type Name Description
SparqlQuery query

SPARQL query.

Returns
Type Description
Task<object>

Either an <see cref="IGraph">IGraph</see> instance of a <see cref="SparqlResultSet">SparqlResultSet</see> depending on the type of the query.

Implements

ISparqlQueryProcessor

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • GenericQueryProcessor(IQueryableStorage)
  • Methods
    • ProcessQuery(IRdfHandler, ISparqlResultsHandler, SparqlQuery)
    • ProcessQuery(SparqlQuery)
    • ProcessQueryAsync(IRdfHandler, ISparqlResultsHandler, SparqlQuery)
    • ProcessQueryAsync(SparqlQuery)
  • Implements
  • Extension Methods
Back to top Generated by DocFX