Class BaseGraphLiteralNode
Abstract Base Class for Graph Literal Nodes.
Implements
System.IEquatable<BaseGraphLiteralNode>
System.IComparable<BaseGraphLiteralNode>
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
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
Assembly: dotNetRDF.dll
Syntax
[Serializable]
public abstract class BaseGraphLiteralNode : BaseNode, IGraphLiteralNode, IEquatable<BaseGraphLiteralNode>, IComparable<BaseGraphLiteralNode>, IValuedNode, 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 SourceBaseGraphLiteralNode()
Deserialization Only constructor.
Declaration
protected BaseGraphLiteralNode()
BaseGraphLiteralNode(SerializationInfo, StreamingContext)
Deserializer Constructor.
Declaration
protected BaseGraphLiteralNode(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | Serialization Information. |
System.Runtime.Serialization.StreamingContext | context | Streaming Context. |
BaseGraphLiteralNode(IGraph)
Creates a new Graph Literal Node whose value is an empty Subgraph.
Declaration
protected BaseGraphLiteralNode(IGraph g)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph this node is in. |
BaseGraphLiteralNode(IGraph, IGraph)
Creates a new Graph Literal Node in the given Graph which represents the given Subgraph.
Declaration
protected BaseGraphLiteralNode(IGraph g, IGraph subgraph)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph this node is in. |
IGraph | subgraph | Sub Graph this node represents. |
Properties
| Improve this Doc View SourceEffectiveType
Gets the URI of the datatype this valued node represents as a String.
Declaration
public string EffectiveType { get; }
Property Value
Type | Description |
---|---|
System.String |
NumericType
Gets the numeric type of the node.
Declaration
public SparqlNumericType NumericType { get; }
Property Value
Type | Description |
---|---|
SparqlNumericType |
SubGraph
Gets the Subgraph that this Node represents.
Declaration
public IGraph SubGraph { get; }
Property Value
Type | Description |
---|---|
IGraph |
Methods
| Improve this Doc View SourceAsBoolean()
Throws an error as Graph Literals cannot be cast to a boolean.
Declaration
public bool AsBoolean()
Returns
Type | Description |
---|---|
System.Boolean |
AsDateTime()
Throws an error as Graph Literals cannot be cast to a date time.
Declaration
public DateTime AsDateTime()
Returns
Type | Description |
---|---|
System.DateTime |
AsDateTimeOffset()
Throws an error as Graph Literals cannot be cast to a date time.
Declaration
public DateTimeOffset AsDateTimeOffset()
Returns
Type | Description |
---|---|
System.DateTimeOffset |
AsDecimal()
Throws an error as Graph Literals cannot be cast to a decimal.
Declaration
public decimal AsDecimal()
Returns
Type | Description |
---|---|
System.Decimal |
AsDouble()
Throws an error as Graph Literals cannot be cast to a double.
Declaration
public double AsDouble()
Returns
Type | Description |
---|---|
System.Double |
AsFloat()
Throws an error as Graph Literals cannot be cast to a float.
Declaration
public float AsFloat()
Returns
Type | Description |
---|---|
System.Single |
AsInteger()
Throws an error as Graph Literals cannot be cast to an integer.
Declaration
public long AsInteger()
Returns
Type | Description |
---|---|
System.Int64 |
AsString()
Throws an error as Graph Literals cannot be cast to a string.
Declaration
public string AsString()
Returns
Type | Description |
---|---|
System.String |
AsTimeSpan()
Throws an error as Graph Literals cannot be cast to a time span.
Declaration
public TimeSpan AsTimeSpan()
Returns
Type | Description |
---|---|
System.TimeSpan |
CompareTo(BaseGraphLiteralNode)
Returns an Integer indicating the Ordering of this Node compared to another Node.
Declaration
public int CompareTo(BaseGraphLiteralNode other)
Parameters
Type | Name | Description |
---|---|---|
BaseGraphLiteralNode | other | Node to test against. |
Returns
Type | Description |
---|---|
System.Int32 |
CompareTo(IBlankNode)
Returns an Integer indicating the Ordering of this Node compared to another Node.
Declaration
public override int CompareTo(IBlankNode other)
Parameters
Type | Name | Description |
---|---|---|
IBlankNode | other | Node to test against. |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
| Improve this Doc View SourceCompareTo(IGraphLiteralNode)
Returns an Integer indicating the Ordering of this Node compared to another Node.
Declaration
public override int CompareTo(IGraphLiteralNode other)
Parameters
Type | Name | Description |
---|---|---|
IGraphLiteralNode | other | Node to test against. |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
| Improve this Doc View SourceCompareTo(ILiteralNode)
Returns an Integer indicating the Ordering of this Node compared to another Node.
Declaration
public override int CompareTo(ILiteralNode other)
Parameters
Type | Name | Description |
---|---|---|
ILiteralNode | other | Node to test against. |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
| Improve this Doc View SourceCompareTo(INode)
Implementation of CompareTo for Graph Literals.
Declaration
public override int CompareTo(INode other)
Parameters
Type | Name | Description |
---|---|---|
INode | other | Node to compare to. |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
Remarks
Graph Literal Nodes are greater than Blank Nodes, Uri Nodes, Literal Nodes and Nulls.
|
Improve this Doc
View Source
CompareTo(IUriNode)
Returns an Integer indicating the Ordering of this Node compared to another Node.
Declaration
public override int CompareTo(IUriNode other)
Parameters
Type | Name | Description |
---|---|---|
IUriNode | other | Node to test against. |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
| Improve this Doc View SourceCompareTo(IVariableNode)
Returns an Integer indicating the Ordering of this Node compared to another Node.
Declaration
public override int CompareTo(IVariableNode other)
Parameters
Type | Name | Description |
---|---|---|
IVariableNode | other | Node to test against. |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
| Improve this Doc View SourceEquals(Object)
Implementation of the Equals method for Graph Literal Nodes. Graph Literals are considered Equal if their respective Subgraphs are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to compare the Node with. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceEquals(BaseGraphLiteralNode)
Determines whether this Node is equal to a Graph Literal Node.
Declaration
public bool Equals(BaseGraphLiteralNode other)
Parameters
Type | Name | Description |
---|---|---|
BaseGraphLiteralNode | other | Graph Literal Node. |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(IBlankNode)
Determines whether this Node is equal to a Blank Node (should always be false).
Declaration
public override bool Equals(IBlankNode other)
Parameters
Type | Name | Description |
---|---|---|
IBlankNode | other | Blank Node. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceEquals(IGraphLiteralNode)
Determines whether this Node is equal to a Graph Literal Node.
Declaration
public override bool Equals(IGraphLiteralNode other)
Parameters
Type | Name | Description |
---|---|---|
IGraphLiteralNode | other | Graph Literal Node. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceEquals(ILiteralNode)
Determines whether this Node is equal to a Literal Node (should always be false).
Declaration
public override bool Equals(ILiteralNode other)
Parameters
Type | Name | Description |
---|---|---|
ILiteralNode | other | Literal Node. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceEquals(INode)
Implementation of the Equals method for Graph Literal Nodes. Graph Literals are considered Equal if their respective Subgraphs are equal.
Declaration
public override bool Equals(INode other)
Parameters
Type | Name | Description |
---|---|---|
INode | other | Object to compare the Node with. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceEquals(IUriNode)
Determines whether this Node is equal to a URI Node (should always be false).
Declaration
public override bool Equals(IUriNode other)
Parameters
Type | Name | Description |
---|---|---|
IUriNode | other | URI Node. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceEquals(IVariableNode)
Determines whether this Node is equal to a Variable Node (should always be false).
Declaration
public override bool Equals(IVariableNode other)
Parameters
Type | Name | Description |
---|---|---|
IVariableNode | other | Variable Node. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
Gets the Serialization Information.
Declaration
public sealed override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | Serialization Information. |
System.Runtime.Serialization.StreamingContext | context | Streaming Context. |
Overrides
| Improve this Doc View SourceReadXml(XmlReader)
Reads the data for XML deserialization.
Declaration
public sealed override void ReadXml(XmlReader reader)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlReader | reader | XML Reader. |
Overrides
| Improve this Doc View SourceToString()
Implementation of ToString for Graph Literals which produces a String representation of the Subgraph in N3 style syntax.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceWriteXml(XmlWriter)
Writes the data for XML serialization.
Declaration
public sealed override void WriteXml(XmlWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | writer | XML Writer. |
Overrides
Implements
System.IEquatable<T>
System.IComparable<T>
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