DynamicGraph Class |
Namespace: VDS.RDF.Dynamic
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.
| Name | Description | |
|---|---|---|
| DynamicGraph |
Initializes a new instance of the DynamicGraph class.
|
| Name | Description | |
|---|---|---|
| AllNodes |
Gets the unique Subject, Predicate and Object nodes of the Graph.
(Inherited from WrapperGraph.) | |
| BaseUri |
Gets/Sets the Base URI of the Graph.
(Inherited from WrapperGraph.) | |
| Count |
Gets the number of URI nodes in this graph.
| |
| IsEmpty |
Gets whether the Graph is empty.
(Inherited from WrapperGraph.) | |
| IsReadOnly |
Gets a value indicating whether this graph dictionary is read only (always false).
| |
| ItemString |
Gets nodes equivalent to node or sets statements with subject equivalent to node and predicate and objects equivalent to value.
| |
| ItemUri |
Gets nodes equivalent to node or sets statements with subject equivalent to node and predicate and objects equivalent to value.
| |
| ItemINode |
Gets nodes equal to node or sets statements with subject equal to node and predicate and objects equivalent to value.
| |
| Keys |
Gets an ICollectionT containing Uri subject node names shortened as much as possible.
| |
| NamespaceMap |
Gets the Namespace Map for the Graph.
(Inherited from WrapperGraph.) | |
| Nodes |
Gets the unique Subject and Object nodes of the Graph.
(Inherited from WrapperGraph.) | |
| PredicateBaseUri |
Gets the URI used for resolving relative predicate references.
| |
| SubjectBaseUri |
Gets the Uri used for resolving relative subject references.
| |
| Triples |
Gets the Triple Collection for the Graph.
(Inherited from WrapperGraph.) | |
| Values |
Gets a collection of DynamicNodes representing URI nodes in this graph.
|
| Name | Description | |
|---|---|---|
| Add(String, Object) |
Asserts statements equivalent to the parameters.
| |
| Add(Uri, Object) |
Asserts statements equivalent to the parameters.
| |
| Add(INode, Object) |
Asserts statements equivalent to the parameters.
| |
| Assert(IEnumerableTriple) |
Asserts Triples in the Graph.
(Inherited from WrapperGraph.) | |
| Assert(Triple) |
Asserts a Triple in the Graph.
(Inherited from WrapperGraph.) | |
| AttachEventHandlers |
Helper method for attaching the necessary event handlers to the underlying graph.
(Inherited from WrapperGraph.) | |
| Clear |
Clears the Graph.
(Inherited from WrapperGraph.) | |
| Contains(String, Object) |
Checks whether statements exist equivalent to the parameters.
| |
| Contains(Uri, Object) |
Checks whether statements exist equivalent to the parameters.
| |
| Contains(INode, Object) |
Checks whether statements exist equivalent to the parameters.
| |
| ContainsKey(String) |
Checks whether a URI node equivalent to key exists.
| |
| ContainsKey(Uri) |
Checks whether a URI node equivalent to key exists.
| |
| ContainsKey(INode) |
Checks whether a URI node equal to key exists.
| |
| ContainsTriple |
Gets whether a given Triple exists in this Graph.
(Inherited from WrapperGraph.) | |
| CreateBlankNode |
Creates a new Blank Node.
(Inherited from WrapperGraph.) | |
| CreateBlankNode(String) |
Creates a new Blank Node with the given Node ID.
(Inherited from WrapperGraph.) | |
| CreateGraphLiteralNode |
Creates a new Graph Literal Node.
(Inherited from WrapperGraph.) | |
| CreateGraphLiteralNode(IGraph) |
Creates a new Graph Literal Node with the given sub-graph.
(Inherited from WrapperGraph.) | |
| CreateLiteralNode(String) |
Creates a new Literal Node.
(Inherited from WrapperGraph.) | |
| CreateLiteralNode(String, String) |
Creates a new Literal Node with the given Language.
(Inherited from WrapperGraph.) | |
| CreateLiteralNode(String, Uri) |
Creates a new Literal Node with the given Datatype.
(Inherited from WrapperGraph.) | |
| CreateUriNode |
Creates a new URI Node that references the Graphs Base URI.
(Inherited from WrapperGraph.) | |
| CreateUriNode(String) |
Creates a new URI Node from a QName.
(Inherited from WrapperGraph.) | |
| CreateUriNode(Uri) |
Creates a new URI Node.
(Inherited from WrapperGraph.) | |
| CreateVariableNode |
Creates a new Variable Node.
(Inherited from WrapperGraph.) | |
| Difference |
Computes the Difference between this Graph the given Graph.
(Inherited from WrapperGraph.) | |
| Dispose |
Disposes of the wrapper and in doing so disposes of the underlying graph.
(Inherited from WrapperGraph.) | |
| Equals(Object) |
Determines whether a Graph is equal to another Object.
(Inherited from WrapperGraph.) | |
| Equals(IGraph, DictionaryINode, INode) |
Determines whether this Graph is equal to the given Graph.
(Inherited from WrapperGraph.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetBlankNode |
Attempts to get the Blank Node with the given ID.
(Inherited from WrapperGraph.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetLiteralNode(String) |
Attempts to get the Literal Node with the given Value.
(Inherited from WrapperGraph.) | |
| GetLiteralNode(String, String) |
Attempts to get the Literal Node with the given Value and Language.
(Inherited from WrapperGraph.) | |
| GetLiteralNode(String, Uri) |
Attempts to get the Literal Node with the given Value and Datatype.
(Inherited from WrapperGraph.) | |
| GetNextBlankNodeID |
Gets the next available Blank Node ID.
(Inherited from WrapperGraph.) | |
| GetObjectData |
Gets the Serialization Information.
(Inherited from WrapperGraph.) | |
| GetSchema |
Gets the Schema for XML serialization.
(Inherited from WrapperGraph.) | |
| GetTriples(Uri) |
Gets all the Triples involving the given URI.
(Inherited from WrapperGraph.) | |
| GetTriples(INode) |
Gets all the Triples involving the given Node.
(Inherited from WrapperGraph.) | |
| GetTriplesWithObject(Uri) |
Gets all the Triples with the given URI as the Object.
(Inherited from WrapperGraph.) | |
| GetTriplesWithObject(INode) |
Gets all the Triples with the given Node as the Object.
(Inherited from WrapperGraph.) | |
| GetTriplesWithPredicate(Uri) |
Gets all the Triples with the given Uri as the Predicate.
(Inherited from WrapperGraph.) | |
| GetTriplesWithPredicate(INode) |
Gets all the Triples with the given Node as the Predicate.
(Inherited from WrapperGraph.) | |
| GetTriplesWithPredicateObject |
Selects all Triples with the given Predicate and Object.
(Inherited from WrapperGraph.) | |
| GetTriplesWithSubject(Uri) |
Gets all the Triples with the given Uri as the Subject.
(Inherited from WrapperGraph.) | |
| GetTriplesWithSubject(INode) |
Gets all the Triples with the given Node as the Subject.
(Inherited from WrapperGraph.) | |
| GetTriplesWithSubjectObject |
Selects all Triples with the given Subject and Object.
(Inherited from WrapperGraph.) | |
| GetTriplesWithSubjectPredicate |
Selects all Triples with the given Subject and Predicate.
(Inherited from WrapperGraph.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| GetUriNode(String) |
Returns the UriNode with the given QName if it exists.
(Inherited from WrapperGraph.) | |
| GetUriNode(Uri) |
Returns the UriNode with the given Uri if it exists.
(Inherited from WrapperGraph.) | |
| HasSubGraph(IGraph) |
Checks whether this Graph has the given Graph as a sub-graph.
(Inherited from WrapperGraph.) | |
| HasSubGraph(IGraph, DictionaryINode, INode) |
Checks whether this Graph has the given Graph as a sub-graph.
(Inherited from WrapperGraph.) | |
| IsSubGraphOf(IGraph) |
Checks whether this Graph is a sub-graph of the given Graph.
(Inherited from WrapperGraph.) | |
| IsSubGraphOf(IGraph, DictionaryINode, INode) |
Checks whether this Graph is a sub-graph of the given Graph.
(Inherited from WrapperGraph.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Merge(IGraph) |
Merges another Graph into the current Graph.
(Inherited from WrapperGraph.) | |
| Merge(IGraph, Boolean) |
Merges another Graph into the current Graph.
(Inherited from WrapperGraph.) | |
| OnChanged |
Event handler to help propogate Graph events from the underlying graph.
(Inherited from WrapperGraph.) | |
| OnCleared |
Event handler to help propogate Graph events from the underlying graph.
(Inherited from WrapperGraph.) | |
| OnClearRequested |
Event handler to help propogate Graph events from the underlying graph.
(Inherited from WrapperGraph.) | |
| OnMerged |
Event handler to help propogate Graph events from the underlying graph.
(Inherited from WrapperGraph.) | |
| OnMergeRequested |
Event handler to help propogate Graph events from the underlying graph.
(Inherited from WrapperGraph.) | |
| OnTripleAsserted |
Event Handler which handles the Triple Added event from the underlying Triple Collection by raising the Graph's TripleAsserted event.
(Inherited from WrapperGraph.) | |
| OnTripleRetracted |
Event Handler which handles the Triple Removed event from the underlying Triple Collection by raising the Graph's Triple Retracted event.
(Inherited from WrapperGraph.) | |
| RaiseCleared |
Helper method for raising the Cleared event.
(Inherited from WrapperGraph.) | |
| RaiseClearRequested |
Helper method for raising the Clear Requested event and returning whether any of the Event Handlers cancelled the operation.
(Inherited from WrapperGraph.) | |
| RaiseGraphChanged |
Helper method for raising the Changed event.
(Inherited from WrapperGraph.) | |
| RaiseGraphChanged(TripleEventArgs) |
Helper method for raising the Changed event.
(Inherited from WrapperGraph.) | |
| RaiseMerged |
Helper method for raising the Merged event.
(Inherited from WrapperGraph.) | |
| RaiseMergeRequested |
Helper method for raising the Merge Requested event and returning whether any of the Event Handlers cancelled the operation.
(Inherited from WrapperGraph.) | |
| RaiseTripleAsserted(Triple) |
Helper method for raising the Triple Asserted event manually.
(Inherited from WrapperGraph.) | |
| RaiseTripleAsserted(TripleEventArgs) |
Helper method for raising the Triple Asserted event manually.
(Inherited from WrapperGraph.) | |
| RaiseTripleRetracted(Triple) |
Helper method for raising the Triple Retracted event manually.
(Inherited from WrapperGraph.) | |
| RaiseTripleRetracted(TripleEventArgs) |
Helper method for raising the Triple Retracted event manually.
(Inherited from WrapperGraph.) | |
| ReadXml |
Reads the data for XML deserialization.
(Inherited from WrapperGraph.) | |
| Remove(String) |
Retracts statements with subject.
| |
| Remove(Uri) |
Retracts statements with subject.
| |
| Remove(INode) |
Retracts statements with subject.
| |
| Remove(String, Object) |
Retracts statements equivalent to the parameters.
| |
| Remove(Uri, Object) |
Retracts statements equivalent to parameters.
| |
| Remove(INode, Object) |
Retracts statements equivalent to the parameters.
| |
| ResolveQName |
Helper function for Resolving QNames to URIs.
(Inherited from WrapperGraph.) | |
| Retract(IEnumerableTriple) |
Retracts Triples from the Graph.
(Inherited from WrapperGraph.) | |
| Retract(Triple) |
Retracts a Triple from the Graph.
(Inherited from WrapperGraph.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| TryGetValue(String, Object) |
Tries to get a node from the graph.
| |
| TryGetValue(Uri, Object) |
Tries to get a node from the graph.
| |
| TryGetValue(INode, Object) |
Tries to get a node from the graph.
| |
| WriteXml |
Writes the data for XML serialization.
(Inherited from WrapperGraph.) |
| Name | Description | |
|---|---|---|
| Changed |
Event which is raised when the Graph contents change
(Inherited from WrapperGraph.) | |
| Cleared |
Event which is raised after the Graph is cleared of its contents
(Inherited from WrapperGraph.) | |
| ClearRequested |
Event which is raised just before the Graph is cleared of its contents
(Inherited from WrapperGraph.) | |
| Merged |
Event which is raised when a Merge operation is completed on the Graph
(Inherited from WrapperGraph.) | |
| MergeRequested |
Event which is raised when a Merge operation is requested on the Graph
(Inherited from WrapperGraph.) | |
| TripleAsserted |
Event which is raised when a Triple is asserted in the Graph
(Inherited from WrapperGraph.) | |
| TripleRetracted |
Event which is raised when a Triple is retracted from the Graph
(Inherited from WrapperGraph.) |
| Name | Description | |
|---|---|---|
| _g |
Underlying Graph this is a wrapper around.
(Inherited from WrapperGraph.) |
| Name | Description | |
|---|---|---|
| IsDisjointKeyValuePairString, Object(IEnumerableKeyValuePairString, Object) | Overloaded.
Determines whether the contents of two enumerables are disjoint.
(Defined by Extensions.) | |
| IsDisjointKeyValuePairUri, Object(IEnumerableKeyValuePairUri, Object) | Overloaded. (Defined by Extensions.) | |
| IsDisjointKeyValuePairINode, Object(IEnumerableKeyValuePairINode, Object) | Overloaded. (Defined by Extensions.) |