Click or drag to resize

DynamicGraph Class

A wrapper that provides read/write dictionary and dynamic functionality.
Inheritance Hierarchy

Namespace:  VDS.RDF.Dynamic
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public class DynamicGraph : WrapperGraph, 
	IDynamicMetaObjectProvider, IDictionary<INode, Object>, ICollection<KeyValuePair<INode, Object>>, 
	IEnumerable<KeyValuePair<INode, Object>>, IEnumerable, 
	IDictionary<string, Object>, ICollection<KeyValuePair<string, Object>>, 
	IEnumerable<KeyValuePair<string, Object>>, IDictionary<Uri, Object>, 
	ICollection<KeyValuePair<Uri, Object>>, IEnumerable<KeyValuePair<Uri, Object>>

The DynamicGraph type exposes the following members.

Constructors
  NameDescription
Public methodDynamicGraph
Initializes a new instance of the DynamicGraph class.
Top
Properties
  NameDescription
Public propertyAllNodes
Gets the unique Subject, Predicate and Object nodes of the Graph.
(Inherited from WrapperGraph.)
Public propertyBaseUri
Gets/Sets the Base URI of the Graph.
(Inherited from WrapperGraph.)
Public propertyCount
Gets the number of URI nodes in this graph.
Public propertyIsEmpty
Gets whether the Graph is empty.
(Inherited from WrapperGraph.)
Public propertyIsReadOnly
Gets a value indicating whether this graph dictionary is read only (always false).
Public propertyItemString
Gets nodes equivalent to node or sets statements with subject equivalent to node and predicate and objects equivalent to value.
Public propertyItemUri
Gets nodes equivalent to node or sets statements with subject equivalent to node and predicate and objects equivalent to value.
Public propertyItemINode
Gets nodes equal to node or sets statements with subject equal to node and predicate and objects equivalent to value.
Public propertyKeys
Public propertyNamespaceMap
Gets the Namespace Map for the Graph.
(Inherited from WrapperGraph.)
Public propertyNodes
Gets the unique Subject and Object nodes of the Graph.
(Inherited from WrapperGraph.)
Public propertyPredicateBaseUri
Gets the URI used for resolving relative predicate references.
Public propertySubjectBaseUri
Gets the Uri used for resolving relative subject references.
Public propertyTriples
Gets the Triple Collection for the Graph.
(Inherited from WrapperGraph.)
Public propertyValues
Gets a collection of DynamicNodes representing URI nodes in this graph.
Top
Methods
  NameDescription
Public methodAdd(String, Object)
Asserts statements equivalent to the parameters.
Public methodAdd(Uri, Object)
Asserts statements equivalent to the parameters.
Public methodAdd(INode, Object)
Asserts statements equivalent to the parameters.
Public methodAssert(IEnumerableTriple)
Asserts Triples in the Graph.
(Inherited from WrapperGraph.)
Public methodAssert(Triple)
Asserts a Triple in the Graph.
(Inherited from WrapperGraph.)
Protected methodAttachEventHandlers
Helper method for attaching the necessary event handlers to the underlying graph.
(Inherited from WrapperGraph.)
Public methodClear
Clears the Graph.
(Inherited from WrapperGraph.)
Public methodContains(String, Object)
Checks whether statements exist equivalent to the parameters.
Public methodContains(Uri, Object)
Checks whether statements exist equivalent to the parameters.
Public methodContains(INode, Object)
Checks whether statements exist equivalent to the parameters.
Public methodContainsKey(String)
Checks whether a URI node equivalent to key exists.
Public methodContainsKey(Uri)
Checks whether a URI node equivalent to key exists.
Public methodContainsKey(INode)
Checks whether a URI node equal to key exists.
Public methodContainsTriple
Gets whether a given Triple exists in this Graph.
(Inherited from WrapperGraph.)
Public methodCreateBlankNode
Creates a new Blank Node.
(Inherited from WrapperGraph.)
Public methodCreateBlankNode(String)
Creates a new Blank Node with the given Node ID.
(Inherited from WrapperGraph.)
Public methodCreateGraphLiteralNode
Creates a new Graph Literal Node.
(Inherited from WrapperGraph.)
Public methodCreateGraphLiteralNode(IGraph)
Creates a new Graph Literal Node with the given sub-graph.
(Inherited from WrapperGraph.)
Public methodCreateLiteralNode(String)
Creates a new Literal Node.
(Inherited from WrapperGraph.)
Public methodCreateLiteralNode(String, String)
Creates a new Literal Node with the given Language.
(Inherited from WrapperGraph.)
Public methodCreateLiteralNode(String, Uri)
Creates a new Literal Node with the given Datatype.
(Inherited from WrapperGraph.)
Public methodCreateUriNode
Creates a new URI Node that references the Graphs Base URI.
(Inherited from WrapperGraph.)
Public methodCreateUriNode(String)
Creates a new URI Node from a QName.
(Inherited from WrapperGraph.)
Public methodCreateUriNode(Uri)
Creates a new URI Node.
(Inherited from WrapperGraph.)
Public methodCreateVariableNode
Creates a new Variable Node.
(Inherited from WrapperGraph.)
Public methodDifference
Computes the Difference between this Graph the given Graph.
(Inherited from WrapperGraph.)
Public methodDispose
Disposes of the wrapper and in doing so disposes of the underlying graph.
(Inherited from WrapperGraph.)
Public methodEquals(Object)
Determines whether a Graph is equal to another Object.
(Inherited from WrapperGraph.)
Public methodEquals(IGraph, DictionaryINode, INode)
Determines whether this Graph is equal to the given Graph.
(Inherited from WrapperGraph.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetBlankNode
Attempts to get the Blank Node with the given ID.
(Inherited from WrapperGraph.)
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 WrapperGraph.)
Public methodGetLiteralNode(String, String)
Attempts to get the Literal Node with the given Value and Language.
(Inherited from WrapperGraph.)
Public methodGetLiteralNode(String, Uri)
Attempts to get the Literal Node with the given Value and Datatype.
(Inherited from WrapperGraph.)
Public methodGetNextBlankNodeID
Gets the next available Blank Node ID.
(Inherited from WrapperGraph.)
Public methodGetObjectData
Gets the Serialization Information.
(Inherited from WrapperGraph.)
Public methodGetSchema
Gets the Schema for XML serialization.
(Inherited from WrapperGraph.)
Public methodGetTriples(Uri)
Gets all the Triples involving the given URI.
(Inherited from WrapperGraph.)
Public methodGetTriples(INode)
Gets all the Triples involving the given Node.
(Inherited from WrapperGraph.)
Public methodGetTriplesWithObject(Uri)
Gets all the Triples with the given URI as the Object.
(Inherited from WrapperGraph.)
Public methodGetTriplesWithObject(INode)
Gets all the Triples with the given Node as the Object.
(Inherited from WrapperGraph.)
Public methodGetTriplesWithPredicate(Uri)
Gets all the Triples with the given Uri as the Predicate.
(Inherited from WrapperGraph.)
Public methodGetTriplesWithPredicate(INode)
Gets all the Triples with the given Node as the Predicate.
(Inherited from WrapperGraph.)
Public methodGetTriplesWithPredicateObject
Selects all Triples with the given Predicate and Object.
(Inherited from WrapperGraph.)
Public methodGetTriplesWithSubject(Uri)
Gets all the Triples with the given Uri as the Subject.
(Inherited from WrapperGraph.)
Public methodGetTriplesWithSubject(INode)
Gets all the Triples with the given Node as the Subject.
(Inherited from WrapperGraph.)
Public methodGetTriplesWithSubjectObject
Selects all Triples with the given Subject and Object.
(Inherited from WrapperGraph.)
Public methodGetTriplesWithSubjectPredicate
Selects all Triples with the given Subject and Predicate.
(Inherited from WrapperGraph.)
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 WrapperGraph.)
Public methodGetUriNode(Uri)
Returns the UriNode with the given Uri if it exists.
(Inherited from WrapperGraph.)
Public methodHasSubGraph(IGraph)
Checks whether this Graph has the given Graph as a sub-graph.
(Inherited from WrapperGraph.)
Public methodHasSubGraph(IGraph, DictionaryINode, INode)
Checks whether this Graph has the given Graph as a sub-graph.
(Inherited from WrapperGraph.)
Public methodIsSubGraphOf(IGraph)
Checks whether this Graph is a sub-graph of the given Graph.
(Inherited from WrapperGraph.)
Public methodIsSubGraphOf(IGraph, DictionaryINode, INode)
Checks whether this Graph is a sub-graph of the given Graph.
(Inherited from WrapperGraph.)
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 WrapperGraph.)
Public methodMerge(IGraph, Boolean)
Merges another Graph into the current Graph.
(Inherited from WrapperGraph.)
Protected methodOnChanged
Event handler to help propogate Graph events from the underlying graph.
(Inherited from WrapperGraph.)
Protected methodOnCleared
Event handler to help propogate Graph events from the underlying graph.
(Inherited from WrapperGraph.)
Protected methodOnClearRequested
Event handler to help propogate Graph events from the underlying graph.
(Inherited from WrapperGraph.)
Protected methodOnMerged
Event handler to help propogate Graph events from the underlying graph.
(Inherited from WrapperGraph.)
Protected methodOnMergeRequested
Event handler to help propogate Graph events from the underlying graph.
(Inherited from WrapperGraph.)
Protected methodOnTripleAsserted
Event Handler which handles the Triple Added event from the underlying Triple Collection by raising the Graph's TripleAsserted event.
(Inherited from WrapperGraph.)
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 WrapperGraph.)
Protected methodRaiseCleared
Helper method for raising the Cleared event.
(Inherited from WrapperGraph.)
Protected methodRaiseClearRequested
Helper method for raising the Clear Requested event and returning whether any of the Event Handlers cancelled the operation.
(Inherited from WrapperGraph.)
Protected methodRaiseGraphChanged
Helper method for raising the Changed event.
(Inherited from WrapperGraph.)
Protected methodRaiseGraphChanged(TripleEventArgs)
Helper method for raising the Changed event.
(Inherited from WrapperGraph.)
Protected methodRaiseMerged
Helper method for raising the Merged event.
(Inherited from WrapperGraph.)
Protected methodRaiseMergeRequested
Helper method for raising the Merge Requested event and returning whether any of the Event Handlers cancelled the operation.
(Inherited from WrapperGraph.)
Protected methodRaiseTripleAsserted(Triple)
Helper method for raising the Triple Asserted event manually.
(Inherited from WrapperGraph.)
Protected methodRaiseTripleAsserted(TripleEventArgs)
Helper method for raising the Triple Asserted event manually.
(Inherited from WrapperGraph.)
Protected methodRaiseTripleRetracted(Triple)
Helper method for raising the Triple Retracted event manually.
(Inherited from WrapperGraph.)
Protected methodRaiseTripleRetracted(TripleEventArgs)
Helper method for raising the Triple Retracted event manually.
(Inherited from WrapperGraph.)
Public methodReadXml
Reads the data for XML deserialization.
(Inherited from WrapperGraph.)
Public methodRemove(String)
Retracts statements with subject.
Public methodRemove(Uri)
Retracts statements with subject.
Public methodRemove(INode)
Retracts statements with subject.
Public methodRemove(String, Object)
Retracts statements equivalent to the parameters.
Public methodRemove(Uri, Object)
Retracts statements equivalent to parameters.
Public methodRemove(INode, Object)
Retracts statements equivalent to the parameters.
Public methodResolveQName
Helper function for Resolving QNames to URIs.
(Inherited from WrapperGraph.)
Public methodRetract(IEnumerableTriple)
Retracts Triples from the Graph.
(Inherited from WrapperGraph.)
Public methodRetract(Triple)
Retracts a Triple from the Graph.
(Inherited from WrapperGraph.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetValue(String, Object)
Tries to get a node from the graph.
Public methodTryGetValue(Uri, Object)
Tries to get a node from the graph.
Public methodTryGetValue(INode, Object)
Tries to get a node from the graph.
Public methodWriteXml
Writes the data for XML serialization.
(Inherited from WrapperGraph.)
Top
Events
  NameDescription
Public eventChanged
Event which is raised when the Graph contents change
(Inherited from WrapperGraph.)
Public eventCleared
Event which is raised after the Graph is cleared of its contents
(Inherited from WrapperGraph.)
Public eventClearRequested
Event which is raised just before the Graph is cleared of its contents
(Inherited from WrapperGraph.)
Public eventMerged
Event which is raised when a Merge operation is completed on the Graph
(Inherited from WrapperGraph.)
Public eventMergeRequested
Event which is raised when a Merge operation is requested on the Graph
(Inherited from WrapperGraph.)
Public eventTripleAsserted
Event which is raised when a Triple is asserted in the Graph
(Inherited from WrapperGraph.)
Public eventTripleRetracted
Event which is raised when a Triple is retracted from the Graph
(Inherited from WrapperGraph.)
Top
Fields
  NameDescription
Protected field_g
Underlying Graph this is a wrapper around.
(Inherited from WrapperGraph.)
Top
Extension Methods
  NameDescription
Public Extension MethodIsDisjointKeyValuePairString, Object(IEnumerableKeyValuePairString, Object)Overloaded.
Determines whether the contents of two enumerables are disjoint.
(Defined by Extensions.)
Public Extension MethodIsDisjointKeyValuePairUri, Object(IEnumerableKeyValuePairUri, Object)Overloaded. (Defined by Extensions.)
Public Extension MethodIsDisjointKeyValuePairINode, Object(IEnumerableKeyValuePairINode, Object)Overloaded. (Defined by Extensions.)
Top
See Also