Interface IAsyncQueryableStorage
Interface for storage providers which allow SPARQL Queries to be made against them asynchronously.
Inherited Members
Namespace: VDS.RDF.Storage
Assembly: dotNetRdf.dll
Syntax
public interface IAsyncQueryableStorage : IAsyncStorageProvider, IStorageCapabilities, IDisposable
Methods
| Edit this page View SourceQuery(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. |
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. |
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> |
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 |