Class RemoteQueryProcessor
A SPARQL Query Processor where the query is processed by passing it to a remote SPARQL endpoint.
Inheritance
System.Object
RemoteQueryProcessor
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Query
Assembly: dotNetRDF.dll
Syntax
public class RemoteQueryProcessor : ISparqlQueryProcessor
Constructors
| Improve this Doc View SourceRemoteQueryProcessor(SparqlRemoteEndpoint)
Creates a new Remote Query Processor.
Declaration
public RemoteQueryProcessor(SparqlRemoteEndpoint endpoint)
Parameters
Type | Name | Description |
---|---|---|
SparqlRemoteEndpoint | endpoint | SPARQL Endpoint. |
Methods
| Improve this Doc View SourceProcessQuery(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. |
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. |
System.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.
|
Improve this Doc
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 |
---|---|
System.Object |
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. |
System.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.