Class BaseVirtualGraphLiteralNode<TNodeID, TGraphID>
Abstract Base implementation of a Virtual Graph Literal Node.
Inheritance
System.Object
BaseVirtualNode<TNodeID, TGraphID>
BaseVirtualGraphLiteralNode<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<BaseVirtualGraphLiteralNode<TNodeID, TGraphID>>
System.IComparable<BaseVirtualGraphLiteralNode<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 BaseVirtualGraphLiteralNode<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, IGraphLiteralNode, IEquatable<BaseVirtualGraphLiteralNode<TNodeID, TGraphID>>, IComparable<BaseVirtualGraphLiteralNode<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 SourceBaseVirtualGraphLiteralNode(IGraph, TNodeID, IVirtualRdfProvider<TNodeID, TGraphID>)
Creates a new Virtual Graph Literal Node.
Declaration
public BaseVirtualGraphLiteralNode(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. |
BaseVirtualGraphLiteralNode(IGraph, TNodeID, IVirtualRdfProvider<TNodeID, TGraphID>, IGraphLiteralNode)
Creates a new Virtual Graph Literal Node.
Declaration
public BaseVirtualGraphLiteralNode(IGraph g, TNodeID id, IVirtualRdfProvider<TNodeID, TGraphID> provider, IGraphLiteralNode value)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph the Node belongs to. |
TNodeID | id | Virtual ID. |
IVirtualRdfProvider<TNodeID, TGraphID> | provider | Virtual RDF Provider. |
IGraphLiteralNode | value | Materialised Value. |
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 this Graph Literal represents.
Declaration
public IGraph SubGraph { get; }
Property Value
Type | Description |
---|---|
IGraph |
Methods
| Improve this Doc View SourceAsBoolean()
Throws an error as graph literal nodes cannot be cast to types.
Declaration
public bool AsBoolean()
Returns
Type | Description |
---|---|
System.Boolean |
AsDateTime()
Throws an error as graph literal nodes cannot be cast to types.
Declaration
public DateTime AsDateTime()
Returns
Type | Description |
---|---|
System.DateTime |
AsDateTimeOffset()
Throws an error as graph literal nodes cannot be cast to types.
Declaration
public DateTimeOffset AsDateTimeOffset()
Returns
Type | Description |
---|---|
System.DateTimeOffset |
AsDecimal()
Throws an error as graph literal nodes cannot be cast to types.
Declaration
public decimal AsDecimal()
Returns
Type | Description |
---|---|
System.Decimal |
AsDouble()
Throws an error as graph literal nodes cannot be cast to types.
Declaration
public double AsDouble()
Returns
Type | Description |
---|---|
System.Double |
AsFloat()
Throws an error as graph literal nodes cannot be cast to types.
Declaration
public float AsFloat()
Returns
Type | Description |
---|---|
System.Single |
AsInteger()
Throws an error as graph literal nodes cannot be cast to types.
Declaration
public long AsInteger()
Returns
Type | Description |
---|---|
System.Int64 |
AsString()
Throws an error as graph literal nodes cannot be cast to types.
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(IGraphLiteralNode)
Compares this Node to another Graph Literal Node.
Declaration
public override int CompareTo(IGraphLiteralNode other)
Parameters
Type | Name | Description |
---|---|---|
IGraphLiteralNode | other | Other Graph Literal Node. |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
VDS.RDF.Storage.Virtualisation.BaseVirtualNode<TNodeID, TGraphID>.CompareTo(VDS.RDF.IGraphLiteralNode)
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(BaseVirtualGraphLiteralNode<TNodeID, TGraphID>)
Compares this Node to another Graph Literal Node.
Declaration
public int CompareTo(BaseVirtualGraphLiteralNode<TNodeID, TGraphID> other)
Parameters
Type | Name | Description |
---|---|---|
BaseVirtualGraphLiteralNode<TNodeID, TGraphID> | other | Other Graph 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(IGraphLiteralNode)
Checks this Node for equality against another Graph Literal Node.
Declaration
public override bool Equals(IGraphLiteralNode other)
Parameters
Type | Name | Description |
---|---|---|
IGraphLiteralNode | other | Other Graph Literal Node. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
VDS.RDF.Storage.Virtualisation.BaseVirtualNode<TNodeID, TGraphID>.Equals(VDS.RDF.IGraphLiteralNode)
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(BaseVirtualGraphLiteralNode<TNodeID, TGraphID>)
Checks this Node for equality against another Graph Literal Node.
Declaration
public bool Equals(BaseVirtualGraphLiteralNode<TNodeID, TGraphID> other)
Parameters
Type | Name | Description |
---|---|---|
BaseVirtualGraphLiteralNode<TNodeID, TGraphID> | other | Other Graph 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