Interface IValuedNode
Interface for Valued Nodes.
Inherited Members
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.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.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Xml.Serialization.IXmlSerializable.GetSchema()
System.Xml.Serialization.IXmlSerializable.ReadXml(System.Xml.XmlReader)
System.Xml.Serialization.IXmlSerializable.WriteXml(System.Xml.XmlWriter)
Namespace: VDS.RDF.Nodes
Assembly: dotNetRDF.dll
Syntax
public interface 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
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 SourceEffectiveType
Gets the URI of the datatype this valued node represents as a String.
Declaration
string EffectiveType { get; }
Property Value
Type | Description |
---|---|
System.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 |
Methods
| Improve this Doc View SourceAsBoolean()
Gets the Boolean value of the Node.
Declaration
bool AsBoolean()
Returns
Type | Description |
---|---|
System.Boolean |
Exceptions
Type | Condition |
---|---|
RdfQueryException | Thrown if the Node cannot be converted to a Boolean. |
AsDateTime()
Gets the Date Time value of the Node.
Declaration
DateTime AsDateTime()
Returns
Type | Description |
---|---|
System.DateTime |
Exceptions
Type | Condition |
---|---|
RdfQueryException | Thrown if the Node cannot be converted to a Date Time. |
AsDateTimeOffset()
Gets the Date Time Offset value of the Node.
Declaration
DateTimeOffset AsDateTimeOffset()
Returns
Type | Description |
---|---|
System.DateTimeOffset |
Exceptions
Type | Condition |
---|---|
RdfQueryException | Thrown if the Node cannot be converted to a Date Time Offset. |
AsDecimal()
Gets the Decimal value of the Node.
Declaration
decimal AsDecimal()
Returns
Type | Description |
---|---|
System.Decimal |
Exceptions
Type | Condition |
---|---|
RdfQueryException | Thrown if the Node cannot be converted to a Decimal. |
AsDouble()
Gets the Double value of the Node.
Declaration
double AsDouble()
Returns
Type | Description |
---|---|
System.Double |
Exceptions
Type | Condition |
---|---|
RdfQueryException | Thrown if the Node cannot be converted to a Double. |
AsFloat()
Gets the Float value of the Node.
Declaration
float AsFloat()
Returns
Type | Description |
---|---|
System.Single |
Exceptions
Type | Condition |
---|---|
RdfQueryException | Thrown if the Node cannot be converted to a Float. |
AsInteger()
Gets the Long value of the Node.
Declaration
long AsInteger()
Returns
Type | Description |
---|---|
System.Int64 |
Exceptions
Type | Condition |
---|---|
RdfQueryException | Thrown if the Node cannot be converted to a Long. |
AsString()
Gets the String value of the Node.
Declaration
string AsString()
Returns
Type | Description |
---|---|
System.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 |