Class StoreVirtualGraphPersistenceWrapper<TNodeID, TGraphID>
Base class for update operations on virtualized graphs. Implementors have to provide a method to
convert standard Nodes to their virtual form according to the IVirtualRdfProvider which is in use.
Inheritance
System.Object
StoreVirtualGraphPersistenceWrapper<TNodeID, TGraphID>
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.Storage.Virtualisation
Assembly: dotNetRDF.dll
Syntax
public abstract class StoreVirtualGraphPersistenceWrapper<TNodeID, TGraphID> : StoreGraphPersistenceWrapper, ITransactionalGraph, IGraph, INodeFactory, IDisposable, IXmlSerializable
Type Parameters
Name | Description |
---|---|
TNodeID | Node ID Type. |
TGraphID | Graph ID Type. |
Constructors
| Improve this Doc View SourceStoreVirtualGraphPersistenceWrapper(IStorageProvider, IVirtualRdfProvider<TNodeID, TGraphID>, IGraph, Uri, Boolean)
Creates a new Store Graph Persistence Wrapper for Virtualized Nodes.
Declaration
public StoreVirtualGraphPersistenceWrapper(IStorageProvider manager, IVirtualRdfProvider<TNodeID, TGraphID> provider, IGraph g, Uri graphUri, bool writeOnly)
Parameters
Type | Name | Description |
---|---|---|
IStorageProvider | manager | Generic IO Manager. |
IVirtualRdfProvider<TNodeID, TGraphID> | provider | Virtual RDF Provider. |
IGraph | g | Graph with virtualized Nodes 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.
Fields
| Improve this Doc View Source_provider
Virtual RDF Provider.
Declaration
protected readonly IVirtualRdfProvider<TNodeID, TGraphID> _provider
Field Value
Type | Description |
---|---|
IVirtualRdfProvider<TNodeID, TGraphID> |
Methods
| Improve this Doc View SourceAssert(Triple)
Asserts a Triple after virtualization in the Graph.
Declaration
public override bool Assert(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceContainsTriple(Triple)
Gets whether the virtualized form of a given Triple exists in this Graph.
Declaration
public override bool ContainsTriple(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple to test. |
Returns
Type | Description |
---|---|
System.Boolean | Triple is known to the Graph. |
Overrides
| Improve this Doc View SourceCreateVirtual(IVirtualRdfProvider<TNodeID, TGraphID>, INode)
Converts a standard INode to a virtualized node with a pre-materialized value.
Declaration
protected abstract INode CreateVirtual(IVirtualRdfProvider<TNodeID, TGraphID> provider, INode preMaterializedValue)
Parameters
Type | Name | Description |
---|---|---|
IVirtualRdfProvider<TNodeID, TGraphID> | provider | Virtual RDF Provider, the object, e.g. a storage manger, that provides virtualization of nodes. |
INode | preMaterializedValue | Node that has to be converted to it's virtualized form with itself as materialized value. Usually a parsed Literal or Uri. |
Returns
Type | Description |
---|---|
INode |
Retract(Triple)
Retracts a Triple after virtualization from the Graph.
Declaration
public override bool Retract(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceVirtualizeNode(INode)
Virtualizes a Node.
Declaration
protected INode VirtualizeNode(INode n)
Parameters
Type | Name | Description |
---|---|---|
INode | n | Node to be virtualized. |
Returns
Type | Description |
---|---|
INode | The Node in its virtual form. Itself, if it was already virtual. |
VirtualizeTriple(Triple)
Converts subject, predicate and object of a given Triple to their respective virtualized forms.
Declaration
protected Triple VirtualizeTriple(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple to virtualize. |
Returns
Type | Description |
---|---|
Triple | The virtualized Triple. Itself, if it was already virtual. |
Implements
System.IDisposable
System.Xml.Serialization.IXmlSerializable