Show / Hide Table of Contents

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
GraphPersistenceWrapper
StoreGraphPersistenceWrapper
StoreVirtualGraphPersistenceWrapper<TNodeID, TGraphID>
Implements
ITransactionalGraph
IGraph
INodeFactory
System.IDisposable
System.Xml.Serialization.IXmlSerializable
Inherited Members
GraphPersistenceWrapper._g
GraphPersistenceWrapper.BaseUri
GraphPersistenceWrapper.IsEmpty
GraphPersistenceWrapper.NamespaceMap
GraphPersistenceWrapper.Nodes
GraphPersistenceWrapper.AllNodes
GraphPersistenceWrapper.Triples
GraphPersistenceWrapper.Assert(Triple)
GraphPersistenceWrapper.Assert(IEnumerable<Triple>)
GraphPersistenceWrapper.Retract(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.ContainsTriple(Triple)
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
Assembly: dotNetRDF.dll
Syntax
public class StoreGraphPersistenceWrapper : GraphPersistenceWrapper, ITransactionalGraph, IGraph, INodeFactory, IDisposable, IXmlSerializable

Constructors

| Improve this Doc View Source

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

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.

| Improve this Doc View Source

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

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.

| Improve this Doc View Source

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 Source

SupportsTriplePersistence

Gets whether the in-use IStorageProvider supports triple level updates.
Declaration
protected override bool SupportsTriplePersistence { get; }
Property Value
Type Description
System.Boolean
Overrides
GraphPersistenceWrapper.SupportsTriplePersistence

Methods

| Improve this Doc View Source

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

PersistGraph()

Persists the entire Graph to the in-use IStorageProvider.
Declaration
protected override void PersistGraph()
Overrides
GraphPersistenceWrapper.PersistGraph()
| Improve this Doc View Source

PersistInsertedTriples(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
GraphPersistenceWrapper.PersistInsertedTriples(IEnumerable<Triple>)

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
    • StoreGraphPersistenceWrapper(IStorageProvider, Uri)
    • StoreGraphPersistenceWrapper(IStorageProvider, Uri, Boolean)
    • StoreGraphPersistenceWrapper(IStorageProvider, IGraph)
    • StoreGraphPersistenceWrapper(IStorageProvider, IGraph, Boolean)
    • StoreGraphPersistenceWrapper(IStorageProvider, IGraph, Uri, Boolean)
  • Properties
    • SupportsTriplePersistence
  • Methods
    • PersistDeletedTriples(IEnumerable<Triple>)
    • PersistGraph()
    • PersistInsertedTriples(IEnumerable<Triple>)
  • Implements
  • Extension Methods
Back to top Generated by DocFX