Show / Hide Table of Contents

Interface IAsyncStorageProvider

Interface for storage providers which provide asynchronous read/write functionality to some arbitrary storage layer.

Inherited Members
IStorageCapabilities.IsReady
IStorageCapabilities.IsReadOnly
IStorageCapabilities.IOBehaviour
IStorageCapabilities.UpdateSupported
IStorageCapabilities.DeleteSupported
IStorageCapabilities.ListGraphsSupported
System.IDisposable.Dispose()
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 Source

AsyncParentServer

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 Source

DeleteGraph(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Properties
    • AsyncParentServer
  • Methods
    • DeleteGraph(string, AsyncStorageCallback, object)
    • DeleteGraph(Uri, AsyncStorageCallback, object)
    • DeleteGraphAsync(string, CancellationToken)
    • ListGraphs(AsyncStorageCallback, object)
    • ListGraphsAsync(CancellationToken)
    • LoadGraph(IGraph, string, AsyncStorageCallback, object)
    • LoadGraph(IGraph, Uri, AsyncStorageCallback, object)
    • LoadGraph(IRdfHandler, string, AsyncStorageCallback, object)
    • LoadGraph(IRdfHandler, Uri, AsyncStorageCallback, object)
    • LoadGraphAsync(IGraph, string, CancellationToken)
    • LoadGraphAsync(IRdfHandler, string, CancellationToken)
    • SaveGraph(IGraph, AsyncStorageCallback, object)
    • SaveGraphAsync(IGraph, CancellationToken)
    • UpdateGraph(string, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, object)
    • UpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, object)
    • UpdateGraphAsync(string, IEnumerable<Triple>, IEnumerable<Triple>, CancellationToken)
  • Extension Methods
Back to top Generated by DocFX