Show / Hide Table of Contents

Class RemoteQueryProcessor

A SPARQL Query Processor where the query is processed by passing it to a remote SPARQL endpoint.

Inheritance
object
RemoteQueryProcessor
Implements
ISparqlQueryProcessor
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 class RemoteQueryProcessor : ISparqlQueryProcessor

Constructors

| Edit this page View Source

RemoteQueryProcessor(ISparqlQueryClient)

Create a new Remote Query Processor.

Declaration
public RemoteQueryProcessor(ISparqlQueryClient client)
Parameters
Type Name Description
ISparqlQueryClient client

The remote SPARQL client to use.

| Edit this page View Source

RemoteQueryProcessor(SparqlRemoteEndpoint)

Creates a new Remote Query Processor.

Declaration
[Obsolete("This constructor is obsolete and will be removed in a future version. Use the constructor that accepts a SparqlClient")]
public RemoteQueryProcessor(SparqlRemoteEndpoint endpoint)
Parameters
Type Name Description
SparqlRemoteEndpoint endpoint

SPARQL Endpoint.

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 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)

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

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.

| 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
    • RemoteQueryProcessor(ISparqlQueryClient)
    • RemoteQueryProcessor(SparqlRemoteEndpoint)
  • Methods
    • ProcessQuery(IRdfHandler, ISparqlResultsHandler, SparqlQuery)
    • ProcessQuery(IRdfHandler, ISparqlResultsHandler, SparqlQuery, QueryCallback, object)
    • ProcessQuery(SparqlQuery)
    • ProcessQuery(SparqlQuery, GraphCallback, SparqlResultsCallback, object)
    • ProcessQueryAsync(IRdfHandler, ISparqlResultsHandler, SparqlQuery)
    • ProcessQueryAsync(SparqlQuery)
  • Implements
  • Extension Methods
Back to top Generated by DocFX