Show / Hide Table of Contents

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
GraphPersistenceWrapper
StoreGraphPersistenceWrapper
StoreVirtualGraphPersistenceWrapper<TNodeID, TGraphID>
Implements
ITransactionalGraph
IGraph
INodeFactory
System.IDisposable
System.Xml.Serialization.IXmlSerializable
Inherited Members
StoreGraphPersistenceWrapper.SupportsTriplePersistence
StoreGraphPersistenceWrapper.PersistDeletedTriples(IEnumerable<Triple>)
StoreGraphPersistenceWrapper.PersistInsertedTriples(IEnumerable<Triple>)
StoreGraphPersistenceWrapper.PersistGraph()
GraphPersistenceWrapper._g
GraphPersistenceWrapper.BaseUri
GraphPersistenceWrapper.IsEmpty
GraphPersistenceWrapper.NamespaceMap
GraphPersistenceWrapper.Nodes
GraphPersistenceWrapper.AllNodes
GraphPersistenceWrapper.Triples
GraphPersistenceWrapper.Assert(IEnumerable<Triple>)
GraphPersistenceWrapper.Retract(IEnumerable<Triple>)
GraphPersistenceWrapper.Clear()
GraphPersistenceWrapper.CreateBlankNode(String)
GraphPersistenceWrapper.CreateBlankNode()
GraphPersistenceWrapper.GetNextBlankNodeID()
GraphPersistenceWrapper.CreateGraphLiteralNode(IGraph)
GraphPersistenceWrapper.CreateGraphLiteralNode()
GraphPersistenceWrapper.CreateLiteralNode(String)
GraphPersistenceWrapper.CreateLiteralNode(String, Uri)
GraphPersistenceWrapper.CreateLiteralNode(String, String)
GraphPersistenceWrapper.CreateUriNode()
GraphPersistenceWrapper.CreateUriNode(String)
GraphPersistenceWrapper.CreateUriNode(Uri)
GraphPersistenceWrapper.CreateVariableNode(String)
GraphPersistenceWrapper.GetBlankNode(String)
GraphPersistenceWrapper.GetLiteralNode(String, String)
GraphPersistenceWrapper.GetLiteralNode(String)
GraphPersistenceWrapper.GetLiteralNode(String, Uri)
GraphPersistenceWrapper.GetTriples(Uri)
GraphPersistenceWrapper.GetTriples(INode)
GraphPersistenceWrapper.GetTriplesWithObject(Uri)
GraphPersistenceWrapper.GetTriplesWithObject(INode)
GraphPersistenceWrapper.GetTriplesWithPredicate(INode)
GraphPersistenceWrapper.GetTriplesWithPredicate(Uri)
GraphPersistenceWrapper.GetTriplesWithSubject(INode)
GraphPersistenceWrapper.GetTriplesWithSubject(Uri)
GraphPersistenceWrapper.GetTriplesWithSubjectPredicate(INode, INode)
GraphPersistenceWrapper.GetTriplesWithSubjectObject(INode, INode)
GraphPersistenceWrapper.GetTriplesWithPredicateObject(INode, INode)
GraphPersistenceWrapper.GetUriNode(String)
GraphPersistenceWrapper.GetUriNode(Uri)
GraphPersistenceWrapper.Merge(IGraph)
GraphPersistenceWrapper.Merge(IGraph, Boolean)
GraphPersistenceWrapper.Equals(Object)
GraphPersistenceWrapper.Equals(IGraph, Dictionary<INode, INode>)
GraphPersistenceWrapper.IsSubGraphOf(IGraph)
GraphPersistenceWrapper.IsSubGraphOf(IGraph, Dictionary<INode, INode>)
GraphPersistenceWrapper.HasSubGraph(IGraph)
GraphPersistenceWrapper.HasSubGraph(IGraph, Dictionary<INode, INode>)
GraphPersistenceWrapper.Difference(IGraph)
GraphPersistenceWrapper.ResolveQName(String)
GraphPersistenceWrapper.TripleAsserted
GraphPersistenceWrapper.TripleRetracted
GraphPersistenceWrapper.Changed
GraphPersistenceWrapper.ClearRequested
GraphPersistenceWrapper.Cleared
GraphPersistenceWrapper.MergeRequested
GraphPersistenceWrapper.Merged
GraphPersistenceWrapper.OnTripleAsserted(Object, TripleEventArgs)
GraphPersistenceWrapper.RaiseTripleAsserted(TripleEventArgs)
GraphPersistenceWrapper.RaiseTripleAsserted(Triple)
GraphPersistenceWrapper.OnTripleRetracted(Object, TripleEventArgs)
GraphPersistenceWrapper.RaiseTripleRetracted(TripleEventArgs)
GraphPersistenceWrapper.RaiseTripleRetracted(Triple)
GraphPersistenceWrapper.RaiseGraphChanged(TripleEventArgs)
GraphPersistenceWrapper.RaiseGraphChanged()
GraphPersistenceWrapper.RaiseClearRequested()
GraphPersistenceWrapper.RaiseCleared()
GraphPersistenceWrapper.RaiseMergeRequested()
GraphPersistenceWrapper.RaiseMerged()
GraphPersistenceWrapper.AttachEventHandlers(BaseTripleCollection)
GraphPersistenceWrapper.DetachEventHandlers(BaseTripleCollection)
GraphPersistenceWrapper.Flush()
GraphPersistenceWrapper.Discard()
GraphPersistenceWrapper.Dispose()
GraphPersistenceWrapper.Dispose(Boolean)
GraphPersistenceWrapper.GetObjectData(SerializationInfo, StreamingContext)
GraphPersistenceWrapper.GetSchema()
GraphPersistenceWrapper.ReadXml(XmlReader)
GraphPersistenceWrapper.WriteXml(XmlWriter)
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 Source

StoreVirtualGraphPersistenceWrapper(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 Source

Assert(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
GraphPersistenceWrapper.Assert(Triple)
| Improve this Doc View Source

ContainsTriple(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
GraphPersistenceWrapper.ContainsTriple(Triple)
| Improve this Doc View Source

CreateVirtual(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
| Improve this Doc View Source

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
GraphPersistenceWrapper.Retract(Triple)
| Improve this Doc View Source

VirtualizeNode(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.
| Improve this Doc View Source

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

ITransactionalGraph
IGraph
INodeFactory
System.IDisposable
System.Xml.Serialization.IXmlSerializable

Extension Methods

GraphExtensions.ToDataTable(IGraph)
Extensions.AsEnumerable<T>(T)
Extensions.Assert(IGraph, INode, INode, INode)
Extensions.Retract(IGraph, INode, INode, INode)
Extensions.AssertList<T>(IGraph, IEnumerable<T>, Func<T, INode>)
Extensions.AssertList<T>(IGraph, INode, IEnumerable<T>, Func<T, INode>)
Extensions.AssertList(IGraph, IEnumerable<INode>)
Extensions.AssertList(IGraph, INode, IEnumerable<INode>)
Extensions.GetListAsTriples(IGraph, INode)
Extensions.GetListItems(IGraph, INode)
Extensions.GetListNodes(IGraph, INode)
Extensions.RetractList(IGraph, INode)
Extensions.AddToList<T>(IGraph, INode, IEnumerable<T>, Func<T, INode>)
Extensions.AddToList(IGraph, INode, IEnumerable<INode>)
Extensions.RemoveFromList<T>(IGraph, INode, IEnumerable<T>, Func<T, INode>)
Extensions.RemoveFromList(IGraph, INode, IEnumerable<INode>)
GraphExtensions.ExecuteQuery(IGraph, String)
GraphExtensions.ExecuteQuery(IGraph, IRdfHandler, ISparqlResultsHandler, String)
GraphExtensions.ExecuteQuery(IGraph, SparqlParameterizedString)
GraphExtensions.ExecuteQuery(IGraph, IRdfHandler, ISparqlResultsHandler, SparqlParameterizedString)
GraphExtensions.ExecuteQuery(IGraph, SparqlQuery)
GraphExtensions.ExecuteQuery(IGraph, IRdfHandler, ISparqlResultsHandler, SparqlQuery)
GraphExtensions.LoadFromFile(IGraph, String, IRdfReader)
GraphExtensions.LoadFromFile(IGraph, String)
GraphExtensions.LoadFromUri(IGraph, Uri, IRdfReader)
GraphExtensions.LoadFromUri(IGraph, Uri)
GraphExtensions.LoadFromString(IGraph, String, IRdfReader)
GraphExtensions.LoadFromString(IGraph, String)
GraphExtensions.LoadFromEmbeddedResource(IGraph, String)
GraphExtensions.LoadFromEmbeddedResource(IGraph, String, IRdfReader)
GraphExtensions.SaveToFile(IGraph, String, IRdfWriter)
GraphExtensions.SaveToFile(IGraph, String, IStoreWriter)
GraphExtensions.SaveToFile(IGraph, String)
GraphExtensions.SaveToStream(IGraph, TextWriter, IRdfWriter)
GraphExtensions.SaveToStream(IGraph, TextWriter, IStoreWriter)
GraphExtensions.SaveToStream(IGraph, String, TextWriter)
DynamicExtensions.AsDynamic(IGraph, Uri, Uri)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • StoreVirtualGraphPersistenceWrapper(IStorageProvider, IVirtualRdfProvider<TNodeID, TGraphID>, IGraph, Uri, Boolean)
  • Fields
    • _provider
  • Methods
    • Assert(Triple)
    • ContainsTriple(Triple)
    • CreateVirtual(IVirtualRdfProvider<TNodeID, TGraphID>, INode)
    • Retract(Triple)
    • VirtualizeNode(INode)
    • VirtualizeTriple(Triple)
  • Implements
  • Extension Methods
Back to top Generated by DocFX