Class BaseVariableNode
Abstract Base Class for Variable Nodes.
Implements
System.IEquatable <BaseVariableNode >
System.IComparable <BaseVariableNode >
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 BaseVariableNode : BaseNode, IVariableNode, IEquatable<BaseVariableNode>, IComparable<BaseVariableNode>, 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 SourceBaseVariableNode()
Deserialization Only Constructor.
Declaration
protected BaseVariableNode()
BaseVariableNode(SerializationInfo, StreamingContext)
Deserialization Constructor.
Declaration
protected BaseVariableNode(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System. |
info | Serialization Information. |
System. |
context | Streaming Context. |
BaseVariableNode(IGraph, String)
Creates a new Variable Node.
Declaration
protected BaseVariableNode(IGraph g, string varname)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph. |
System. |
varname | Variable Name. |
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. |
NumericType
Gets the numeric type of the expression.
Declaration
public SparqlNumericType NumericType { get; }
Property Value
Type | Description |
---|---|
Sparql |
VariableName
Gets the Variable Name.
Declaration
public string VariableName { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
| Improve this Doc View SourceAsBoolean()
Throws an error as variables cannot be converted to types.
Declaration
public bool AsBoolean()
Returns
Type | Description |
---|---|
System. |
AsDateTime()
Throws an error as variables cannot be converted to types.
Declaration
public DateTime AsDateTime()
Returns
Type | Description |
---|---|
System. |
AsDateTimeOffset()
Throws an error as variables cannot be converted to types.
Declaration
public DateTimeOffset AsDateTimeOffset()
Returns
Type | Description |
---|---|
System. |
AsDecimal()
Throws an error as variables cannot be converted to types.
Declaration
public decimal AsDecimal()
Returns
Type | Description |
---|---|
System. |
AsDouble()
Throws an error as variables cannot be converted to types.
Declaration
public double AsDouble()
Returns
Type | Description |
---|---|
System. |
AsFloat()
Throws an error as variables cannot be converted to types.
Declaration
public float AsFloat()
Returns
Type | Description |
---|---|
System. |
AsInteger()
Throws an error as variables cannot be converted to types.
Declaration
public long AsInteger()
Returns
Type | Description |
---|---|
System. |
AsString()
Throws an error as variables cannot be converted to types.
Declaration
public string AsString()
Returns
Type | Description |
---|---|
System. |
AsTimeSpan()
Throws an error as variables cannot be cast to a time span.
Declaration
public TimeSpan AsTimeSpan()
Returns
Type | Description |
---|---|
System. |
CompareTo(BaseVariableNode)
Returns an Integer indicating the Ordering of this Node compared to another Node.
Declaration
public int CompareTo(BaseVariableNode other)
Parameters
Type | Name | Description |
---|---|---|
Base |
other | Node to test against. |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
IBlank |
other | Node to test against. |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
IGraph |
other | Node to test against. |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
ILiteral |
other | Node to test against. |
Returns
Type | Description |
---|---|
System. |
Overrides
| Improve this Doc View SourceCompareTo(INode)
Compares this Node to another Node.
Declaration
public override int CompareTo(INode other)
Parameters
Type | Name | Description |
---|---|---|
INode | other | Node to compare with. |
Returns
Type | Description |
---|---|
System. |
Overrides
| Improve this Doc View SourceCompareTo(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 |
---|---|---|
IUri |
other | Node to test against. |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
IVariable |
other | Node to test against. |
Returns
Type | Description |
---|---|
System. |
Overrides
| Improve this Doc View SourceEquals(Object)
Gets whether this Node is equal to some Object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System. |
obj | Object to test. |
Returns
Type | Description |
---|---|
System. |
Overrides
| Improve this Doc View SourceEquals(BaseVariableNode)
Determines whether this Node is equal to a Variable Node.
Declaration
public bool Equals(BaseVariableNode other)
Parameters
Type | Name | Description |
---|---|---|
Base |
other | Variable Node. |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
IBlank |
other | Blank Node. |
Returns
Type | Description |
---|---|
System. |
Overrides
| Improve this Doc View SourceEquals(IGraphLiteralNode)
Determines whether this Node is equal to a Graph Literal Node (should always be false).
Declaration
public override bool Equals(IGraphLiteralNode other)
Parameters
Type | Name | Description |
---|---|---|
IGraph |
other | Graph Literal Node. |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
ILiteral |
other | Literal Node. |
Returns
Type | Description |
---|---|
System. |
Overrides
| Improve this Doc View SourceEquals(INode)
Gets whether this Node is equal to some other Node.
Declaration
public override bool Equals(INode other)
Parameters
Type | Name | Description |
---|---|---|
INode | other | Node to test. |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
IUri |
other | URI Node. |
Returns
Type | Description |
---|---|
System. |
Overrides
| Improve this Doc View SourceEquals(IVariableNode)
Determines whether this Node is equal to a Variable Node.
Declaration
public override bool Equals(IVariableNode other)
Parameters
Type | Name | Description |
---|---|---|
IVariable |
other | Variable Node. |
Returns
Type | Description |
---|---|
System. |
Overrides
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
Gets the data for serialization.
Declaration
public sealed override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System. |
info | Serialization Information. |
System. |
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. |
reader | XML Reader. |
Overrides
| Improve this Doc View SourceToString()
Gets the String representation of this Node.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
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. |
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