Class BaseAsyncSafeConnector
Abstract Base Class for IStorageProvider implementations for which it is safe to do the IAsyncStorageProvider implementation simply by farming out calls to the synchronous methods onto background threads (i.e. non-HTTP based connectors).
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.Storage
Assembly: dotNetRDF.dll
Syntax
public abstract class BaseAsyncSafeConnector : IStorageProvider, IAsyncStorageProvider, IStorageCapabilities, IDisposable
Properties
| Improve this Doc View SourceAsyncParentServer
Gets the parent server (if any).
Declaration
public virtual IAsyncStorageServer AsyncParentServer { get; }
Property Value
| Type | Description |
|---|---|
| IAsyncStorageServer |
DeleteSupported
Gets whether the Store supports Graph deletion via the DeleteGraph(Uri) method.
Declaration
public abstract bool DeleteSupported { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IOBehaviour
Gets the IO Behaviour of the Store.
Declaration
public abstract IOBehaviour IOBehaviour { get; }
Property Value
| Type | Description |
|---|---|
| IOBehaviour |
IsReadOnly
Gets whether the Store is read only.
Declaration
public abstract bool IsReadOnly { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsReady
Indicates whether the Store is ready to accept requests.
Declaration
public abstract bool IsReady { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
ListGraphsSupported
Gets whether the Store supports listing graphs via the ListGraphs() method.
Declaration
public abstract bool ListGraphsSupported { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
ParentServer
Gets the parent server (if any).
Declaration
public virtual IStorageServer ParentServer { get; }
Property Value
| Type | Description |
|---|---|
| IStorageServer |
UpdateSupported
Gets whether the Store supports Triple level updates via the UpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>) method.
Declaration
public abstract bool UpdateSupported { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
| Improve this Doc View SourceDeleteGraph(String)
Deletes a Graph from the Store.
Declaration
public abstract void DeleteGraph(string graphUri)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | graphUri | URI of the Graph to delete. |
DeleteGraph(String, AsyncStorageCallback, Object)
Deletes a Graph from the Store.
Declaration
public void DeleteGraph(string graphUri, AsyncStorageCallback callback, object state)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | graphUri | URI of the Graph to delete. |
| AsyncStorageCallback | callback | Callback. |
| System.Object | state | State to pass to the callback. |
DeleteGraph(Uri)
Deletes a Graph from the Store.
Declaration
public abstract void DeleteGraph(Uri graphUri)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Uri | graphUri | URI of the Graph to delete. |
DeleteGraph(Uri, AsyncStorageCallback, Object)
Deletes a Graph from the Store.
Declaration
public 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. |
Dispose()
Diposes of the Store.
Declaration
public abstract void Dispose()
ListGraphs()
Lists the Graphs in the Store.
Declaration
public abstract IEnumerable<Uri> ListGraphs()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<System.Uri> |
ListGraphs(AsyncStorageCallback, Object)
Lists the Graphs in the Store asynchronously.
Declaration
public void ListGraphs(AsyncStorageCallback callback, object state)
Parameters
| Type | Name | Description |
|---|---|---|
| AsyncStorageCallback | callback | Callback. |
| System.Object | state | State to pass to the callback. |
LoadGraph(IGraph, String)
Loads a Graph from the Store.
Declaration
public abstract void LoadGraph(IGraph g, string graphUri)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Graph to load into. |
| System.String | graphUri | URI of the Graph to load. |
LoadGraph(IGraph, String, AsyncStorageCallback, Object)
Loads a Graph from the Store asynchronously.
Declaration
public void LoadGraph(IGraph g, string graphUri, AsyncStorageCallback callback, object state)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Graph to load into. |
| System.String | graphUri | URI of the Graph to load. |
| AsyncStorageCallback | callback | Callback. |
| System.Object | state | State to pass to the callback. |
LoadGraph(IGraph, Uri)
Loads a Graph from the Store.
Declaration
public abstract void LoadGraph(IGraph g, Uri graphUri)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Graph to load into. |
| System.Uri | graphUri | URI of the Graph to load. |
LoadGraph(IGraph, Uri, AsyncStorageCallback, Object)
Loads a Graph from the Store asynchronously.
Declaration
public 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. |
LoadGraph(IRdfHandler, String)
Loads a Graph from the Store.
Declaration
public abstract void LoadGraph(IRdfHandler handler, string graphUri)
Parameters
| Type | Name | Description |
|---|---|---|
| IRdfHandler | handler | Handler to load with. |
| System.String | graphUri | URI of the Graph to load. |
LoadGraph(IRdfHandler, String, AsyncStorageCallback, Object)
Loads a Graph from the Store asynchronously.
Declaration
public void LoadGraph(IRdfHandler handler, string graphUri, AsyncStorageCallback callback, object state)
Parameters
| Type | Name | Description |
|---|---|---|
| IRdfHandler | handler | Handler to load with. |
| System.String | graphUri | URI of the Graph to load. |
| AsyncStorageCallback | callback | Callback. |
| System.Object | state | State to pass to the callback. |
LoadGraph(IRdfHandler, Uri)
Loads a Graph from the Store.
Declaration
public abstract void LoadGraph(IRdfHandler handler, Uri graphUri)
Parameters
| Type | Name | Description |
|---|---|---|
| IRdfHandler | handler | Handler to load with. |
| System.Uri | graphUri | URI of the Graph to load. |
LoadGraph(IRdfHandler, Uri, AsyncStorageCallback, Object)
Loads a Graph from the Store asynchronously.
Declaration
public 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. |
SaveGraph(IGraph)
Saves a Graph to the Store.
Declaration
public abstract void SaveGraph(IGraph g)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Graph to save. |
SaveGraph(IGraph, AsyncStorageCallback, Object)
Saves a Graph to the Store asynchronously.
Declaration
public 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. |
UpdateGraph(String, IEnumerable<Triple>, IEnumerable<Triple>)
Updates a Graph in the Store.
Declaration
public abstract void UpdateGraph(string graphUri, IEnumerable<Triple> additions, IEnumerable<Triple> removals)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | graphUri | URI of the Graph to update. |
| System.Collections.Generic.IEnumerable<Triple> | additions | Triples to be added. |
| System.Collections.Generic.IEnumerable<Triple> | removals | Triples to be removed. |
UpdateGraph(String, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, Object)
Updates a Graph in the Store asychronously.
Declaration
public void UpdateGraph(string graphUri, IEnumerable<Triple> additions, IEnumerable<Triple> removals, AsyncStorageCallback callback, object state)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | graphUri | URI of the Graph to update. |
| System.Collections.Generic.IEnumerable<Triple> | additions | Triples to be added. |
| System.Collections.Generic.IEnumerable<Triple> | removals | Triples to be removed. |
| AsyncStorageCallback | callback | Callback. |
| System.Object | state | State to pass to the callback. |
UpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>)
Updates a Graph in the Store.
Declaration
public abstract void UpdateGraph(Uri graphUri, IEnumerable<Triple> additions, IEnumerable<Triple> removals)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Uri | graphUri | URI of the Graph to update. |
| System.Collections.Generic.IEnumerable<Triple> | additions | Triples to be added. |
| System.Collections.Generic.IEnumerable<Triple> | removals | Triples to be removed. |
UpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, Object)
Updates a Graph in the Store asychronously.
Declaration
public 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<Triple> | additions | Triples to be added. |
| System.Collections.Generic.IEnumerable<Triple> | removals | Triples to be removed. |
| AsyncStorageCallback | callback | Callback. |
| System.Object | state | State to pass to the callback. |
Implements
System.IDisposable