Class DynamicNode
A WrapperNode that provides read/write dictionary and dynamic functionality.
Implements
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.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
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 SourceDynamicNode(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. |
baseUri | The URI used to resolve relative predicate references. |
Exceptions
Type | Condition |
---|---|
System. |
When node has no graph. |
Properties
| Improve this Doc View SourceBaseUri
Gets the URI used to resolve relative predicate references.
Declaration
public Uri BaseUri { get; }
Property Value
Type | Description |
---|---|
System. |
Count
Gets the number of distinct outgoing predicates from this node.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System. |
IsReadOnly
Gets a value indicating whether this node is read only (always false).
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
System. |
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. |
predicate | The predicate to use. |
Property Value
Type | Description |
---|---|
System. |
A Dynamicpredicate . |
Exceptions
Type | Condition |
---|---|
System. |
When predicate is null. |
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. |
predicate | The predicate to use. |
Property Value
Type | Description |
---|---|
System. |
A Dynamicpredicate . |
Exceptions
Type | Condition |
---|---|
System. |
When predicate is null. |
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. |
A Dynamicpredicate . |
Exceptions
Type | Condition |
---|---|
System. |
When predicate is null. |
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. |
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. |
Methods
| Improve this Doc View SourceAdd(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. |
predicate | The predicate to assert. |
System. |
objects | An object or enumerable representing objects to assert. |
Exceptions
Type | Condition |
---|---|
System. |
When predicate is null. |
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. |
predicate | The predicate to assert. |
System. |
objects | An object or enumerable representing objects to assert. |
Exceptions
Type | Condition |
---|---|
System. |
When predicate is null. |
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. |
objects | An object or enumerable representing objects to assert. |
Exceptions
Type | Condition |
---|---|
System. |
When predicate or objects is null. |
Clear()
Retracts statements with this subject.
Declaration
public void Clear()
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. |
predicate | The predicate to assert. |
System. |
objects | An object or enumerable representing objects to assert. |
Returns
Type | Description |
---|---|
System. |
Whether statements exist with this subject, predicate equivalent to predicate and objects equivalent to objects . |
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. |
predicate | The predicate to assert. |
System. |
objects | An object or enumerable representing objects to assert. |
Returns
Type | Description |
---|---|
System. |
Whether statements exist with this subject, predicate equivalent to predicate and objects equivalent to objects . |
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. |
objects | An object or enumerable representing objects to assert. |
Returns
Type | Description |
---|---|
System. |
Whether statements exist with this subject, predicate and objects equivalent to objects . |
ContainsKey(String)
Checks whether this node has an outgoing predicate equivalent to
key
.
Declaration
public bool ContainsKey(string key)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The node to check. |
Returns
Type | Description |
---|---|
System. |
Whether this node has an outgoing predicate equivalent to key . |
ContainsKey(Uri)
Checks whether this node has an outgoing predicate equivalent to
key
.
Declaration
public bool ContainsKey(Uri key)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The node to check. |
Returns
Type | Description |
---|---|
System. |
Whether this node has an outgoing predicate equivalent to key . |
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. |
Whether this node has an outgoing predicate equal to key . |
Remove(String)
Retracts statements with this subject and equivalent to
predicate
.
Declaration
public bool Remove(string predicate)
Parameters
Type | Name | Description |
---|---|---|
System. |
predicate | The predicate to retract. |
Returns
Type | Description |
---|---|
System. |
Whether any statements were retracted. |
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. |
predicate | The predicate to retract. |
System. |
objects | An object with public properties or a dictionary representing predicates and objects to retract. |
Returns
Type | Description |
---|---|
System. |
Whether any statements were retracted. |
Remove(Uri)
Retracts statements with this subject and equivalent to
predicate
.
Declaration
public bool Remove(Uri predicate)
Parameters
Type | Name | Description |
---|---|---|
System. |
predicate | The predicate to retract. |
Returns
Type | Description |
---|---|
System. |
Whether any statements were retracted. |
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. |
predicate | The predicate to retract. |
System. |
objects | An object with public properties or a dictionary representing predicates and objects to retract. |
Returns
Type | Description |
---|---|
System. |
Whether any statements were retracted. |
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. |
Whether any statements were retracted. |
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. |
objects | An object with public properties or a dictionary representing predicates and objects to retract. |
Returns
Type | Description |
---|---|
System. |
Whether any statements were retracted. |
TryGetValue(String, out Object)
Tries to get an object collection.
Declaration
public bool TryGetValue(string predicate, out object value)
Parameters
Type | Name | Description |
---|---|---|
System. |
predicate | The predicate to try. |
System. |
value | A Dynamic |
Returns
Type | Description |
---|---|
System. |
A value representing whether a value was set or not. |
TryGetValue(Uri, out Object)
Tries to get an object collection.
Declaration
public bool TryGetValue(Uri predicate, out object value)
Parameters
Type | Name | Description |
---|---|---|
System. |
predicate | The predicate to try. |
System. |
value | A Dynamic |
Returns
Type | Description |
---|---|
System. |
A value representing whether a value was set or not. |
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. |
value | A Dynamic |
Returns
Type | Description |
---|---|
System. |
A value representing whether a value was set or not. |
Explicit Interface Implementations
| Improve this Doc View SourceICollection<KeyValuePair<String, Object>>.Add(KeyValuePair<String, Object>)
Declaration
void ICollection<KeyValuePair<string, object>>.Add(KeyValuePair<string, object> item)
Parameters
Type | Name | Description |
---|---|---|
System. |
item |
ICollection<KeyValuePair<String, Object>>.Contains(KeyValuePair<String, Object>)
Declaration
bool ICollection<KeyValuePair<string, object>>.Contains(KeyValuePair<string, object> item)
Parameters
Type | Name | Description |
---|---|---|
System. |
item |
Returns
Type | Description |
---|---|
System. |
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. |
array | |
System. |
arrayIndex |
ICollection<KeyValuePair<String, Object>>.Remove(KeyValuePair<String, Object>)
Declaration
bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> item)
Parameters
Type | Name | Description |
---|---|---|
System. |
item |
Returns
Type | Description |
---|---|
System. |
ICollection<KeyValuePair<Uri, Object>>.Add(KeyValuePair<Uri, Object>)
Declaration
void ICollection<KeyValuePair<Uri, object>>.Add(KeyValuePair<Uri, object> item)
Parameters
Type | Name | Description |
---|---|---|
System. |
item |
ICollection<KeyValuePair<Uri, Object>>.Contains(KeyValuePair<Uri, Object>)
Declaration
bool ICollection<KeyValuePair<Uri, object>>.Contains(KeyValuePair<Uri, object> item)
Parameters
Type | Name | Description |
---|---|---|
System. |
item |
Returns
Type | Description |
---|---|
System. |
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. |
array | |
System. |
arrayIndex |
ICollection<KeyValuePair<Uri, Object>>.Remove(KeyValuePair<Uri, Object>)
Declaration
bool ICollection<KeyValuePair<Uri, object>>.Remove(KeyValuePair<Uri, object> item)
Parameters
Type | Name | Description |
---|---|---|
System. |
item |
Returns
Type | Description |
---|---|
System. |
ICollection<KeyValuePair<INode, Object>>.Add(KeyValuePair<INode, Object>)
Declaration
void ICollection<KeyValuePair<INode, object>>.Add(KeyValuePair<INode, object> item)
Parameters
Type | Name | Description |
---|---|---|
System. |
item |
ICollection<KeyValuePair<INode, Object>>.Contains(KeyValuePair<INode, Object>)
Declaration
bool ICollection<KeyValuePair<INode, object>>.Contains(KeyValuePair<INode, object> item)
Parameters
Type | Name | Description |
---|---|---|
System. |
item |
Returns
Type | Description |
---|---|
System. |
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. |
array | |
System. |
arrayIndex |
ICollection<KeyValuePair<INode, Object>>.Remove(KeyValuePair<INode, Object>)
Declaration
bool ICollection<KeyValuePair<INode, object>>.Remove(KeyValuePair<INode, object> item)
Parameters
Type | Name | Description |
---|---|---|
System. |
item |
Returns
Type | Description |
---|---|
System. |
IDictionary<Uri, Object>.Keys
Declaration
ICollection<Uri> IDictionary<Uri, object>.Keys { get; }
Returns
Type | Description |
---|---|
System. |
IDictionary<INode, Object>.Keys
Declaration
ICollection<INode> IDictionary<INode, object>.Keys { get; }
Returns
Type | Description |
---|---|
System. |
IEnumerable<KeyValuePair<String, Object>>.GetEnumerator()
Declaration
IEnumerator<KeyValuePair<string, object>> IEnumerable<KeyValuePair<string, object>>.GetEnumerator()
Returns
Type | Description |
---|---|
System. |
IEnumerable<KeyValuePair<Uri, Object>>.GetEnumerator()
Declaration
IEnumerator<KeyValuePair<Uri, object>> IEnumerable<KeyValuePair<Uri, object>>.GetEnumerator()
Returns
Type | Description |
---|---|
System. |
IEnumerable<KeyValuePair<INode, Object>>.GetEnumerator()
Declaration
IEnumerator<KeyValuePair<INode, object>> IEnumerable<KeyValuePair<INode, object>>.GetEnumerator()
Returns
Type | Description |
---|---|
System. |
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System. |
IDynamicMetaObjectProvider.GetMetaObject(Expression)
Declaration
DynamicMetaObject IDynamicMetaObjectProvider.GetMetaObject(Expression parameter)
Parameters
Type | Name | Description |
---|---|---|
System. |
parameter |
Returns
Type | Description |
---|---|
System. |
IBlankNode.InternalID
Gets the Internal ID of the Blank Node.
Declaration
string IBlankNode.InternalID { get; }
Returns
Type | Description |
---|---|
System. |
IUriNode.Uri
Gets the URI the Node represents.
Declaration
Uri IUriNode.Uri { get; }
Returns
Type | Description |
---|---|
System. |
Implements
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