Show / Hide Table of Contents

Class DynamicNode

A WrapperNode that provides read/write dictionary and dynamic functionality.
Inheritance
System.Object
WrapperNode
DynamicNode
Implements
ILiteralNode
IUriNode
IBlankNode
INode
System.IComparable<INode>
System.IComparable<IBlankNode>
System.IComparable<IGraphLiteralNode>
System.IComparable<ILiteralNode>
System.IComparable<IUriNode>
System.IComparable<IVariableNode>
System.IEquatable<INode>
System.IEquatable<IBlankNode>
System.IEquatable<IGraphLiteralNode>
System.IEquatable<ILiteralNode>
System.IEquatable<IUriNode>
System.IEquatable<IVariableNode>
System.Runtime.Serialization.ISerializable
System.Xml.Serialization.IXmlSerializable
System.Dynamic.IDynamicMetaObjectProvider
System.Collections.Generic.IDictionary<INode, System.Object>
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<INode, System.Object>>
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<INode, System.Object>>
System.Collections.Generic.IDictionary<System.String, System.Object>
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String, System.Object>>
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Object>>
System.Collections.Generic.IDictionary<System.Uri, System.Object>
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.Uri, System.Object>>
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.Uri, System.Object>>
System.Collections.IEnumerable
Inherited Members
WrapperNode.NodeType
WrapperNode.Graph
WrapperNode.GraphUri
WrapperNode.ILiteralNode.Value
WrapperNode.ILiteralNode.Language
WrapperNode.ILiteralNode.DataType
WrapperNode.Node
WrapperNode.Equals(Object)
WrapperNode.GetHashCode()
WrapperNode.ToString()
WrapperNode.CompareTo(INode)
WrapperNode.CompareTo(IBlankNode)
WrapperNode.CompareTo(IGraphLiteralNode)
WrapperNode.CompareTo(ILiteralNode)
WrapperNode.CompareTo(IUriNode)
WrapperNode.CompareTo(IVariableNode)
WrapperNode.Equals(INode)
WrapperNode.Equals(IBlankNode)
WrapperNode.Equals(IGraphLiteralNode)
WrapperNode.Equals(ILiteralNode)
WrapperNode.Equals(IUriNode)
WrapperNode.Equals(IVariableNode)
WrapperNode.ToString(INodeFormatter)
WrapperNode.ToString(INodeFormatter, TripleSegment)
WrapperNode.ISerializable.GetObjectData(SerializationInfo, StreamingContext)
WrapperNode.IXmlSerializable.GetSchema()
WrapperNode.IXmlSerializable.ReadXml(XmlReader)
WrapperNode.IXmlSerializable.WriteXml(XmlWriter)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: VDS.RDF.Dynamic
Assembly: dotNetRDF.dll
Syntax
public class DynamicNode : WrapperNode, ILiteralNode, IUriNode, IBlankNode, INode, IComparable<INode>, IComparable<IBlankNode>, IComparable<IGraphLiteralNode>, IComparable<ILiteralNode>, IComparable<IUriNode>, IComparable<IVariableNode>, IEquatable<INode>, IEquatable<IBlankNode>, IEquatable<IGraphLiteralNode>, IEquatable<ILiteralNode>, IEquatable<IUriNode>, IEquatable<IVariableNode>, ISerializable, IXmlSerializable, IDynamicMetaObjectProvider, IDictionary<INode, object>, ICollection<KeyValuePair<INode, object>>, IEnumerable<KeyValuePair<INode, object>>, IDictionary<string, object>, ICollection<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IDictionary<Uri, object>, ICollection<KeyValuePair<Uri, object>>, IEnumerable<KeyValuePair<Uri, object>>, IEnumerable

Constructors

| Improve this Doc View Source

DynamicNode(INode, Uri)

Initializes a new instance of the DynamicNode class.
Declaration
public DynamicNode(INode node, Uri baseUri = null)
Parameters
Type Name Description
INode node The node to wrap.
System.Uri baseUri The URI used to resolve relative predicate references.
Exceptions
Type Condition
System.InvalidOperationException When node has no graph.

Properties

| Improve this Doc View Source

BaseUri

Gets the URI used to resolve relative predicate references.
Declaration
public Uri BaseUri { get; }
Property Value
Type Description
System.Uri
| Improve this Doc View Source

Count

Gets the number of distinct outgoing predicates from this node.
Declaration
public int Count { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

IsReadOnly

Gets a value indicating whether this node is read only (always false).
Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Item[String]

Gets statement objects with this subject and predicate equivalent to predicate or sets staements with this subject, predicate equivalent to predicate and objects equivalent to value.
Declaration
public object this[string predicate] { get; set; }
Parameters
Type Name Description
System.String predicate The predicate to use.
Property Value
Type Description
System.Object A DynamicObjectCollection with this subject and predicate.
Exceptions
Type Condition
System.ArgumentNullException When predicate is null.
| Improve this Doc View Source

Item[Uri]

Gets statement objects with this subject and predicate equivalent to predicate or sets staements with this subject, predicate equivalent to predicate and objects equivalent to value.
Declaration
public object this[Uri predicate] { get; set; }
Parameters
Type Name Description
System.Uri predicate The predicate to use.
Property Value
Type Description
System.Object A DynamicObjectCollection with this subject and predicate.
Exceptions
Type Condition
System.ArgumentNullException When predicate is null.
| Improve this Doc View Source

Item[INode]

Gets statement objects with this subject and predicate or sets staements with this subject, predicate and objects equivalent to value.
Declaration
public object this[INode predicate] { get; set; }
Parameters
Type Name Description
INode predicate The predicate to use.
Property Value
Type Description
System.Object A DynamicObjectCollection with this subject and predicate.
Exceptions
Type Condition
System.ArgumentNullException When predicate is null.
| Improve this Doc View Source

Keys

Gets an System.Collections.Generic.ICollection<T> containing outgoing predicate node names shortened as much as possible.
Declaration
public ICollection<string> Keys { get; }
Property Value
Type Description
System.Collections.Generic.ICollection<System.String>
| Improve this Doc View Source

Values

Gets a collection of DynamicObjectCollection, one per distinct outgoing predicate from this node.
Declaration
public ICollection<object> Values { get; }
Property Value
Type Description
System.Collections.Generic.ICollection<System.Object>

Methods

| Improve this Doc View Source

Add(String, Object)

Asserts statements with this subject and predicate and objects equivalent to parameters.
Declaration
public void Add(string predicate, object objects)
Parameters
Type Name Description
System.String predicate The predicate to assert.
System.Object objects An object or enumerable representing objects to assert.
Exceptions
Type Condition
System.ArgumentNullException When predicate is null.
| Improve this Doc View Source

Add(Uri, Object)

Asserts statements with this subject and predicate and objects equivalent to parameters.
Declaration
public void Add(Uri predicate, object objects)
Parameters
Type Name Description
System.Uri predicate The predicate to assert.
System.Object objects An object or enumerable representing objects to assert.
Exceptions
Type Condition
System.ArgumentNullException When predicate is null.
| Improve this Doc View Source

Add(INode, Object)

Asserts statements with this subject, predicate and equivalent to objects.
Declaration
public void Add(INode predicate, object objects)
Parameters
Type Name Description
INode predicate The predicate to assert.
System.Object objects An object or enumerable representing objects to assert.
Exceptions
Type Condition
System.ArgumentNullException When predicate or objects is null.
| Improve this Doc View Source

Clear()

Retracts statements with this subject.
Declaration
public void Clear()
| Improve this Doc View Source

Contains(String, Object)

Checks whether statements exist with this subject, predicate equivalent to predicate and objects equivalent to objects.
Declaration
public bool Contains(string predicate, object objects)
Parameters
Type Name Description
System.String predicate The predicate to assert.
System.Object objects An object or enumerable representing objects to assert.
Returns
Type Description
System.Boolean Whether statements exist with this subject, predicate equivalent to predicate and objects equivalent to objects.
| Improve this Doc View Source

Contains(Uri, Object)

Checks whether statements exist with this subject, predicate equivalent to predicate and objects equivalent to objects.
Declaration
public bool Contains(Uri predicate, object objects)
Parameters
Type Name Description
System.Uri predicate The predicate to assert.
System.Object objects An object or enumerable representing objects to assert.
Returns
Type Description
System.Boolean Whether statements exist with this subject, predicate equivalent to predicate and objects equivalent to objects.
| Improve this Doc View Source

Contains(INode, Object)

Checks whether statements exist with this subject, predicate and objects equivalent to objects.
Declaration
public bool Contains(INode predicate, object objects)
Parameters
Type Name Description
INode predicate The predicate to assert.
System.Object objects An object or enumerable representing objects to assert.
Returns
Type Description
System.Boolean Whether statements exist with this subject, predicate and objects equivalent to objects.
| Improve this Doc View Source

ContainsKey(String)

Checks whether this node has an outgoing predicate equivalent to key.
Declaration
public bool ContainsKey(string key)
Parameters
Type Name Description
System.String key The node to check.
Returns
Type Description
System.Boolean Whether this node has an outgoing predicate equivalent to key.
| Improve this Doc View Source

ContainsKey(Uri)

Checks whether this node has an outgoing predicate equivalent to key.
Declaration
public bool ContainsKey(Uri key)
Parameters
Type Name Description
System.Uri key The node to check.
Returns
Type Description
System.Boolean Whether this node has an outgoing predicate equivalent to key.
| Improve this Doc View Source

ContainsKey(INode)

Checks whether this node has an outgoing predicate equal to key.
Declaration
public bool ContainsKey(INode key)
Parameters
Type Name Description
INode key The node to check.
Returns
Type Description
System.Boolean Whether this node has an outgoing predicate equal to key.
| Improve this Doc View Source

Remove(String)

Retracts statements with this subject and equivalent to predicate.
Declaration
public bool Remove(string predicate)
Parameters
Type Name Description
System.String predicate The predicate to retract.
Returns
Type Description
System.Boolean Whether any statements were retracted.
| Improve this Doc View Source

Remove(String, Object)

Retracts statements with this subject, predicate equivalent to predicate and objects equivalent to objects.
Declaration
public bool Remove(string predicate, object objects)
Parameters
Type Name Description
System.String predicate The predicate to retract.
System.Object objects An object with public properties or a dictionary representing predicates and objects to retract.
Returns
Type Description
System.Boolean Whether any statements were retracted.
| Improve this Doc View Source

Remove(Uri)

Retracts statements with this subject and equivalent to predicate.
Declaration
public bool Remove(Uri predicate)
Parameters
Type Name Description
System.Uri predicate The predicate to retract.
Returns
Type Description
System.Boolean Whether any statements were retracted.
| Improve this Doc View Source

Remove(Uri, Object)

Retracts statements with this subject, predicate equivalent to predicate and objects equivalent to objects.
Declaration
public bool Remove(Uri predicate, object objects)
Parameters
Type Name Description
System.Uri predicate The predicate to retract.
System.Object objects An object with public properties or a dictionary representing predicates and objects to retract.
Returns
Type Description
System.Boolean Whether any statements were retracted.
| Improve this Doc View Source

Remove(INode)

Retracts statements with this subject and predicate.
Declaration
public bool Remove(INode predicate)
Parameters
Type Name Description
INode predicate The predicate to retract.
Returns
Type Description
System.Boolean Whether any statements were retracted.
| Improve this Doc View Source

Remove(INode, Object)

Retracts statements with this subject, predicate and objects equivalent to objects.
Declaration
public bool Remove(INode predicate, object objects)
Parameters
Type Name Description
INode predicate The predicate to retract.
System.Object objects An object with public properties or a dictionary representing predicates and objects to retract.
Returns
Type Description
System.Boolean Whether any statements were retracted.
| Improve this Doc View Source

TryGetValue(String, out Object)

Tries to get an object collection.
Declaration
public bool TryGetValue(string predicate, out object value)
Parameters
Type Name Description
System.String predicate The predicate to try.
System.Object value A DynamicObjectCollection.
Returns
Type Description
System.Boolean A value representing whether a value was set or not.
| Improve this Doc View Source

TryGetValue(Uri, out Object)

Tries to get an object collection.
Declaration
public bool TryGetValue(Uri predicate, out object value)
Parameters
Type Name Description
System.Uri predicate The predicate to try.
System.Object value A DynamicObjectCollection.
Returns
Type Description
System.Boolean A value representing whether a value was set or not.
| Improve this Doc View Source

TryGetValue(INode, out Object)

Tries to get an object collection.
Declaration
public bool TryGetValue(INode predicate, out object value)
Parameters
Type Name Description
INode predicate The predicate to try.
System.Object value A DynamicObjectCollection.
Returns
Type Description
System.Boolean A value representing whether a value was set or not.

Explicit Interface Implementations

| Improve this Doc View Source

ICollection<KeyValuePair<String, Object>>.Add(KeyValuePair<String, Object>)

Declaration
void ICollection<KeyValuePair<string, object>>.Add(KeyValuePair<string, object> item)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<System.String, System.Object> item
| Improve this Doc View Source

ICollection<KeyValuePair<String, Object>>.Contains(KeyValuePair<String, Object>)

Declaration
bool ICollection<KeyValuePair<string, object>>.Contains(KeyValuePair<string, object> item)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<System.String, System.Object> item
Returns
Type Description
System.Boolean
| Improve this Doc View Source

ICollection<KeyValuePair<String, Object>>.CopyTo(KeyValuePair<String, Object>[], Int32)

Declaration
void ICollection<KeyValuePair<string, object>>.CopyTo(KeyValuePair<string, object>[] array, int arrayIndex)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<System.String, System.Object>[] array
System.Int32 arrayIndex
| Improve this Doc View Source

ICollection<KeyValuePair<String, Object>>.Remove(KeyValuePair<String, Object>)

Declaration
bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> item)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<System.String, System.Object> item
Returns
Type Description
System.Boolean
| Improve this Doc View Source

ICollection<KeyValuePair<Uri, Object>>.Add(KeyValuePair<Uri, Object>)

Declaration
void ICollection<KeyValuePair<Uri, object>>.Add(KeyValuePair<Uri, object> item)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<System.Uri, System.Object> item
| Improve this Doc View Source

ICollection<KeyValuePair<Uri, Object>>.Contains(KeyValuePair<Uri, Object>)

Declaration
bool ICollection<KeyValuePair<Uri, object>>.Contains(KeyValuePair<Uri, object> item)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<System.Uri, System.Object> item
Returns
Type Description
System.Boolean
| Improve this Doc View Source

ICollection<KeyValuePair<Uri, Object>>.CopyTo(KeyValuePair<Uri, Object>[], Int32)

Declaration
void ICollection<KeyValuePair<Uri, object>>.CopyTo(KeyValuePair<Uri, object>[] array, int arrayIndex)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<System.Uri, System.Object>[] array
System.Int32 arrayIndex
| Improve this Doc View Source

ICollection<KeyValuePair<Uri, Object>>.Remove(KeyValuePair<Uri, Object>)

Declaration
bool ICollection<KeyValuePair<Uri, object>>.Remove(KeyValuePair<Uri, object> item)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<System.Uri, System.Object> item
Returns
Type Description
System.Boolean
| Improve this Doc View Source

ICollection<KeyValuePair<INode, Object>>.Add(KeyValuePair<INode, Object>)

Declaration
void ICollection<KeyValuePair<INode, object>>.Add(KeyValuePair<INode, object> item)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<INode, System.Object> item
| Improve this Doc View Source

ICollection<KeyValuePair<INode, Object>>.Contains(KeyValuePair<INode, Object>)

Declaration
bool ICollection<KeyValuePair<INode, object>>.Contains(KeyValuePair<INode, object> item)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<INode, System.Object> item
Returns
Type Description
System.Boolean
| Improve this Doc View Source

ICollection<KeyValuePair<INode, Object>>.CopyTo(KeyValuePair<INode, Object>[], Int32)

Declaration
void ICollection<KeyValuePair<INode, object>>.CopyTo(KeyValuePair<INode, object>[] array, int arrayIndex)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<INode, System.Object>[] array
System.Int32 arrayIndex
| Improve this Doc View Source

ICollection<KeyValuePair<INode, Object>>.Remove(KeyValuePair<INode, Object>)

Declaration
bool ICollection<KeyValuePair<INode, object>>.Remove(KeyValuePair<INode, object> item)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<INode, System.Object> item
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IDictionary<Uri, Object>.Keys

Declaration
ICollection<Uri> IDictionary<Uri, object>.Keys { get; }
Returns
Type Description
System.Collections.Generic.ICollection<System.Uri>
| Improve this Doc View Source

IDictionary<INode, Object>.Keys

Declaration
ICollection<INode> IDictionary<INode, object>.Keys { get; }
Returns
Type Description
System.Collections.Generic.ICollection<INode>
| Improve this Doc View Source

IEnumerable<KeyValuePair<String, Object>>.GetEnumerator()

Declaration
IEnumerator<KeyValuePair<string, object>> IEnumerable<KeyValuePair<string, object>>.GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.String, System.Object>>
| Improve this Doc View Source

IEnumerable<KeyValuePair<Uri, Object>>.GetEnumerator()

Declaration
IEnumerator<KeyValuePair<Uri, object>> IEnumerable<KeyValuePair<Uri, object>>.GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.Uri, System.Object>>
| Improve this Doc View Source

IEnumerable<KeyValuePair<INode, Object>>.GetEnumerator()

Declaration
IEnumerator<KeyValuePair<INode, object>> IEnumerable<KeyValuePair<INode, object>>.GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<INode, System.Object>>
| Improve this Doc View Source

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator
| Improve this Doc View Source

IDynamicMetaObjectProvider.GetMetaObject(Expression)

Declaration
DynamicMetaObject IDynamicMetaObjectProvider.GetMetaObject(Expression parameter)
Parameters
Type Name Description
System.Linq.Expressions.Expression parameter
Returns
Type Description
System.Dynamic.DynamicMetaObject
| Improve this Doc View Source

IBlankNode.InternalID

Gets the Internal ID of the Blank Node.
Declaration
string IBlankNode.InternalID { get; }
Returns
Type Description
System.String
| Improve this Doc View Source

IUriNode.Uri

Gets the URI the Node represents.
Declaration
Uri IUriNode.Uri { get; }
Returns
Type Description
System.Uri

Implements

ILiteralNode
IUriNode
IBlankNode
INode
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.Runtime.Serialization.ISerializable
System.Xml.Serialization.IXmlSerializable
System.Dynamic.IDynamicMetaObjectProvider
System.Collections.Generic.IDictionary<TKey, TValue>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.Generic.IDictionary<TKey, TValue>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.Generic.IDictionary<TKey, TValue>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable

Extension Methods

Extensions.AsEnumerable<T>(T)
Extensions.IsListRoot(INode, IGraph)
Extensions.CopyNode(INode, IGraph)
Extensions.CopyNode(INode, IGraph, Boolean)
DynamicExtensions.AsDynamic(INode, Uri)
ValuedNodeExtensions.AsValuedNode(INode)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • DynamicNode(INode, Uri)
  • Properties
    • BaseUri
    • Count
    • IsReadOnly
    • Item[String]
    • Item[Uri]
    • Item[INode]
    • Keys
    • Values
  • Methods
    • Add(String, Object)
    • Add(Uri, Object)
    • Add(INode, Object)
    • Clear()
    • Contains(String, Object)
    • Contains(Uri, Object)
    • Contains(INode, Object)
    • ContainsKey(String)
    • ContainsKey(Uri)
    • ContainsKey(INode)
    • Remove(String)
    • Remove(String, Object)
    • Remove(Uri)
    • Remove(Uri, Object)
    • Remove(INode)
    • Remove(INode, Object)
    • TryGetValue(String, out Object)
    • TryGetValue(Uri, out Object)
    • TryGetValue(INode, out Object)
  • Explicit Interface Implementations
    • ICollection<KeyValuePair<String, Object>>.Add(KeyValuePair<String, Object>)
    • ICollection<KeyValuePair<String, Object>>.Contains(KeyValuePair<String, Object>)
    • ICollection<KeyValuePair<String, Object>>.CopyTo(KeyValuePair<String, Object>[], Int32)
    • ICollection<KeyValuePair<String, Object>>.Remove(KeyValuePair<String, Object>)
    • ICollection<KeyValuePair<Uri, Object>>.Add(KeyValuePair<Uri, Object>)
    • ICollection<KeyValuePair<Uri, Object>>.Contains(KeyValuePair<Uri, Object>)
    • ICollection<KeyValuePair<Uri, Object>>.CopyTo(KeyValuePair<Uri, Object>[], Int32)
    • ICollection<KeyValuePair<Uri, Object>>.Remove(KeyValuePair<Uri, Object>)
    • ICollection<KeyValuePair<INode, Object>>.Add(KeyValuePair<INode, Object>)
    • ICollection<KeyValuePair<INode, Object>>.Contains(KeyValuePair<INode, Object>)
    • ICollection<KeyValuePair<INode, Object>>.CopyTo(KeyValuePair<INode, Object>[], Int32)
    • ICollection<KeyValuePair<INode, Object>>.Remove(KeyValuePair<INode, Object>)
    • IDictionary<Uri, Object>.Keys
    • IDictionary<INode, Object>.Keys
    • IEnumerable<KeyValuePair<String, Object>>.GetEnumerator()
    • IEnumerable<KeyValuePair<Uri, Object>>.GetEnumerator()
    • IEnumerable<KeyValuePair<INode, Object>>.GetEnumerator()
    • IEnumerable.GetEnumerator()
    • IDynamicMetaObjectProvider.GetMetaObject(Expression)
    • IBlankNode.InternalID
    • IUriNode.Uri
  • Implements
  • Extension Methods
Back to top Generated by DocFX