Class LiteralNode
Class for representing Literal Nodes.
Inheritance
LiteralNode
Implements
Inherited Members
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public class LiteralNode : BaseLiteralNode, ILiteralNode, 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>, IEquatable<BaseLiteralNode>, IComparable<BaseLiteralNode>, IEquatable<LiteralNode>, IComparable<LiteralNode>
Constructors
| Edit this page View SourceLiteralNode(string, bool)
Constructor for Literal Nodes.
Declaration
public LiteralNode(string literal, bool normalize = true)
Parameters
Type | Name | Description |
---|---|---|
string | literal | String value of the Literal. |
bool | normalize | Whether to Normalize the Literal Value. |
LiteralNode(string, string, bool)
Constructor for Literal Nodes.
Declaration
public LiteralNode(string literal, string langSpec, bool normalize = true)
Parameters
Type | Name | Description |
---|---|---|
string | literal | String value of the Literal. |
string | langSpec | String value for the Language Specifier for the Literal. |
bool | normalize | Whether to Normalize the Literal Value. |
LiteralNode(string, Uri, bool)
Constructor for Literal Nodes.
Declaration
public LiteralNode(string literal, Uri datatype, bool normalize = true)
Parameters
Type | Name | Description |
---|---|---|
string | literal | String value of the Literal. |
Uri | datatype | Uri for the Literals Data Type. |
bool | normalize | Whether to Normalize the Literal Value. |
Methods
| Edit this page View SourceCompareTo(LiteralNode)
Implementation of Compare To for Literal Nodes.
Declaration
public int CompareTo(LiteralNode other)
Parameters
Type | Name | Description |
---|---|---|
LiteralNode | other | Literal Node to Compare To. |
Returns
Type | Description |
---|---|
int |
Remarks
Simply invokes the more general implementation of this method.
Equals(LiteralNode)
Determines whether this Node is equal to a Literal Node.
Declaration
public bool Equals(LiteralNode other)
Parameters
Type | Name | Description |
---|---|---|
LiteralNode | other | Literal Node. |
Returns
Type | Description |
---|---|
bool |