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
object
GraphPersistenceWrapper
StoreGraphPersistenceWrapper
StoreVirtualGraphPersistenceWrapper<TNodeID, TGraphID>
Implements
ITransactionalGraph
IGraph
INodeFactory
IDisposable
ITripleIndex
IEquatable<IGraph>
Inherited Members
StoreGraphPersistenceWrapper.SupportsTriplePersistence
StoreGraphPersistenceWrapper.PersistDeletedTriples(IEnumerable<Triple>)
StoreGraphPersistenceWrapper.PersistInsertedTriples(IEnumerable<Triple>)
StoreGraphPersistenceWrapper.PersistGraph()
GraphPersistenceWrapper._g
GraphPersistenceWrapper.BaseUri
GraphPersistenceWrapper.Name
GraphPersistenceWrapper.IsEmpty
GraphPersistenceWrapper.NamespaceMap
GraphPersistenceWrapper.UriFactory
GraphPersistenceWrapper.LanguageTagValidation
GraphPersistenceWrapper.Nodes
GraphPersistenceWrapper.AllNodes
GraphPersistenceWrapper.QuotedNodes
GraphPersistenceWrapper.AllQuotedNodes
GraphPersistenceWrapper.Triples
GraphPersistenceWrapper.QuotedTriples
GraphPersistenceWrapper.Assert(IEnumerable<Triple>)
GraphPersistenceWrapper.Retract(IEnumerable<Triple>)
GraphPersistenceWrapper.Clear()
GraphPersistenceWrapper.NormalizeLiteralValues
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.CreateTripleNode(Triple)
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.GetQuoted(Uri)
GraphPersistenceWrapper.GetQuoted(INode)
GraphPersistenceWrapper.GetQuotedWithObject(Uri)
GraphPersistenceWrapper.GetQuotedWithObject(INode)
GraphPersistenceWrapper.GetQuotedWithPredicate(INode)
GraphPersistenceWrapper.GetQuotedWithPredicate(Uri)
GraphPersistenceWrapper.GetQuotedWithSubject(INode)
GraphPersistenceWrapper.GetQuotedWithSubject(Uri)
GraphPersistenceWrapper.GetQuotedWithSubjectPredicate(INode, INode)
GraphPersistenceWrapper.GetQuotedWithSubjectObject(INode, INode)
GraphPersistenceWrapper.GetQuotedWithPredicateObject(INode, INode)
GraphPersistenceWrapper.GetUriNode(string)
GraphPersistenceWrapper.GetUriNode(Uri)
GraphPersistenceWrapper.GetTripleNode(Triple)
GraphPersistenceWrapper.ContainsQuotedTriple(Triple)
GraphPersistenceWrapper.Merge(IGraph)
GraphPersistenceWrapper.Merge(IGraph, bool)
GraphPersistenceWrapper.Equals(IGraph)
GraphPersistenceWrapper.Equals(IGraph, out Dictionary<INode, INode>)
GraphPersistenceWrapper.IsSubGraphOf(IGraph)
GraphPersistenceWrapper.IsSubGraphOf(IGraph, out Dictionary<INode, INode>)
GraphPersistenceWrapper.HasSubGraph(IGraph)
GraphPersistenceWrapper.HasSubGraph(IGraph, out Dictionary<INode, INode>)
GraphPersistenceWrapper.Difference(IGraph)
GraphPersistenceWrapper.Unstar()
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(bool)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Storage.Virtualisation
Assembly: dotNetRdf.dll
Syntax
public abstract class StoreVirtualGraphPersistenceWrapper<TNodeID, TGraphID> : StoreGraphPersistenceWrapper, ITransactionalGraph, IGraph, INodeFactory, IDisposable, ITripleIndex, IEquatable<IGraph>
Type Parameters
Name Description
TNodeID

Node ID Type.

TGraphID

Graph ID Type.

Constructors

| Edit this page View Source

StoreVirtualGraphPersistenceWrapper(IStorageProvider, IVirtualRdfProvider<TNodeID, TGraphID>, IGraph, bool)

Creates a new Store Graph Persistence Wrapper for Virtualized Nodes.

Declaration
protected StoreVirtualGraphPersistenceWrapper(IStorageProvider manager, IVirtualRdfProvider<TNodeID, TGraphID> provider, IGraph g, 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.

bool 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.

| Edit this page View Source

StoreVirtualGraphPersistenceWrapper(IStorageProvider, IVirtualRdfProvider<TNodeID, TGraphID>, IGraph, Uri, bool)

Creates a new Store Graph Persistence Wrapper for Virtualized Nodes.

Declaration
[Obsolete("Replaced by StoreVirtualGraphPersistenceWrapper(IStorageProvider, IVirtualRdfProvider, IGraph, bool)")]
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.

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 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

| Edit this page View Source

_provider

Virtual RDF Provider.

Declaration
protected readonly IVirtualRdfProvider<TNodeID, TGraphID> _provider
Field Value
Type Description
IVirtualRdfProvider<TNodeID, TGraphID>

Methods

| Edit this page 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
bool
Overrides
GraphPersistenceWrapper.Assert(Triple)
| Edit this page 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
bool

Triple is known to the Graph.

Overrides
GraphPersistenceWrapper.ContainsTriple(Triple)
| Edit this page 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
| Edit this page 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
bool
Overrides
GraphPersistenceWrapper.Retract(Triple)
| Edit this page 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.

| Edit this page 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
IDisposable
ITripleIndex
IEquatable<T>

Extension Methods

Extensions.ToSafeString(object)
GraphExtensions.ToDataTable(IGraph)
DynamicExtensions.AsDynamic(IGraph, Uri, Uri)
Extensions.AddToList(IGraph, INode, IEnumerable<INode>)
Extensions.AddToList<T>(IGraph, INode, IEnumerable<T>, Func<T, INode>)
Extensions.Assert(IGraph, INode, INode, INode)
Extensions.AssertList(IGraph, IEnumerable<INode>)
Extensions.AssertList(IGraph, INode, IEnumerable<INode>)
Extensions.AssertList<T>(IGraph, IEnumerable<T>, Func<T, INode>)
Extensions.AssertList<T>(IGraph, INode, IEnumerable<T>, Func<T, INode>)
Extensions.GetListAsTriples(IGraph, INode)
Extensions.GetListItems(IGraph, INode)
Extensions.GetListNodes(IGraph, INode)
Extensions.RemoveFromList(IGraph, INode, IEnumerable<INode>)
Extensions.RemoveFromList<T>(IGraph, INode, IEnumerable<T>, Func<T, INode>)
Extensions.Retract(IGraph, INode, INode, INode)
Extensions.RetractList(IGraph, INode)
GraphExtensions.GetETag(IGraph)
GraphExtensions.LoadFromEmbeddedResource(IGraph, string)
GraphExtensions.LoadFromEmbeddedResource(IGraph, string, IRdfReader)
GraphExtensions.LoadFromFile(IGraph, string)
GraphExtensions.LoadFromFile(IGraph, string, IRdfReader)
GraphExtensions.LoadFromString(IGraph, string)
GraphExtensions.LoadFromString(IGraph, string, IRdfReader)
GraphExtensions.LoadFromUri(IGraph, Uri, IRdfReader, Loader)
GraphExtensions.LoadFromUri(IGraph, Uri, Loader)
GraphExtensions.SaveToFile(IGraph, string)
GraphExtensions.SaveToFile(IGraph, string, IRdfWriter)
GraphExtensions.SaveToFile(IGraph, string, IStoreWriter)
GraphExtensions.SaveToStream(IGraph, TextWriter, IRdfWriter)
GraphExtensions.SaveToStream(IGraph, TextWriter, IStoreWriter)
GraphExtensions.SaveToStream(IGraph, string, TextWriter)
InMemoryExtensions.ExecuteQuery(IGraph, string)
InMemoryExtensions.ExecuteQuery(IGraph, IRdfHandler, ISparqlResultsHandler, string)
InMemoryExtensions.ExecuteQuery(IGraph, IRdfHandler, ISparqlResultsHandler, SparqlParameterizedString)
InMemoryExtensions.ExecuteQuery(IGraph, IRdfHandler, ISparqlResultsHandler, SparqlQuery)
InMemoryExtensions.ExecuteQuery(IGraph, SparqlParameterizedString)
InMemoryExtensions.ExecuteQuery(IGraph, SparqlQuery)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • StoreVirtualGraphPersistenceWrapper(IStorageProvider, IVirtualRdfProvider<TNodeID, TGraphID>, IGraph, bool)
    • StoreVirtualGraphPersistenceWrapper(IStorageProvider, IVirtualRdfProvider<TNodeID, TGraphID>, IGraph, Uri, bool)
  • 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