Class BaseNode
Abstract Class for Nodes, implements the two basic properties of the INode Interface.
Inheritance
System.Object
BaseNode
Implements
System.IComparable<
INode>
System.Runtime.Serialization.ISerializable
System.Xml.Serialization.IXmlSerializable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: dotNetRDF.dll
Syntax
public abstract class BaseNode : 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
Constructors
|
Improve this Doc
View Source
BaseNode(IGraph, NodeType)
Base Constructor which instantiates the Graph reference, Graph Uri and Node Type of the Node.
Declaration
public BaseNode(IGraph g, NodeType type)
Parameters
Type |
Name |
Description |
IGraph |
g |
Graph this Node is in. |
NodeType |
type |
Node Type. |
Fields
|
Improve this Doc
View Source
_graph
Reference to the Graph that the Node belongs to.
Declaration
Field Value
|
Improve this Doc
View Source
_graphUri
Uri of the Graph that the Node belongs to.
Declaration
Field Value
Type |
Description |
System.Uri |
|
|
Improve this Doc
View Source
_hashcode
Stores the computed Hash Code for this Node.
Declaration
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
_nodetype
Node Type for the Node.
Declaration
protected NodeType _nodetype
Field Value
Properties
|
Improve this Doc
View Source
Graph
Nodes belong to a Graph.
Declaration
public IGraph Graph { get; }
Property Value
|
Improve this Doc
View Source
GraphUri
Gets/Sets the Graph Uri of the Node.
Declaration
public Uri GraphUri { get; set; }
Property Value
Type |
Description |
System.Uri |
|
|
Improve this Doc
View Source
NodeType
Nodes have a Type.
Declaration
public NodeType NodeType { get; }
Property Value
Methods
|
Improve this Doc
View Source
CompareTo(IBlankNode)
Nodes must implement a CompareTo method to allow them to be Sorted.
Declaration
public abstract int CompareTo(IBlankNode other)
Parameters
Type |
Name |
Description |
IBlankNode |
other |
Node to compare self to. |
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CompareTo(IGraphLiteralNode)
Nodes must implement a CompareTo method to allow them to be Sorted.
Declaration
public abstract int CompareTo(IGraphLiteralNode other)
Parameters
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CompareTo(ILiteralNode)
Nodes must implement a CompareTo method to allow them to be Sorted.
Declaration
public abstract int CompareTo(ILiteralNode other)
Parameters
Type |
Name |
Description |
ILiteralNode |
other |
Node to compare self to. |
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CompareTo(INode)
Nodes must implement a CompareTo method to allow them to be Sorted.
Declaration
public abstract int CompareTo(INode other)
Parameters
Type |
Name |
Description |
INode |
other |
Node to compare self to. |
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CompareTo(IUriNode)
Nodes must implement a CompareTo method to allow them to be Sorted.
Declaration
public abstract int CompareTo(IUriNode other)
Parameters
Type |
Name |
Description |
IUriNode |
other |
Node to compare self to. |
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
CompareTo(IVariableNode)
Nodes must implement a CompareTo method to allow them to be Sorted.
Declaration
public abstract int CompareTo(IVariableNode other)
Parameters
Type |
Name |
Description |
IVariableNode |
other |
Node to compare self to. |
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Equals(Object)
Nodes must implement an Equals method.
Declaration
public abstract override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
Object to compare against. |
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
Equals(IBlankNode)
Nodes must implement an Equals method so we can do type specific equality.
Declaration
public abstract bool Equals(IBlankNode other)
Parameters
Type |
Name |
Description |
IBlankNode |
other |
Node to check for equality. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(IGraphLiteralNode)
Nodes must implement an Equals method so we can do type specific equality.
Declaration
public abstract bool Equals(IGraphLiteralNode other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(ILiteralNode)
Nodes must implement an Equals method so we can do type specific equality.
Declaration
public abstract bool Equals(ILiteralNode other)
Parameters
Type |
Name |
Description |
ILiteralNode |
other |
Node to check for equality. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(INode)
Nodes must implement an Equals method so we can do type specific equality.
Declaration
public abstract bool Equals(INode other)
Parameters
Type |
Name |
Description |
INode |
other |
Node to check for equality. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(IUriNode)
Nodes must implement an Equals method so we can do type specific equality.
Declaration
public abstract bool Equals(IUriNode other)
Parameters
Type |
Name |
Description |
IUriNode |
other |
Node to check for equality. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(IVariableNode)
Nodes must implement an Equals method so we can do type specific equality.
Declaration
public abstract bool Equals(IVariableNode other)
Parameters
Type |
Name |
Description |
IVariableNode |
other |
Node to check for equality. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GetHashCode()
Gets a Hash Code for a Node.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
GetObjectData(SerializationInfo, StreamingContext)
Gets the information for serialization.
Declaration
public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type |
Name |
Description |
System.Runtime.Serialization.SerializationInfo |
info |
Serialization Information. |
System.Runtime.Serialization.StreamingContext |
context |
Streaming Context. |
|
Improve this Doc
View Source
GetSchema()
Gets the schema for XML serialization.
Declaration
public XmlSchema GetSchema()
Returns
Type |
Description |
System.Xml.Schema.XmlSchema |
|
|
Improve this Doc
View Source
ReadXml(XmlReader)
Reads the data for XML deserialization.
Declaration
public virtual void ReadXml(XmlReader reader)
Parameters
Type |
Name |
Description |
System.Xml.XmlReader |
reader |
XML Reader. |
|
Improve this Doc
View Source
ToString()
Nodes must implement a ToString method.
Declaration
public abstract override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
Gets the String representation of the Node formatted with the given Node formatter.
Declaration
public virtual string ToString(INodeFormatter formatter)
Parameters
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Gets the String representation of the Node formatted with the given Node formatter.
Declaration
public virtual string ToString(INodeFormatter formatter, TripleSegment segment)
Parameters
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
WriteXml(XmlWriter)
Writes the data for XML serialization.
Declaration
public virtual void WriteXml(XmlWriter writer)
Parameters
Type |
Name |
Description |
System.Xml.XmlWriter |
writer |
XML Writer. |
Operators
|
Improve this Doc
View Source
Equality(BaseNode, BaseNode)
The Equality operator is defined for Nodes.
Declaration
public static bool operator ==(BaseNode a, BaseNode b)
Parameters
Returns
Type |
Description |
System.Boolean |
Whether the two Nodes are equal. |
|
Improve this Doc
View Source
Inequality(BaseNode, BaseNode)
The Non-Equality operator is defined for Nodes.
Declaration
public static bool operator !=(BaseNode a, BaseNode b)
Parameters
Returns
Type |
Description |
System.Boolean |
Whether the two Nodes are non-equal. |
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
Extension Methods