Show / Hide Table of Contents

Interface IAsyncQueryableStorage

Interface for storage providers which allow SPARQL Queries to be made against them asynchronously.

Inherited Members
IAsyncStorageProvider.AsyncParentServer
IAsyncStorageProvider.LoadGraph(IGraph, Uri, AsyncStorageCallback, object)
IAsyncStorageProvider.LoadGraph(IGraph, string, AsyncStorageCallback, object)
IAsyncStorageProvider.LoadGraph(IRdfHandler, Uri, AsyncStorageCallback, object)
IAsyncStorageProvider.LoadGraph(IRdfHandler, string, AsyncStorageCallback, object)
IAsyncStorageProvider.LoadGraphAsync(IGraph, string, CancellationToken)
IAsyncStorageProvider.LoadGraphAsync(IRdfHandler, string, CancellationToken)
IAsyncStorageProvider.SaveGraph(IGraph, AsyncStorageCallback, object)
IAsyncStorageProvider.SaveGraphAsync(IGraph, CancellationToken)
IAsyncStorageProvider.UpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, object)
IAsyncStorageProvider.UpdateGraph(string, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, object)
IAsyncStorageProvider.UpdateGraphAsync(string, IEnumerable<Triple>, IEnumerable<Triple>, CancellationToken)
IAsyncStorageProvider.DeleteGraph(Uri, AsyncStorageCallback, object)
IAsyncStorageProvider.DeleteGraph(string, AsyncStorageCallback, object)
IAsyncStorageProvider.DeleteGraphAsync(string, CancellationToken)
IAsyncStorageProvider.ListGraphs(AsyncStorageCallback, object)
IAsyncStorageProvider.ListGraphsAsync(CancellationToken)
IStorageCapabilities.IsReady
IStorageCapabilities.IsReadOnly
IStorageCapabilities.IOBehaviour
IStorageCapabilities.UpdateSupported
IStorageCapabilities.DeleteSupported
IStorageCapabilities.ListGraphsSupported
IDisposable.Dispose()
Namespace: VDS.RDF.Storage
Assembly: dotNetRdf.dll
Syntax
public interface IAsyncQueryableStorage : IAsyncStorageProvider, IStorageCapabilities, IDisposable

Methods

| Edit this page View Source

Query(string, AsyncStorageCallback, object)

Queries the store asynchronously.

Declaration
[Obsolete("This method is obsolete and will be removed in a future version. Replaced by QueryAsync(string, CancellationToken)")]
void Query(string sparqlQuery, AsyncStorageCallback callback, object state)
Parameters
Type Name Description
string sparqlQuery

SPARQL Query.

AsyncStorageCallback callback

Callback.

object state

State to pass to the callback.

Exceptions
Type Condition
RdfQueryException

Thrown if an error occurs performing the query.

RdfStorageException

Thrown if an error occurs performing the query.

RdfParseException

Thrown 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.

RdfParserSelectionException

Thrown if the store returns results in a format dotNetRDF does not understand.

| Edit this page View Source

Query(IRdfHandler, ISparqlResultsHandler, string, AsyncStorageCallback, object)

Queries the store asynchronously.

Declaration
[Obsolete("Replaced by QueryAsync(IRdfHandler, ISparqlResultsHandler, string")]
void Query(IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, string sparqlQuery, AsyncStorageCallback callback, object state)
Parameters
Type Name Description
IRdfHandler rdfHandler

RDF Handler.

ISparqlResultsHandler resultsHandler

Results Handler.

string sparqlQuery

SPARQL Query.

AsyncStorageCallback callback

Callback.

object state

State to pass to the callback.

Exceptions
Type Condition
RdfQueryException

Thrown if an error occurs performing the query.

RdfStorageException

Thrown if an error occurs performing the query.

RdfParseException

Thrown 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.

RdfParserSelectionException

Thrown if the store returns results in a format dotNetRDF does not understand.

| Edit this page View Source

QueryAsync(string, CancellationToken)

Queries the store asynchronously.

Declaration
Task<object> QueryAsync(string sparqlQuery, CancellationToken cancellationToken)
Parameters
Type Name Description
string sparqlQuery

SPARQL Query.

CancellationToken cancellationToken
Returns
Type Description
Task<object>
| Edit this page View Source

QueryAsync(IRdfHandler, ISparqlResultsHandler, string, CancellationToken)

Queries the store asynchronously.

Declaration
Task QueryAsync(IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, string sparqlQuery, CancellationToken cancellationToken)
Parameters
Type Name Description
IRdfHandler rdfHandler

RDF Handler that will receive graph results from CONSTRUCT or DESCRIBE queries.

ISparqlResultsHandler resultsHandler

SPARQL Results set handler that will receive results from ASK or SELECT queries.

string sparqlQuery

The SPARQL query to execute.

CancellationToken cancellationToken
Returns
Type Description
Task

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Methods
    • Query(string, AsyncStorageCallback, object)
    • Query(IRdfHandler, ISparqlResultsHandler, string, AsyncStorageCallback, object)
    • QueryAsync(string, CancellationToken)
    • QueryAsync(IRdfHandler, ISparqlResultsHandler, string, CancellationToken)
  • Extension Methods
Back to top Generated by DocFX