Class StoreGraphPersistenceWrapper
The Store Graph Persistence Wrapper is a wrapper around another Graph that will be persisted to an underlying store via a provided IStorageProvider implementation.
Inheritance
System.Object
StoreGraphPersistenceWrapper
Implements
System.IDisposable
System.Xml.Serialization.IXmlSerializable
Inherited Members
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
Assembly: dotNetRDF.dll
Syntax
public class StoreGraphPersistenceWrapper : GraphPersistenceWrapper, ITransactionalGraph, IGraph, INodeFactory, IDisposable, IXmlSerializable
Constructors
| Improve this Doc View SourceStoreGraphPersistenceWrapper(IStorageProvider, Uri)
Creates a new Store Graph Persistence Wrapper around a new empty Graph.
Declaration
public StoreGraphPersistenceWrapper(IStorageProvider manager, Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
IStorageProvider | manager | Generic IO Manager. |
System.Uri | graphUri | Graph URI (the URI the Graph will be persisted as). |
StoreGraphPersistenceWrapper(IStorageProvider, Uri, Boolean)
Creates a new Store Graph Persistence Wrapper around a new empty Graph.
Declaration
public StoreGraphPersistenceWrapper(IStorageProvider manager, Uri graphUri, bool writeOnly)
Parameters
Type | Name | Description |
---|---|---|
IStorageProvider | manager | Generic IO Manager. |
System.Uri | graphUri | Graph URI (the URI the Graph will be persisted as). |
System.Boolean | writeOnly | Whether to operate in write-only mode. |
Remarks
Note: In order to operate in write-only mode the IStorageProvider must support triple level updates indicated by it returning true to its UpdateSupported property.
When not operating in write-only mode the existing Graph will be loaded from the underlying store.
StoreGraphPersistenceWrapper(IStorageProvider, IGraph)
Creates a new Store Graph Persistence Wrapper.
Declaration
public StoreGraphPersistenceWrapper(IStorageProvider manager, IGraph g)
Parameters
Type | Name | Description |
---|---|---|
IStorageProvider | manager | Generic IO Manager. |
IGraph | g | Graph to wrap. |
StoreGraphPersistenceWrapper(IStorageProvider, IGraph, Boolean)
Creates a new Store Graph Persistence Wrapper.
Declaration
public StoreGraphPersistenceWrapper(IStorageProvider manager, IGraph g, bool writeOnly)
Parameters
Type | Name | Description |
---|---|---|
IStorageProvider | manager | Generic IO Manager. |
IGraph | g | Graph to wrap. |
System.Boolean | writeOnly | Whether to operate in write-only mode. |
Remarks
Note: In order to operate in write-only mode the IStorageProvider must support triple level updates indicated by it returning true to its UpdateSupported property and the Graph to be wrapped must be an empty Graph.
StoreGraphPersistenceWrapper(IStorageProvider, IGraph, Uri, Boolean)
Creates a new Store Graph Persistence Wrapper.
Declaration
public StoreGraphPersistenceWrapper(IStorageProvider manager, IGraph g, Uri graphUri, bool writeOnly)
Parameters
Type | Name | Description |
---|---|---|
IStorageProvider | manager | Generic IO Manager. |
IGraph | g | Graph to wrap. |
System.Uri | graphUri | Graph URI (the URI the Graph will be persisted as). |
System.Boolean | writeOnly | Whether to operate in write-only mode. |
Remarks
Note: In order to operate in write-only mode the IStorageProvider must support triple level updates indicated by it returning true to its UpdateSupported property and the Graph to be wrapped must be an empty Graph.
Properties
| Improve this Doc View SourceSupportsTriplePersistence
Gets whether the in-use IStorageProvider supports triple level updates.
Declaration
protected override bool SupportsTriplePersistence { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Methods
| Improve this Doc View SourcePersistDeletedTriples(IEnumerable<Triple>)
Persists the deleted Triples to the in-use IStorageProvider.
Declaration
protected override void PersistDeletedTriples(IEnumerable<Triple> ts)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<Triple> | ts | Triples. |
Overrides
| Improve this Doc View SourcePersistGraph()
Persists the entire Graph to the in-use IStorageProvider.
Declaration
protected override void PersistGraph()
Overrides
| Improve this Doc View SourcePersistInsertedTriples(IEnumerable<Triple>)
Persists the inserted Triples to the in-use IStorageProvider.
Declaration
protected override void PersistInsertedTriples(IEnumerable<Triple> ts)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<Triple> | ts | Triples. |
Overrides
Implements
System.IDisposable
System.Xml.Serialization.IXmlSerializable