Class StoreGraphPersistenceWrapper
The Store Graph Persistence Wrapper is a wrapper around another Graph that will be persisted to an underlying store via a provided IStorage
Inheritance
Inherited Members
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public class StoreGraphPersistenceWrapper : GraphPersistenceWrapper, ITransactionalGraph, IGraph, INodeFactory, IDisposable, ITripleIndex, IEquatable<IGraph>
Constructors
| Edit this page View SourceStoreGraphPersistenceWrapper(IStorageProvider, Uri)
Creates a new Store Graph Persistence Wrapper around a new empty Graph.
Declaration
[Obsolete("Replaced by StoreGraphPersistenceWrapper(IStorageProvider, IRefNode)")]
public StoreGraphPersistenceWrapper(IStorageProvider manager, Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
IStorage |
manager | Generic IO Manager. |
Uri | graphUri | Graph URI (the URI the Graph will be persisted as). |
StoreGraphPersistenceWrapper(IStorageProvider, Uri, bool)
Creates a new Store Graph Persistence Wrapper around a new empty Graph.
Declaration
[Obsolete("Replaced by StoreGraphPersistenceWrapper(IStorageProvider, IRefNode, bool)")]
public StoreGraphPersistenceWrapper(IStorageProvider manager, Uri graphUri, bool writeOnly)
Parameters
Type | Name | Description |
---|---|---|
IStorage |
manager | Generic IO Manager. |
Uri | graphUri | Graph URI (the URI the Graph will be persisted as). |
bool | writeOnly | Whether to operate in write-only mode. |
Remarks
Note: In order to operate in write-only mode the IStorage
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 |
---|---|---|
IStorage |
manager | Generic IO Manager. |
IGraph | g | Graph to wrap. |
StoreGraphPersistenceWrapper(IStorageProvider, IGraph, bool)
Creates a new Store Graph Persistence Wrapper.
Declaration
public StoreGraphPersistenceWrapper(IStorageProvider manager, IGraph g, bool writeOnly)
Parameters
Type | Name | Description |
---|---|---|
IStorage |
manager | Generic IO Manager. |
IGraph | g | Graph to wrap. |
bool | writeOnly | Whether to operate in write-only mode. |
Remarks
Note: In order to operate in write-only mode the IStorage
StoreGraphPersistenceWrapper(IStorageProvider, IGraph, Uri, bool)
Creates a new Store Graph Persistence Wrapper.
Declaration
[Obsolete("Replaced by StoreGraphPersistenceWrapper(IStorageProvider, IGraph, bool)")]
public StoreGraphPersistenceWrapper(IStorageProvider manager, IGraph g, Uri graphUri, bool writeOnly)
Parameters
Type | Name | Description |
---|---|---|
IStorage |
manager | Generic IO Manager. |
IGraph | g | Graph to wrap. |
Uri | graphUri | Graph URI (the URI the Graph will be persisted as). |
bool | writeOnly | Whether to operate in write-only mode. |
Remarks
Note: In order to operate in write-only mode the IStorage
StoreGraphPersistenceWrapper(IStorageProvider, IRefNode)
Creates a new Store Graph Persistence Wrapper around a new empty Graph.
Declaration
public StoreGraphPersistenceWrapper(IStorageProvider manager, IRefNode graphName)
Parameters
Type | Name | Description |
---|---|---|
IStorage |
manager | Generic IO Manager. |
IRef |
graphName | The name the graph will be persisted as. |
StoreGraphPersistenceWrapper(IStorageProvider, IRefNode, bool)
Creates a new Store Graph Persistence Wrapper around a new empty Graph.
Declaration
public StoreGraphPersistenceWrapper(IStorageProvider manager, IRefNode graphName, bool writeOnly)
Parameters
Type | Name | Description |
---|---|---|
IStorage |
manager | Generic IO Manager. |
IRef |
graphName | Graph name (the name the Graph will be persisted as). |
bool | writeOnly | Whether to operate in write-only mode. |
Remarks
Note: In order to operate in write-only mode the IStorage
When not operating in write-only mode the existing Graph will be loaded from the underlying store.
Properties
| Edit this page View SourceSupportsTriplePersistence
Gets whether the in-use IStorage
Declaration
protected override bool SupportsTriplePersistence { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Methods
| Edit this page View SourcePersistDeletedTriples(IEnumerable<Triple>)
Persists the deleted Triples to the in-use IStorage
Declaration
protected override void PersistDeletedTriples(IEnumerable<Triple> ts)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Triple> | ts | Triples. |
Overrides
| Edit this page View SourcePersistGraph()
Persists the entire Graph to the in-use IStorage
Declaration
protected override void PersistGraph()
Overrides
| Edit this page View SourcePersistInsertedTriples(IEnumerable<Triple>)
Persists the inserted Triples to the in-use IStorage
Declaration
protected override void PersistInsertedTriples(IEnumerable<Triple> ts)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Triple> | ts | Triples. |