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
object
GraphPersistenceWrapper
StoreGraphPersistenceWrapper
StoreVirtualGraphPersistenceWrapper<TNodeID, TGraphID>
Implements
ITransactionalGraph
IGraph
INodeFactory
IDisposable
ITripleIndex
IEquatable<IGraph>
Inherited Members
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(Triple)
GraphPersistenceWrapper.Assert(IEnumerable<Triple>)
GraphPersistenceWrapper.Retract(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.ContainsTriple(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
Assembly: dotNetRdf.dll
Syntax
public class StoreGraphPersistenceWrapper : GraphPersistenceWrapper, ITransactionalGraph, IGraph, INodeFactory, IDisposable, ITripleIndex, IEquatable<IGraph>

Constructors

| Edit this page View Source

StoreGraphPersistenceWrapper(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
IStorageProvider manager

Generic IO Manager.

Uri graphUri

Graph URI (the URI the Graph will be persisted as).

| Edit this page View Source

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

| Edit this page 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.

| Edit this page View Source

StoreGraphPersistenceWrapper(IStorageProvider, IGraph, bool)

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.

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

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

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

Generic IO Manager.

IRefNode graphName

The name the graph will be persisted as.

| Edit this page View Source

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

Generic IO Manager.

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

Properties

| Edit this page View Source

SupportsTriplePersistence

Gets whether the in-use IStorageProvider supports triple level updates.

Declaration
protected override bool SupportsTriplePersistence { get; }
Property Value
Type Description
bool
Overrides
GraphPersistenceWrapper.SupportsTriplePersistence

Methods

| Edit this page 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
IEnumerable<Triple> ts

Triples.

Overrides
GraphPersistenceWrapper.PersistDeletedTriples(IEnumerable<Triple>)
| Edit this page View Source

PersistGraph()

Persists the entire Graph to the in-use IStorageProvider.

Declaration
protected override void PersistGraph()
Overrides
GraphPersistenceWrapper.PersistGraph()
| Edit this page 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
IEnumerable<Triple> ts

Triples.

Overrides
GraphPersistenceWrapper.PersistInsertedTriples(IEnumerable<Triple>)

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