Show / Hide Table of Contents

Class BaseVirtualLiteralNode<TNodeID, TGraphID>

Abstract Base implementation of a Virtual Literal Node.

Inheritance
System.Object
BaseVirtualNode<TNodeID, TGraphID>
BaseVirtualLiteralNode<TNodeID, TGraphID>
SimpleVirtualLiteralNode
Implements
IVirtualNode<TNodeID, TGraphID>
System.IEquatable<T><IVirtualNode<TNodeID, TGraphID>>
System.IComparable<T><IVirtualNode<TNodeID, TGraphID>>
IVirtualIdComparable
System.IEquatable<T><BaseVirtualNode<TNodeID, TGraphID>>
System.IComparable<T><BaseVirtualNode<TNodeID, TGraphID>>
ICanCopy
ILiteralNode
System.IEquatable<T><BaseVirtualLiteralNode<TNodeID, TGraphID>>
System.IComparable<T><BaseVirtualLiteralNode<TNodeID, TGraphID>>
IValuedNode
INode
System.IComparable<T><INode>
System.IComparable<T><IBlankNode>
System.IComparable<T><IGraphLiteralNode>
System.IComparable<T><ILiteralNode>
System.IComparable<T><IUriNode>
System.IComparable<T><IVariableNode>
System.IComparable<T><IRefNode>
System.IComparable<T><ITripleNode>
System.IEquatable<T><INode>
System.IEquatable<T><IBlankNode>
System.IEquatable<T><IGraphLiteralNode>
System.IEquatable<T><ILiteralNode>
System.IEquatable<T><IUriNode>
System.IEquatable<T><IVariableNode>
System.IEquatable<T><IRefNode>
System.IEquatable<T><ITripleNode>
Inherited Members
BaseVirtualNode<TNodeID, TGraphID>._value
BaseVirtualNode<TNodeID, TGraphID>.MaterialiseValue()
BaseVirtualNode<TNodeID, TGraphID>.OnMaterialise()
BaseVirtualNode<TNodeID, TGraphID>.VirtualID
BaseVirtualNode<TNodeID, TGraphID>.Provider
BaseVirtualNode<TNodeID, TGraphID>.IsMaterialised
BaseVirtualNode<TNodeID, TGraphID>.MaterialisedValue
BaseVirtualNode<TNodeID, TGraphID>.NodeType
BaseVirtualNode<TNodeID, TGraphID>.Graph
BaseVirtualNode<TNodeID, TGraphID>.GraphUri
BaseVirtualNode<TNodeID, TGraphID>.ToString(INodeFormatter)
BaseVirtualNode<TNodeID, TGraphID>.ToString(INodeFormatter, TripleSegment)
BaseVirtualNode<TNodeID, TGraphID>.CompareTo(IVirtualNode<TNodeID, TGraphID>)
BaseVirtualNode<TNodeID, TGraphID>.CompareTo(BaseVirtualNode<TNodeID, TGraphID>)
BaseVirtualNode<TNodeID, TGraphID>.CompareTo(INode)
BaseVirtualNode<TNodeID, TGraphID>.CompareTo(IRefNode)
BaseVirtualNode<TNodeID, TGraphID>.CompareTo(IBlankNode)
BaseVirtualNode<TNodeID, TGraphID>.CompareTo(IGraphLiteralNode)
BaseVirtualNode<TNodeID, TGraphID>.CompareTo(ILiteralNode)
BaseVirtualNode<TNodeID, TGraphID>.CompareTo(IUriNode)
BaseVirtualNode<TNodeID, TGraphID>.CompareTo(IVariableNode)
BaseVirtualNode<TNodeID, TGraphID>.CompareTo(ITripleNode)
BaseVirtualNode<TNodeID, TGraphID>.Equals(object)
BaseVirtualNode<TNodeID, TGraphID>.Equals(IVirtualNode<TNodeID, TGraphID>)
BaseVirtualNode<TNodeID, TGraphID>.Equals(BaseVirtualNode<TNodeID, TGraphID>)
BaseVirtualNode<TNodeID, TGraphID>.Equals(INode)
BaseVirtualNode<TNodeID, TGraphID>.TryVirtualEquality(INode, out bool)
BaseVirtualNode<TNodeID, TGraphID>.Equals(IRefNode)
BaseVirtualNode<TNodeID, TGraphID>.Equals(IBlankNode)
BaseVirtualNode<TNodeID, TGraphID>.Equals(IGraphLiteralNode)
BaseVirtualNode<TNodeID, TGraphID>.Equals(ILiteralNode)
BaseVirtualNode<TNodeID, TGraphID>.Equals(IUriNode)
BaseVirtualNode<TNodeID, TGraphID>.Equals(IVariableNode)
BaseVirtualNode<TNodeID, TGraphID>.Equals(ITripleNode)
BaseVirtualNode<TNodeID, TGraphID>.CopyNode(IGraph)
BaseVirtualNode<TNodeID, TGraphID>.GetHashCode()
BaseVirtualNode<TNodeID, TGraphID>.CompareVirtualId(TNodeID)
BaseVirtualNode<TNodeID, TGraphID>.TryCompareVirtualId(INode, out int)
BaseVirtualNode<TNodeID, TGraphID>.ToString()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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>, 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

| Improve this Doc View Source

BaseVirtualLiteralNode(IGraph, TNodeID, IVirtualRdfProvider<TNodeID, TGraphID>, ILiteralNode)

Creates a new Virtual Literal Node.

Declaration
protected 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.

| Improve this Doc View Source

BaseVirtualLiteralNode(IGraph, TNodeID, IVirtualRdfProvider<TNodeID, TGraphID>)

Creates a new Virtual Literal Node.

Declaration
protected 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.

Properties

| Improve this Doc View Source

DataType

Gets the Datatype (if any) of the Literal.

Declaration
public Uri DataType { get; }
Property Value
Type Description
System.Uri
| Improve this Doc View Source

EffectiveType

Gets the URI of the datatype this valued node represents as a String.

Declaration
public string EffectiveType { get; }
Property Value
Type Description
string
| Improve this Doc View Source

Language

Gets the language specifier (if any) of the Literal.

Declaration
public string Language { get; }
Property Value
Type Description
string
| Improve this Doc View Source

NumericType

Gets the numeric type of the node.

Declaration
public SparqlNumericType NumericType { get; }
Property Value
Type Description
SparqlNumericType
| Improve this Doc View Source

Value

Gets the lexical value of the Literal.

Declaration
public string Value { get; }
Property Value
Type Description
string

Methods

| Improve this Doc View Source

AsBoolean()

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
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
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
float
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
long
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
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
int
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
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.

| 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 override sealed void OnMaterialise()
Overrides
VDS.RDF.Storage.Virtualisation.BaseVirtualNode<TNodeID, TGraphID>.OnMaterialise()

Implements

IVirtualNode<TNodeID, TGraphID>
System.IEquatable<T>
System.IComparable<T>
IVirtualIdComparable
System.IEquatable<T>
System.IComparable<T>
ICanCopy
ILiteralNode
System.IEquatable<T>
System.IComparable<T>
IValuedNode
INode
System.IComparable<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.IEquatable<T>
System.IEquatable<T>

Extension Methods

Extensions.ToSafeString(object)
DynamicExtensions.AsDynamic(INode, IGraph, Uri)
Extensions.EffectiveBooleanValue(INode)
Extensions.IsListRoot(INode, IGraph)
ValuedNodeExtensions.AsValuedNode(INode)
ValuedNodeExtensions.AsSafeBoolean(IValuedNode)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • BaseVirtualLiteralNode(IGraph, TNodeID, IVirtualRdfProvider<TNodeID, TGraphID>, ILiteralNode)
    • BaseVirtualLiteralNode(IGraph, TNodeID, IVirtualRdfProvider<TNodeID, TGraphID>)
  • Properties
    • DataType
    • EffectiveType
    • Language
    • NumericType
    • Value
  • Methods
    • AsBoolean()
    • AsDateTime()
    • AsDateTimeOffset()
    • AsDecimal()
    • AsDouble()
    • AsFloat()
    • AsInteger()
    • AsString()
    • AsTimeSpan()
    • CompareTo(ILiteralNode)
    • CompareTo(BaseVirtualLiteralNode<TNodeID, TGraphID>)
    • Equals(ILiteralNode)
    • Equals(BaseVirtualLiteralNode<TNodeID, TGraphID>)
    • OnMaterialise()
  • Implements
  • Extension Methods
Back to top Generated by DocFX