Show / Hide Table of Contents

Interface IValuedNode

Interface for Valued Nodes.

Inherited Members
INode.NodeType
INode.ToString()
INode.ToString(INodeFormatter)
INode.ToString(INodeFormatter, TripleSegment)
System.IComparable<VDS.RDF.INode>.CompareTo(VDS.RDF.INode)
System.IComparable<VDS.RDF.IBlankNode>.CompareTo(VDS.RDF.IBlankNode)
System.IComparable<VDS.RDF.IGraphLiteralNode>.CompareTo(VDS.RDF.IGraphLiteralNode)
System.IComparable<VDS.RDF.ILiteralNode>.CompareTo(VDS.RDF.ILiteralNode)
System.IComparable<VDS.RDF.IUriNode>.CompareTo(VDS.RDF.IUriNode)
System.IComparable<VDS.RDF.IVariableNode>.CompareTo(VDS.RDF.IVariableNode)
System.IComparable<VDS.RDF.IRefNode>.CompareTo(VDS.RDF.IRefNode)
System.IComparable<VDS.RDF.ITripleNode>.CompareTo(VDS.RDF.ITripleNode)
System.IEquatable<VDS.RDF.INode>.Equals(VDS.RDF.INode)
System.IEquatable<VDS.RDF.IBlankNode>.Equals(VDS.RDF.IBlankNode)
System.IEquatable<VDS.RDF.IGraphLiteralNode>.Equals(VDS.RDF.IGraphLiteralNode)
System.IEquatable<VDS.RDF.ILiteralNode>.Equals(VDS.RDF.ILiteralNode)
System.IEquatable<VDS.RDF.IUriNode>.Equals(VDS.RDF.IUriNode)
System.IEquatable<VDS.RDF.IVariableNode>.Equals(VDS.RDF.IVariableNode)
System.IEquatable<VDS.RDF.IRefNode>.Equals(VDS.RDF.IRefNode)
System.IEquatable<VDS.RDF.ITripleNode>.Equals(VDS.RDF.ITripleNode)
Namespace: VDS.RDF.Nodes
Assembly: dotNetRdf.dll
Syntax
public interface 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>
Remarks

This interface extends the basic INode interface with methods related to turning the lexical value into a strongly typed .Net value. It is intended primarily for use within SPARQL expression evaluation where we need to do a lot of value conversions and currently waste a lot of effort (and thus performance) doing that.

Properties

| Improve this Doc View Source

EffectiveType

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

Declaration
string EffectiveType { get; }
Property Value
Type Description
string
Remarks

Either String.Empty if no type or the string form of the type URI.

| Improve this Doc View Source

NumericType

Gets the Numeric Type of the Node.

Declaration
SparqlNumericType NumericType { get; }
Property Value
Type Description
SparqlNumericType
Remarks

This interface extends the basic INode interface with methods related to turning the lexical value into a strongly typed .Net value. It is intended primarily for use within SPARQL expression evaluation where we need to do a lot of value conversions and currently waste a lot of effort (and thus performance) doing that.

Methods

| Improve this Doc View Source

AsBoolean()

Gets the Boolean value of the Node.

Declaration
bool AsBoolean()
Returns
Type Description
System.Boolean
Remarks

This interface extends the basic INode interface with methods related to turning the lexical value into a strongly typed .Net value. It is intended primarily for use within SPARQL expression evaluation where we need to do a lot of value conversions and currently waste a lot of effort (and thus performance) doing that.

Exceptions
Type Condition
RdfQueryException

Thrown if the Node cannot be converted to a Boolean.

| Improve this Doc View Source

AsDateTime()

Gets the Date Time value of the Node.

Declaration
DateTime AsDateTime()
Returns
Type Description
System.DateTime
Remarks

This interface extends the basic INode interface with methods related to turning the lexical value into a strongly typed .Net value. It is intended primarily for use within SPARQL expression evaluation where we need to do a lot of value conversions and currently waste a lot of effort (and thus performance) doing that.

Exceptions
Type Condition
RdfQueryException

Thrown if the Node cannot be converted to a Date Time.

| Improve this Doc View Source

AsDateTimeOffset()

Gets the Date Time Offset value of the Node.

Declaration
DateTimeOffset AsDateTimeOffset()
Returns
Type Description
System.DateTimeOffset
Remarks

This interface extends the basic INode interface with methods related to turning the lexical value into a strongly typed .Net value. It is intended primarily for use within SPARQL expression evaluation where we need to do a lot of value conversions and currently waste a lot of effort (and thus performance) doing that.

Exceptions
Type Condition
RdfQueryException

Thrown if the Node cannot be converted to a Date Time Offset.

| Improve this Doc View Source

AsDecimal()

Gets the Decimal value of the Node.

Declaration
decimal AsDecimal()
Returns
Type Description
decimal
Remarks

This interface extends the basic INode interface with methods related to turning the lexical value into a strongly typed .Net value. It is intended primarily for use within SPARQL expression evaluation where we need to do a lot of value conversions and currently waste a lot of effort (and thus performance) doing that.

Exceptions
Type Condition
RdfQueryException

Thrown if the Node cannot be converted to a Decimal.

| Improve this Doc View Source

AsDouble()

Gets the Double value of the Node.

Declaration
double AsDouble()
Returns
Type Description
double
Remarks

This interface extends the basic INode interface with methods related to turning the lexical value into a strongly typed .Net value. It is intended primarily for use within SPARQL expression evaluation where we need to do a lot of value conversions and currently waste a lot of effort (and thus performance) doing that.

Exceptions
Type Condition
RdfQueryException

Thrown if the Node cannot be converted to a Double.

| Improve this Doc View Source

AsFloat()

Gets the Float value of the Node.

Declaration
float AsFloat()
Returns
Type Description
float
Remarks

This interface extends the basic INode interface with methods related to turning the lexical value into a strongly typed .Net value. It is intended primarily for use within SPARQL expression evaluation where we need to do a lot of value conversions and currently waste a lot of effort (and thus performance) doing that.

Exceptions
Type Condition
RdfQueryException

Thrown if the Node cannot be converted to a Float.

| Improve this Doc View Source

AsInteger()

Gets the Long value of the Node.

Declaration
long AsInteger()
Returns
Type Description
long
Remarks

This interface extends the basic INode interface with methods related to turning the lexical value into a strongly typed .Net value. It is intended primarily for use within SPARQL expression evaluation where we need to do a lot of value conversions and currently waste a lot of effort (and thus performance) doing that.

Exceptions
Type Condition
RdfQueryException

Thrown if the Node cannot be converted to a Long.

| Improve this Doc View Source

AsString()

Gets the String value of the Node.

Declaration
string AsString()
Returns
Type Description
string
Remarks

This is distinct from ToString() because that method will typically include additional information like language specifier/datatype as appropriate whereas this method is used to produce a string as would be produced by applying the STR() function from SPARQL.

| Improve this Doc View Source

AsTimeSpan()

Gets the Time Span value of the Node.

Declaration
TimeSpan AsTimeSpan()
Returns
Type Description
System.TimeSpan
Remarks

This interface extends the basic INode interface with methods related to turning the lexical value into a strongly typed .Net value. It is intended primarily for use within SPARQL expression evaluation where we need to do a lot of value conversions and currently waste a lot of effort (and thus performance) doing that.

Extension Methods

Extensions.ToSafeString(object)
DynamicExtensions.AsDynamic(INode, IGraph, Uri)
Extensions.EffectiveBooleanValue(INode)
Extensions.IsListRoot(INode, IGraph)
ValuedNodeExtensions.AsValuedNode(INode)
Extensions.AsEnumerable<T>(T)
ValuedNodeExtensions.AsSafeBoolean(IValuedNode)
  • Improve this Doc
  • View Source
In This Article
  • Properties
    • EffectiveType
    • NumericType
  • Methods
    • AsBoolean()
    • AsDateTime()
    • AsDateTimeOffset()
    • AsDecimal()
    • AsDouble()
    • AsFloat()
    • AsInteger()
    • AsString()
    • AsTimeSpan()
  • Extension Methods
Back to top Generated by DocFX