Class BaseVirtualLiteralNode<TNodeID, TGraphID>
Abstract Base implementation of a Virtual Literal Node.
Inheritance
System.Object
BaseVirtualNode<TNodeID, TGraphID>
BaseVirtualLiteralNode<TNodeID, TGraphID>
Implements
IVirtualNode<TNodeID, TGraphID>
System.IEquatable<IVirtualNode<TNodeID, TGraphID>>
System.IComparable<IVirtualNode<TNodeID, TGraphID>>
System.IEquatable<BaseVirtualNode<TNodeID, TGraphID>>
System.IComparable<BaseVirtualNode<TNodeID, TGraphID>>
System.IEquatable<BaseVirtualLiteralNode<TNodeID, TGraphID>>
System.IComparable<BaseVirtualLiteralNode<TNodeID, TGraphID>>
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.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Storage.Virtualisation
Assembly: dotNetRDF.dll
Syntax
public abstract class BaseVirtualLiteralNode<TNodeID, TGraphID> : BaseVirtualNode<TNodeID, TGraphID>, IVirtualNode<TNodeID, TGraphID>, IEquatable<IVirtualNode<TNodeID, TGraphID>>, IComparable<IVirtualNode<TNodeID, TGraphID>>, IVirtualIdComparable, IEquatable<BaseVirtualNode<TNodeID, TGraphID>>, IComparable<BaseVirtualNode<TNodeID, TGraphID>>, ICanCopy, ILiteralNode, IEquatable<BaseVirtualLiteralNode<TNodeID, TGraphID>>, IComparable<BaseVirtualLiteralNode<TNodeID, TGraphID>>, 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
Type Parameters
Name | Description |
---|---|
TNodeID | Node ID Type. |
TGraphID | Graph ID Type. |
Constructors
| Improve this Doc View SourceBaseVirtualLiteralNode(IGraph, TNodeID, IVirtualRdfProvider<TNodeID, TGraphID>)
Creates a new Virtual Literal Node.
Declaration
public BaseVirtualLiteralNode(IGraph g, TNodeID id, IVirtualRdfProvider<TNodeID, TGraphID> provider)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph the Node belongs to. |
TNodeID | id | Virtual ID. |
IVirtualRdfProvider<TNodeID, TGraphID> | provider | Virtual RDF Provider. |
BaseVirtualLiteralNode(IGraph, TNodeID, IVirtualRdfProvider<TNodeID, TGraphID>, ILiteralNode)
Creates a new Virtual Literal Node.
Declaration
public BaseVirtualLiteralNode(IGraph g, TNodeID id, IVirtualRdfProvider<TNodeID, TGraphID> provider, ILiteralNode value)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph the Node belongs to. |
TNodeID | id | Virtual ID. |
IVirtualRdfProvider<TNodeID, TGraphID> | provider | Virtual RDF Provider. |
ILiteralNode | value | Materialised Value. |
Properties
| Improve this Doc View SourceDataType
Gets the Datatype (if any) of the Literal.
Declaration
public Uri DataType { get; }
Property Value
Type | Description |
---|---|
System.Uri |
EffectiveType
Gets the URI of the datatype this valued node represents as a String.
Declaration
public string EffectiveType { get; }
Property Value
Type | Description |
---|---|
System.String |
Language
Gets the language specifier (if any) of the Literal.
Declaration
public string Language { 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 |
Value
Gets the lexical value of the Literal.
Declaration
public string Value { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceAsBoolean()
Gets the value as a boolean.
Declaration
public bool AsBoolean()
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
Forces a materialisation of the value.
|
Improve this Doc
View Source
AsDateTime()
Gets the value as a date time.
Declaration
public DateTime AsDateTime()
Returns
Type | Description |
---|---|
System.DateTime |
Remarks
Forces a materialisation of the value.
|
Improve this Doc
View Source
AsDateTimeOffset()
Gets the value as a date time.
Declaration
public DateTimeOffset AsDateTimeOffset()
Returns
Type | Description |
---|---|
System.DateTimeOffset |
Remarks
Forces a materialisation of the value.
|
Improve this Doc
View Source
AsDecimal()
Gets the value as a decimal.
Declaration
public decimal AsDecimal()
Returns
Type | Description |
---|---|
System.Decimal |
Remarks
Forces a materialisation of the value.
|
Improve this Doc
View Source
AsDouble()
Gets the value as a double.
Declaration
public double AsDouble()
Returns
Type | Description |
---|---|
System.Double |
Remarks
Forces a materialisation of the value.
|
Improve this Doc
View Source
AsFloat()
Gets the value as a float.
Declaration
public float AsFloat()
Returns
Type | Description |
---|---|
System.Single |
Remarks
Forces a materialisation of the value.
|
Improve this Doc
View Source
AsInteger()
Gets the value as an integer.
Declaration
public long AsInteger()
Returns
Type | Description |
---|---|
System.Int64 |
Remarks
Forces a materialisation of the value.
|
Improve this Doc
View Source
AsString()
Gets the value as a string.
Declaration
public string AsString()
Returns
Type | Description |
---|---|
System.String |
Remarks
Forces a materialisation of the value.
|
Improve this Doc
View Source
AsTimeSpan()
Gets the value as a time span.
Declaration
public TimeSpan AsTimeSpan()
Returns
Type | Description |
---|---|
System.TimeSpan |
Remarks
Forces a materialisation of the value.
|
Improve this Doc
View Source
CompareTo(ILiteralNode)
Compares this Node to another Literal Node.
Declaration
public override int CompareTo(ILiteralNode other)
Parameters
Type | Name | Description |
---|---|---|
ILiteralNode | other | Other Literal Node. |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
VDS.RDF.Storage.Virtualisation.BaseVirtualNode<TNodeID, TGraphID>.CompareTo(VDS.RDF.ILiteralNode)
Remarks
Unless Virtual Equality (equality based on the Virtual RDF Provider and Virtual ID) can be determined or the Nodes are of different types then the Nodes value will have to be materialised in order to perform comparison.
|
Improve this Doc
View Source
CompareTo(BaseVirtualLiteralNode<TNodeID, TGraphID>)
Compares this Node to another Literal Node.
Declaration
public int CompareTo(BaseVirtualLiteralNode<TNodeID, TGraphID> other)
Parameters
Type | Name | Description |
---|---|---|
BaseVirtualLiteralNode<TNodeID, TGraphID> | other | Other Literal Node. |
Returns
Type | Description |
---|---|
System.Int32 |
Remarks
Unless Virtual Equality (equality based on the Virtual RDF Provider and Virtual ID) can be determined or the Nodes are of different types then the Nodes value will have to be materialised in order to perform comparison.
|
Improve this Doc
View Source
Equals(ILiteralNode)
Checks this Node for equality against another Literal Node.
Declaration
public override bool Equals(ILiteralNode other)
Parameters
Type | Name | Description |
---|---|---|
ILiteralNode | other | Other Literal Node. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
VDS.RDF.Storage.Virtualisation.BaseVirtualNode<TNodeID, TGraphID>.Equals(VDS.RDF.ILiteralNode)
Remarks
Unless Virtual Equality (equality based on the Virtual RDF Provider and Virtual ID) can be determined or the Nodes are of different types then the Nodes value will have to be materialised in order to perform the equality check.
|
Improve this Doc
View Source
Equals(BaseVirtualLiteralNode<TNodeID, TGraphID>)
Checks this Node for equality against another Literal Node.
Declaration
public bool Equals(BaseVirtualLiteralNode<TNodeID, TGraphID> other)
Parameters
Type | Name | Description |
---|---|---|
BaseVirtualLiteralNode<TNodeID, TGraphID> | other | Other Literal Node. |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
Unless Virtual Equality (equality based on the Virtual RDF Provider and Virtual ID) can be determined or the Nodes are of different types then the Nodes value will have to be materialised in order to perform the equality check.
|
Improve this Doc
View Source
OnMaterialise()
Takes post materialisation actions.
Declaration
protected sealed override void OnMaterialise()
Overrides
VDS.RDF.Storage.Virtualisation.BaseVirtualNode<TNodeID, TGraphID>.OnMaterialise()
Implements
System.IEquatable<T>
System.IComparable<T>
System.IEquatable<T>
System.IComparable<T>
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