Show / Hide Table of Contents

Class QueryProcessorBase

Provides a default implementation of the methods that allow a query processor to run asynchronously with a results callback.

Inheritance
object
QueryProcessorBase
GenericQueryProcessor
SimpleQueryProcessor
Inherited Members
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 abstract class QueryProcessorBase

Methods

| Edit this page View Source

ProcessQuery(IRdfHandler, ISparqlResultsHandler, SparqlQuery)

When overridden in a derived class, processes a SPARQL Query passing the results to the RDF or Results handler as appropriate.

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

RDF Handler.

ISparqlResultsHandler resultsHandler

Results Handler.

SparqlQuery query

SPARQL Query.

| Edit this page View Source

ProcessQuery(IRdfHandler, ISparqlResultsHandler, SparqlQuery, QueryCallback, object)

Processes a SPARQL Query asynchronously passing the results to the relevant handler and invoking the callback when the query completes.

Declaration
public void ProcessQuery(IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, SparqlQuery query, QueryCallback callback, object state)
Parameters
Type Name Description
IRdfHandler rdfHandler

RDF Handler.

ISparqlResultsHandler resultsHandler

Results Handler.

SparqlQuery query

SPARQL Query.

QueryCallback callback

Callback.

object state

State to pass to the callback.

Remarks

In the event of a success the callback will be invoked, if there is an error the callback will be invoked and passed an instance of AsyncError which contains details of the error and the original state information passed in.

| Edit this page View Source

ProcessQuery(SparqlQuery, GraphCallback, SparqlResultsCallback, object)

Processes a SPARQL Query asynchronously invoking the relevant callback when the query completes.

Declaration
public void ProcessQuery(SparqlQuery query, GraphCallback rdfCallback, SparqlResultsCallback resultsCallback, object state)
Parameters
Type Name Description
SparqlQuery query

SPARQL QUery.

GraphCallback rdfCallback

Callback for queries that return a Graph.

SparqlResultsCallback resultsCallback

Callback for queries that return a Result Set.

object state

State to pass to the callback.

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.

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Methods
    • ProcessQuery(IRdfHandler, ISparqlResultsHandler, SparqlQuery)
    • ProcessQuery(IRdfHandler, ISparqlResultsHandler, SparqlQuery, QueryCallback, object)
    • ProcessQuery(SparqlQuery, GraphCallback, SparqlResultsCallback, object)
  • Extension Methods
Back to top Generated by DocFX