Class BaseVirtualVariableNode<TNodeID, TGraphID>
Abstract Base implementation of a Virtual Variable Node.
Implements
Inherited Members
Namespace: VDS.RDF.Storage.Virtualisation
Assembly: dotNetRdf.dll
Syntax
public abstract class BaseVirtualVariableNode<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, IVariableNode, IEquatable<BaseVirtualVariableNode<TNodeID, TGraphID>>, IComparable<BaseVirtualVariableNode<TNodeID, TGraphID>>, IValuedNode, INode, IComparable<INode>, IComparable<IBlankNode>, IComparable<IGraphLiteralNode>, IComparable<ILiteralNode>, IComparable<IUriNode>, IComparable<IVariableNode>, IComparable<IRefNode>, IComparable<ITripleNode>, IEquatable<INode>, IEquatable<IBlankNode>, IEquatable<IGraphLiteralNode>, IEquatable<ILiteralNode>, IEquatable<IUriNode>, IEquatable<IVariableNode>, IEquatable<IRefNode>, IEquatable<ITripleNode>
Type Parameters
| Name | Description |
|---|---|
| TNodeID | Node ID Type. |
| TGraphID | Graph ID Type. |
Constructors
| Edit this page View SourceBaseVirtualVariableNode(IGraph, TNodeID, IVirtualRdfProvider<TNodeID, TGraphID>)
Creates a new Virtual Variable Node.
Declaration
protected BaseVirtualVariableNode(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. |
BaseVirtualVariableNode(IGraph, TNodeID, IVirtualRdfProvider<TNodeID, TGraphID>, IVariableNode)
Creates a new Virtual Variable Node.
Declaration
protected BaseVirtualVariableNode(IGraph g, TNodeID id, IVirtualRdfProvider<TNodeID, TGraphID> provider, IVariableNode value)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Graph the Node belongs to. |
| TNodeID | id | Virtual ID. |
| IVirtualRdfProvider<TNodeID, TGraphID> | provider | Virtual RDF Provider. |
| IVariableNode | value | Materialised Value. |
Properties
| Edit this page View SourceEffectiveType
Gets the URI of the datatype this valued node represents as a String.
Declaration
public string EffectiveType { get; }
Property Value
| Type | Description |
|---|---|
| string |
NumericType
Gets the numeric type of the node.
Declaration
public SparqlNumericType NumericType { get; }
Property Value
| Type | Description |
|---|---|
| SparqlNumericType |
VariableName
Gets the Variable Name.
Declaration
public string VariableName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceAsBoolean()
Throws an error as variables nodes cannot be cast to types.
Declaration
public bool AsBoolean()
Returns
| Type | Description |
|---|---|
| bool |
AsDateTime()
Throws an error as variables nodes cannot be cast to types.
Declaration
public DateTime AsDateTime()
Returns
| Type | Description |
|---|---|
| DateTime |
AsDateTimeOffset()
Throws an error as variables nodes cannot be cast to types.
Declaration
public DateTimeOffset AsDateTimeOffset()
Returns
| Type | Description |
|---|---|
| DateTimeOffset |
AsDecimal()
Throws an error as variables nodes cannot be cast to types.
Declaration
public decimal AsDecimal()
Returns
| Type | Description |
|---|---|
| decimal |
AsDouble()
Throws an error as variables nodes cannot be cast to types.
Declaration
public double AsDouble()
Returns
| Type | Description |
|---|---|
| double |
AsFloat()
Throws an error as variables nodes cannot be cast to types.
Declaration
public float AsFloat()
Returns
| Type | Description |
|---|---|
| float |
AsInteger()
Throws an error as variables nodes cannot be cast to types.
Declaration
public long AsInteger()
Returns
| Type | Description |
|---|---|
| long |
AsString()
Throws an error as variables nodes cannot be cast to types.
Declaration
public string AsString()
Returns
| Type | Description |
|---|---|
| string |
AsTimeSpan()
Throws an error as variables cannot be cast to a time span.
Declaration
public TimeSpan AsTimeSpan()
Returns
| Type | Description |
|---|---|
| TimeSpan |
CompareTo(IVariableNode)
Compares this Node to another Variable Node.
Declaration
public override int CompareTo(IVariableNode other)
Parameters
| Type | Name | Description |
|---|---|---|
| IVariableNode | other | Other Variable Node. |
Returns
| Type | Description |
|---|---|
| int |
Overrides
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.
CompareTo(BaseVirtualVariableNode<TNodeID, TGraphID>)
Compares this Node to another Variable Node.
Declaration
public int CompareTo(BaseVirtualVariableNode<TNodeID, TGraphID> other)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseVirtualVariableNode<TNodeID, TGraphID> | other | Other Variable Node. |
Returns
| Type | Description |
|---|---|
| int |
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.
Equals(IVariableNode)
Checks this Node for equality against another Variable Node.
Declaration
public override bool Equals(IVariableNode other)
Parameters
| Type | Name | Description |
|---|---|---|
| IVariableNode | other | Other Variable Node. |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
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.
Equals(BaseVirtualVariableNode<TNodeID, TGraphID>)
Checks this Node for equality against another Variable Node.
Declaration
public bool Equals(BaseVirtualVariableNode<TNodeID, TGraphID> other)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseVirtualVariableNode<TNodeID, TGraphID> | other | Other Variable Node. |
Returns
| Type | Description |
|---|---|
| bool |
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.
OnMaterialise()
Takes post materialisation actions.
Declaration
protected override sealed void OnMaterialise()