Interface IAsyncStorageProvider
Interface for storage providers which provide asynchronous read/write functionality to some arbitrary storage layer.
Inherited Members
Namespace: VDS.RDF.Storage
Assembly: dotNetRdf.dll
Syntax
public interface IAsyncStorageProvider : IStorageCapabilities, IDisposable
Remarks
Designed to allow for arbitrary Triple Stores to be plugged into the library as required by the end user.
Properties
| Improve this Doc View SourceAsyncParentServer
Gets the Parent Server on which this store is hosted (if any).
Declaration
IAsyncStorageServer AsyncParentServer { get; }
Property Value
Type | Description |
---|---|
IAsyncStorageServer |
Remarks
For storage back-ends which support multiple stores this is useful because it provides a way to access all the stores on that backend. For stores which are standalone they should simply return null.
Methods
| Improve this Doc View SourceDeleteGraph(string, AsyncStorageCallback, object)
Deletes a Graph from the Store.
Declaration
[Obsolete("Replaced with DeleteGraphAsync(string, CancellationToken)")]
void DeleteGraph(string graphUri, AsyncStorageCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
string | graphUri | URI of the Graph to delete. |
AsyncStorageCallback | callback | Callback. |
System.Object | state | State to pass to the callback. |
Remarks
Designed to allow for arbitrary Triple Stores to be plugged into the library as required by the end user.
DeleteGraph(Uri, AsyncStorageCallback, object)
Deletes a Graph from the Store.
Declaration
[Obsolete("Replaced by DeleteGraphAsync(string, CancellationToken)")]
void DeleteGraph(Uri graphUri, AsyncStorageCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | graphUri | URI of the Graph to delete. |
AsyncStorageCallback | callback | Callback. |
System.Object | state | State to pass to the callback. |
Remarks
Designed to allow for arbitrary Triple Stores to be plugged into the library as required by the end user.
DeleteGraphAsync(string, CancellationToken)
Deletes a graph from the store asynchronously.
Declaration
Task DeleteGraphAsync(string graphName, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | graphName | Name of the graph to delete. |
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Remarks
Designed to allow for arbitrary Triple Stores to be plugged into the library as required by the end user.
ListGraphs(AsyncStorageCallback, object)
Lists the Graphs in the Store asynchronously.
Declaration
[Obsolete("Replaced with ListGraphsAsync(CancellationToken)")]
void ListGraphs(AsyncStorageCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
AsyncStorageCallback | callback | Callback. |
System.Object | state | State to pass to the callback. |
Remarks
Designed to allow for arbitrary Triple Stores to be plugged into the library as required by the end user.
ListGraphsAsync(CancellationToken)
Lists the names of the graphs in the store asynchronously.
Declaration
Task<IEnumerable<string>> ListGraphsAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><System.Collections.Generic.IEnumerable<T><string>> |
Remarks
Designed to allow for arbitrary Triple Stores to be plugged into the library as required by the end user.
LoadGraph(IGraph, string, AsyncStorageCallback, object)
Loads a Graph from the Store asynchronously.
Declaration
[Obsolete("Replaced with LoadGraphAsync(IGraph, string, CancellationToken)")]
void LoadGraph(IGraph g, string graphUri, AsyncStorageCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to load into. |
string | graphUri | URI of the Graph to load. |
AsyncStorageCallback | callback | Callback. |
System.Object | state | State to pass to the callback. |
Remarks
Designed to allow for arbitrary Triple Stores to be plugged into the library as required by the end user.
LoadGraph(IGraph, Uri, AsyncStorageCallback, object)
Loads a Graph from the Store asynchronously.
Declaration
[Obsolete("Replaced with LoadGraphAsync(IGraph, string, CancellationToken)")]
void LoadGraph(IGraph g, Uri graphUri, AsyncStorageCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to load into. |
System.Uri | graphUri | URI of the Graph to load. |
AsyncStorageCallback | callback | Callback. |
System.Object | state | State to pass to the callback. |
Remarks
Designed to allow for arbitrary Triple Stores to be plugged into the library as required by the end user.
LoadGraph(IRdfHandler, string, AsyncStorageCallback, object)
Loads a Graph from the Store asynchronously.
Declaration
[Obsolete("Replaced with LoadGraphAsync(IRdfHandler, string, CancellationToken)")]
void LoadGraph(IRdfHandler handler, string graphUri, AsyncStorageCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | Handler to load with. |
string | graphUri | URI of the Graph to load. |
AsyncStorageCallback | callback | Callback. |
System.Object | state | State to pass to the callback. |
Remarks
Designed to allow for arbitrary Triple Stores to be plugged into the library as required by the end user.
LoadGraph(IRdfHandler, Uri, AsyncStorageCallback, object)
Loads a Graph from the Store asynchronously.
Declaration
[Obsolete("Replaced with LoadGraphAsync(IRdfHandler, string, CancellationToken)")]
void LoadGraph(IRdfHandler handler, Uri graphUri, AsyncStorageCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | Handler to load with. |
System.Uri | graphUri | URI of the Graph to load. |
AsyncStorageCallback | callback | Callback. |
System.Object | state | State to pass to the callback. |
Remarks
Designed to allow for arbitrary Triple Stores to be plugged into the library as required by the end user.
LoadGraphAsync(IGraph, string, CancellationToken)
Loads a graph from the store asynchronously.
Declaration
Task LoadGraphAsync(IGraph g, string graphName, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | The target graph to load into. |
string | graphName | Name of the graph to load. |
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Remarks
Designed to allow for arbitrary Triple Stores to be plugged into the library as required by the end user.
LoadGraphAsync(IRdfHandler, string, CancellationToken)
Loads a graph from the store asynchronously.
Declaration
Task LoadGraphAsync(IRdfHandler handler, string graphName, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | The handler to receive the loaded triples. |
string | graphName | Name of the graph to load. |
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Remarks
Designed to allow for arbitrary Triple Stores to be plugged into the library as required by the end user.
SaveGraph(IGraph, AsyncStorageCallback, object)
Saves a Graph to the Store asynchronously.
Declaration
[Obsolete("Replaced with SaveGraphAsync(IGraph, CancellationToken)")]
void SaveGraph(IGraph g, AsyncStorageCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to save. |
AsyncStorageCallback | callback | Callback. |
System.Object | state | State to pass to the callback. |
Remarks
Designed to allow for arbitrary Triple Stores to be plugged into the library as required by the end user.
SaveGraphAsync(IGraph, CancellationToken)
Saves a Graph to the Store asynchronously.
Declaration
Task SaveGraphAsync(IGraph g, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to save. |
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Remarks
Designed to allow for arbitrary Triple Stores to be plugged into the library as required by the end user.
UpdateGraph(string, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, object)
Updates a Graph in the Store asynchronously.
Declaration
[Obsolete("Replaced with UpdateGraphAsync(string, IEnumerable<Triple>, IEnumerable<Triple>, CancellationToken")]
void UpdateGraph(string graphUri, IEnumerable<Triple> additions, IEnumerable<Triple> removals, AsyncStorageCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
string | graphUri | URI of the Graph to update. |
System.Collections.Generic.IEnumerable<T><Triple> | additions | Triples to be added. |
System.Collections.Generic.IEnumerable<T><Triple> | removals | Triples to be removed. |
AsyncStorageCallback | callback | Callback. |
System.Object | state | State to pass to the callback. |
Remarks
Designed to allow for arbitrary Triple Stores to be plugged into the library as required by the end user.
UpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, object)
Updates a Graph in the Store asynchronously.
Declaration
[Obsolete("Replaced with UpdateGraphAsync(string, IEnumerable<Triple>, IEnumerable<Triple>, CancellationToken")]
void UpdateGraph(Uri graphUri, IEnumerable<Triple> additions, IEnumerable<Triple> removals, AsyncStorageCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | graphUri | URI of the Graph to update. |
System.Collections.Generic.IEnumerable<T><Triple> | additions | Triples to be added. |
System.Collections.Generic.IEnumerable<T><Triple> | removals | Triples to be removed. |
AsyncStorageCallback | callback | Callback. |
System.Object | state | State to pass to the callback. |
Remarks
Designed to allow for arbitrary Triple Stores to be plugged into the library as required by the end user.
UpdateGraphAsync(string, IEnumerable<Triple>, IEnumerable<Triple>, CancellationToken)
Updates a graph in the store asynchronously.
Declaration
Task UpdateGraphAsync(string graphName, IEnumerable<Triple> additions, IEnumerable<Triple> removals, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | graphName | Name of the graph to update. |
System.Collections.Generic.IEnumerable<T><Triple> | additions | Triples to be added. |
System.Collections.Generic.IEnumerable<T><Triple> | removals | Triples to be removed. |
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Remarks
Designed to allow for arbitrary Triple Stores to be plugged into the library as required by the end user.