Click or drag to resize

FileGraphPersistenceWrapper Class

The File Graph Persistence Wrapper is a wrapper around antoher Graph that will be persisted to a file.
Inheritance Hierarchy

Namespace:  VDS.RDF
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public class FileGraphPersistenceWrapper : GraphPersistenceWrapper

The FileGraphPersistenceWrapper type exposes the following members.

Constructors
  NameDescription
Public methodFileGraphPersistenceWrapper(String)
Creates a new File Graph Persistence Wrapper around a new emtpy Graph.
Public methodFileGraphPersistenceWrapper(IGraph, String)
Creates a new File Graph Persistence Wrapper around the given Graph.
Top
Properties
  NameDescription
Public propertyAllNodes
Gets the unique Subject, Predicate and Object nodes of the Graph.
(Inherited from GraphPersistenceWrapper.)
Public propertyBaseUri
Gets/Sets the Base URI of the Graph.
(Inherited from GraphPersistenceWrapper.)
Public propertyIsEmpty
Gets whether the Graph is empty.
(Inherited from GraphPersistenceWrapper.)
Public propertyNamespaceMap
Gets the Namespace Map for the Graph.
(Inherited from GraphPersistenceWrapper.)
Public propertyNodes
Gets the unique Subject and Object nodes of the Graph.
(Inherited from GraphPersistenceWrapper.)
Protected propertySupportsTriplePersistence
Returns that Triple persistence is not supported.
(Overrides GraphPersistenceWrapperSupportsTriplePersistence.)
Public propertyTriples
Gets the Triple Collection for the Graph.
(Inherited from GraphPersistenceWrapper.)
Top
Methods
  NameDescription
Public methodAssert(IEnumerableTriple)
Asserts Triples in the Graph.
(Inherited from GraphPersistenceWrapper.)
Public methodAssert(Triple)
Asserts a Triple in the Graph.
(Inherited from GraphPersistenceWrapper.)
Protected methodAttachEventHandlers
Helper method for attaching the necessary event Handlers to a Triple Collection.
(Inherited from GraphPersistenceWrapper.)
Public methodClear
Clears the Graph.
(Inherited from GraphPersistenceWrapper.)
Public methodContainsTriple
Gets whether a given Triple exists in this Graph.
(Inherited from GraphPersistenceWrapper.)
Public methodCreateBlankNode
Creates a new Blank Node.
(Inherited from GraphPersistenceWrapper.)
Public methodCreateBlankNode(String)
Creates a new Blank Node with the given Node ID.
(Inherited from GraphPersistenceWrapper.)
Public methodCreateGraphLiteralNode
Creates a new Graph Literal Node.
(Inherited from GraphPersistenceWrapper.)
Public methodCreateGraphLiteralNode(IGraph)
Creates a new Graph Literal Node with the given sub-graph.
(Inherited from GraphPersistenceWrapper.)
Public methodCreateLiteralNode(String)
Creates a new Literal Node.
(Inherited from GraphPersistenceWrapper.)
Public methodCreateLiteralNode(String, String)
Creates a new Literal Node with the given Language.
(Inherited from GraphPersistenceWrapper.)
Public methodCreateLiteralNode(String, Uri)
Creates a new Literal Node with the given Datatype.
(Inherited from GraphPersistenceWrapper.)
Public methodCreateUriNode
Creates a new URI Node that references the Graphs Base URI.
(Inherited from GraphPersistenceWrapper.)
Public methodCreateUriNode(String)
Creates a new URI Node from a QName.
(Inherited from GraphPersistenceWrapper.)
Public methodCreateUriNode(Uri)
Creates a new URI Node.
(Inherited from GraphPersistenceWrapper.)
Public methodCreateVariableNode
Creates a new Variable Node.
(Inherited from GraphPersistenceWrapper.)
Protected methodDetachEventHandlers
Helper method for detaching the necessary event Handlers from a Triple Collection.
(Inherited from GraphPersistenceWrapper.)
Public methodDifference
Computes the Difference between this Graph the given Graph.
(Inherited from GraphPersistenceWrapper.)
Public methodDiscard
Discards all changes which have yet to be persisted so that they are not persisted to the underlying storage.
(Inherited from GraphPersistenceWrapper.)
Public methodDispose
Disposes of the persistence wrapper and in doing so persists any changes to the underlying storage.
(Inherited from GraphPersistenceWrapper.)
Protected methodDispose(Boolean)
Disposes of the persistence wrapper and in doing so persists any changes to the underlying storage.
(Inherited from GraphPersistenceWrapper.)
Public methodEquals(Object)
Determines whether a Graph is equal to another Object.
(Inherited from GraphPersistenceWrapper.)
Public methodEquals(IGraph, DictionaryINode, INode)
Determines whether this Graph is equal to the given Graph.
(Inherited from GraphPersistenceWrapper.)
Protected methodFinalize
Destructor for the wrapper to ensure that Dispose() is called and thus that persistence happens
(Inherited from GraphPersistenceWrapper.)
Public methodFlush
Flushes all changes which have yet to be persisted to the underlying storage.
(Inherited from GraphPersistenceWrapper.)
Public methodGetBlankNode
Attempts to get the Blank Node with the given ID.
(Inherited from GraphPersistenceWrapper.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLiteralNode(String)
Attempts to get the Literal Node with the given Value.
(Inherited from GraphPersistenceWrapper.)
Public methodGetLiteralNode(String, String)
Attempts to get the Literal Node with the given Value and Language.
(Inherited from GraphPersistenceWrapper.)
Public methodGetLiteralNode(String, Uri)
Attempts to get the Literal Node with the given Value and Datatype.
(Inherited from GraphPersistenceWrapper.)
Public methodGetNextBlankNodeID
Gets the next available Blank Node ID.
(Inherited from GraphPersistenceWrapper.)
Public methodGetObjectData
Gets the Serialization Information.
(Inherited from GraphPersistenceWrapper.)
Public methodGetSchema
Gets the Schema for XML serialization.
(Inherited from GraphPersistenceWrapper.)
Public methodGetTriples(Uri)
Gets all the Triples involving the given URI.
(Inherited from GraphPersistenceWrapper.)
Public methodGetTriples(INode)
Gets all the Triples involving the given Node.
(Inherited from GraphPersistenceWrapper.)
Public methodGetTriplesWithObject(Uri)
Gets all the Triples with the given URI as the Object.
(Inherited from GraphPersistenceWrapper.)
Public methodGetTriplesWithObject(INode)
Gets all the Triples with the given Node as the Object.
(Inherited from GraphPersistenceWrapper.)
Public methodGetTriplesWithPredicate(Uri)
Gets all the Triples with the given Uri as the Predicate.
(Inherited from GraphPersistenceWrapper.)
Public methodGetTriplesWithPredicate(INode)
Gets all the Triples with the given Node as the Predicate.
(Inherited from GraphPersistenceWrapper.)
Public methodGetTriplesWithPredicateObject
Selects all Triples with the given Predicate and Object.
(Inherited from GraphPersistenceWrapper.)
Public methodGetTriplesWithSubject(Uri)
Gets all the Triples with the given Uri as the Subject.
(Inherited from GraphPersistenceWrapper.)
Public methodGetTriplesWithSubject(INode)
Gets all the Triples with the given Node as the Subject.
(Inherited from GraphPersistenceWrapper.)
Public methodGetTriplesWithSubjectObject
Selects all Triples with the given Subject and Object.
(Inherited from GraphPersistenceWrapper.)
Public methodGetTriplesWithSubjectPredicate
Selects all Triples with the given Subject and Predicate.
(Inherited from GraphPersistenceWrapper.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUriNode(String)
Returns the UriNode with the given QName if it exists.
(Inherited from GraphPersistenceWrapper.)
Public methodGetUriNode(Uri)
Returns the UriNode with the given Uri if it exists.
(Inherited from GraphPersistenceWrapper.)
Public methodHasSubGraph(IGraph)
Checks whether this Graph has the given Graph as a sub-graph.
(Inherited from GraphPersistenceWrapper.)
Public methodHasSubGraph(IGraph, DictionaryINode, INode)
Checks whether this Graph has the given Graph as a sub-graph.
(Inherited from GraphPersistenceWrapper.)
Public methodIsSubGraphOf(IGraph)
Checks whether this Graph is a sub-graph of the given Graph.
(Inherited from GraphPersistenceWrapper.)
Public methodIsSubGraphOf(IGraph, DictionaryINode, INode)
Checks whether this Graph is a sub-graph of the given Graph.
(Inherited from GraphPersistenceWrapper.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMerge(IGraph)
Merges another Graph into the current Graph.
(Inherited from GraphPersistenceWrapper.)
Public methodMerge(IGraph, Boolean)
Merges another Graph into the current Graph.
(Inherited from GraphPersistenceWrapper.)
Protected methodOnTripleAsserted
Event Handler which handles the Triple Added event from the underlying Triple Collection by raising the Graph's TripleAsserted event.
(Inherited from GraphPersistenceWrapper.)
Protected methodOnTripleRetracted
Event Handler which handles the Triple Removed event from the underlying Triple Collection by raising the Graph's Triple Retracted event.
(Inherited from GraphPersistenceWrapper.)
Protected methodPersistDeletedTriples
Persists deleted Triples to the underlying Storage.
(Inherited from GraphPersistenceWrapper.)
Protected methodPersistGraph
Persists the entire Graph to a File.
(Overrides GraphPersistenceWrapperPersistGraph.)
Protected methodPersistInsertedTriples
Persists inserted Triples to the underlying Storage.
(Inherited from GraphPersistenceWrapper.)
Protected methodRaiseCleared
Helper method for raising the Cleared event.
(Inherited from GraphPersistenceWrapper.)
Protected methodRaiseClearRequested
Helper method for raising the Clear Requested event and returning whether any of the Event Handlers cancelled the operation.
(Inherited from GraphPersistenceWrapper.)
Protected methodRaiseGraphChanged
Helper method for raising the Changed event.
(Inherited from GraphPersistenceWrapper.)
Protected methodRaiseGraphChanged(TripleEventArgs)
Helper method for raising the Changed event.
(Inherited from GraphPersistenceWrapper.)
Protected methodRaiseMerged
Helper method for raising the Merged event.
(Inherited from GraphPersistenceWrapper.)
Protected methodRaiseMergeRequested
Helper method for raising the Merge Requested event and returning whether any of the Event Handlers cancelled the operation.
(Inherited from GraphPersistenceWrapper.)
Protected methodRaiseTripleAsserted(Triple)
Helper method for raising the Triple Asserted event manually.
(Inherited from GraphPersistenceWrapper.)
Protected methodRaiseTripleAsserted(TripleEventArgs)
Helper method for raising the Triple Asserted event manually.
(Inherited from GraphPersistenceWrapper.)
Protected methodRaiseTripleRetracted(Triple)
Helper method for raising the Triple Retracted event manually.
(Inherited from GraphPersistenceWrapper.)
Protected methodRaiseTripleRetracted(TripleEventArgs)
Helper method for raising the Triple Retracted event manually.
(Inherited from GraphPersistenceWrapper.)
Public methodReadXml
Reads the data for XML deserialization.
(Inherited from GraphPersistenceWrapper.)
Public methodResolveQName
Helper function for Resolving QNames to URIs.
(Inherited from GraphPersistenceWrapper.)
Public methodRetract(IEnumerableTriple)
Retracts Triples from the Graph.
(Inherited from GraphPersistenceWrapper.)
Public methodRetract(Triple)
Retracts a Triple from the Graph.
(Inherited from GraphPersistenceWrapper.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteXml
Writes the data for XML serialization.
(Inherited from GraphPersistenceWrapper.)
Top
Events
  NameDescription
Public eventChanged
Event which is raised when the Graph contents change
(Inherited from GraphPersistenceWrapper.)
Public eventCleared
Event which is raised after the Graph is cleared of its contents
(Inherited from GraphPersistenceWrapper.)
Public eventClearRequested
Event which is raised just before the Graph is cleared of its contents
(Inherited from GraphPersistenceWrapper.)
Public eventMerged
Event which is raised when a Merge operation is completed on the Graph
(Inherited from GraphPersistenceWrapper.)
Public eventMergeRequested
Event which is raised when a Merge operation is requested on the Graph
(Inherited from GraphPersistenceWrapper.)
Public eventTripleAsserted
Event which is raised when a Triple is asserted in the Graph
(Inherited from GraphPersistenceWrapper.)
Public eventTripleRetracted
Event which is raised when a Triple is retracted from the Graph
(Inherited from GraphPersistenceWrapper.)
Top
Fields
  NameDescription
Protected field_g
Underlying Graph this is a wrapper around.
(Inherited from GraphPersistenceWrapper.)
Top
See Also