Show / Hide Table of Contents

Class BaseBlankNode

Abstract Base Class for Blank Nodes.

Inheritance
object
BaseNode
BaseBlankNode
BlankNode
Implements
IBlankNode
IRefNode
IEquatable<BaseBlankNode>
IComparable<BaseBlankNode>
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>
Inherited Members
BaseNode._nodeType
BaseNode.NodeType
BaseNode.ToString(INodeFormatter)
BaseNode.ToString(INodeFormatter, TripleSegment)
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public abstract class BaseBlankNode : BaseNode, IBlankNode, IRefNode, IEquatable<BaseBlankNode>, IComparable<BaseBlankNode>, 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>

Constructors

| Edit this page View Source

BaseBlankNode(string)

Internal Only constructor for Blank Nodes.

Declaration
protected BaseBlankNode(string nodeId)
Parameters
Type Name Description
string nodeId

Custom Node ID to use.

| Edit this page View Source

BaseBlankNode(INodeFactory)

Internal Only constructor for Blank Nodes.

Declaration
protected BaseBlankNode(INodeFactory factory)
Parameters
Type Name Description
INodeFactory factory

Node Factory from which to obtain a Node ID.

Properties

| Edit this page 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
| Edit this page View Source

HasAutoAssignedID

Indicates whether this Blank Node had its ID assigned for it by the Graph.

Declaration
public bool HasAutoAssignedID { get; }
Property Value
Type Description
bool
| Edit this page View Source

InternalID

Returns the Internal Blank Node ID this Node has in the Graph.

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

Usually automatically assigned and of the form autosXXX where XXX is some number. If an RDF document contains a Blank Node ID of this form that clashes with an existing auto-assigned ID it will be automatically remapped by the Graph using the BlankNodeMapper when it is created.

| Edit this page View Source

NumericType

Gets the Numeric Type of the Node.

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

Methods

| Edit this page View Source

AsBoolean()

Throws an error as a Blank Node cannot be cast to a boolean.

Declaration
public bool AsBoolean()
Returns
Type Description
bool
| Edit this page View Source

AsDateTime()

Throws an error as a Blank Node cannot be cast to a date time.

Declaration
public DateTime AsDateTime()
Returns
Type Description
DateTime
| Edit this page View Source

AsDateTimeOffset()

Throws an error as a Blank Node cannot be cast to a date time offset.

Declaration
public DateTimeOffset AsDateTimeOffset()
Returns
Type Description
DateTimeOffset
| Edit this page View Source

AsDecimal()

Throws an error as a Blank Node cannot be cast to a decimal.

Declaration
public decimal AsDecimal()
Returns
Type Description
decimal
| Edit this page View Source

AsDouble()

Throws an error as a Blank Node cannot be cast to a double.

Declaration
public double AsDouble()
Returns
Type Description
double
| Edit this page View Source

AsFloat()

Throws an error as a Blank Node cannot be cast to a float.

Declaration
public float AsFloat()
Returns
Type Description
float
| Edit this page View Source

AsInteger()

Throws an error as a Blank Node cannot be cast to an integer.

Declaration
public long AsInteger()
Returns
Type Description
long
| Edit this page View Source

AsString()

Throws an error as a Blank Node cannot be cast to a String.

Declaration
public string AsString()
Returns
Type Description
string
| Edit this page View Source

AsTimeSpan()

Throws an error as a Blank Node cannot be case to a time span.

Declaration
public TimeSpan AsTimeSpan()
Returns
Type Description
TimeSpan
| Edit this page View Source

CompareTo(BaseBlankNode)

Returns an Integer indicating the Ordering of this Node compared to another Node.

Declaration
public int CompareTo(BaseBlankNode other)
Parameters
Type Name Description
BaseBlankNode other

Node to test against.

Returns
Type Description
int
| Edit this page View Source

CompareTo(IBlankNode)

Returns an Integer indicating the Ordering of this Node compared to another Node.

Declaration
public override int CompareTo(IBlankNode other)
Parameters
Type Name Description
IBlankNode other

Node to test against.

Returns
Type Description
int
Overrides
BaseNode.CompareTo(IBlankNode)
| Edit this page View Source

CompareTo(IGraphLiteralNode)

Returns an Integer indicating the Ordering of this Node compared to another Node.

Declaration
public override int CompareTo(IGraphLiteralNode other)
Parameters
Type Name Description
IGraphLiteralNode other

Node to test against.

Returns
Type Description
int
Overrides
BaseNode.CompareTo(IGraphLiteralNode)
| Edit this page View Source

CompareTo(ILiteralNode)

Returns an Integer indicating the Ordering of this Node compared to another Node.

Declaration
public override int CompareTo(ILiteralNode other)
Parameters
Type Name Description
ILiteralNode other

Node to test against.

Returns
Type Description
int
Overrides
BaseNode.CompareTo(ILiteralNode)
| Edit this page View Source

CompareTo(INode)

Returns an Integer indicating the Ordering of this Node compared to another Node.

Declaration
public override int CompareTo(INode other)
Parameters
Type Name Description
INode other

Node to test against.

Returns
Type Description
int
Overrides
BaseNode.CompareTo(INode)
| Edit this page View Source

CompareTo(IRefNode)

Returns an Integer indicating the Ordering of this Node compared to another Node.

Declaration
public override int CompareTo(IRefNode other)
Parameters
Type Name Description
IRefNode other

Node to test against.

Returns
Type Description
int
Overrides
BaseNode.CompareTo(IRefNode)
| Edit this page View Source

CompareTo(ITripleNode)

Returns an integer indicating the ordering of this Node compared to a Triple Node.

Declaration
public override int CompareTo(ITripleNode other)
Parameters
Type Name Description
ITripleNode other

Triple Node to compare with.

Returns
Type Description
int
Overrides
BaseNode.CompareTo(ITripleNode)
| Edit this page View Source

CompareTo(IUriNode)

Returns an Integer indicating the Ordering of this Node compared to another Node.

Declaration
public override int CompareTo(IUriNode other)
Parameters
Type Name Description
IUriNode other

Node to test against.

Returns
Type Description
int
Overrides
BaseNode.CompareTo(IUriNode)
| Edit this page View Source

CompareTo(IVariableNode)

Returns an Integer indicating the Ordering of this Node compared to another Node.

Declaration
public override int CompareTo(IVariableNode other)
Parameters
Type Name Description
IVariableNode other

Node to test against.

Returns
Type Description
int
Overrides
BaseNode.CompareTo(IVariableNode)
| Edit this page View Source

Equals(object)

Implementation of Equals for Blank Nodes.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj

Object to compare with the Blank Node.

Returns
Type Description
bool
Overrides
BaseNode.Equals(object)
Remarks

Blank Nodes are considered equal if their internal IDs match precisely and they originate from the same Graph.

| Edit this page View Source

Equals(BaseBlankNode)

Determines whether this Node is equal to a Blank Node.

Declaration
public bool Equals(BaseBlankNode other)
Parameters
Type Name Description
BaseBlankNode other

Blank Node.

Returns
Type Description
bool
| Edit this page View Source

Equals(IBlankNode)

Determines whether this Node is equal to another.

Declaration
public override bool Equals(IBlankNode other)
Parameters
Type Name Description
IBlankNode other

Other Blank Node.

Returns
Type Description
bool
Overrides
BaseNode.Equals(IBlankNode)
| Edit this page View Source

Equals(IGraphLiteralNode)

Determines whether this Node is equal to a Graph Literal Node (should always be false).

Declaration
public override bool Equals(IGraphLiteralNode other)
Parameters
Type Name Description
IGraphLiteralNode other

Graph Literal Node.

Returns
Type Description
bool
Overrides
BaseNode.Equals(IGraphLiteralNode)
| Edit this page View Source

Equals(ILiteralNode)

Determines whether this Node is equal to a Literal Node (should always be false).

Declaration
public override bool Equals(ILiteralNode other)
Parameters
Type Name Description
ILiteralNode other

Literal Node.

Returns
Type Description
bool
Overrides
BaseNode.Equals(ILiteralNode)
| Edit this page View Source

Equals(INode)

Implementation of Equals for Blank Nodes.

Declaration
public override bool Equals(INode other)
Parameters
Type Name Description
INode other

Object to compare with the Blank Node.

Returns
Type Description
bool
Overrides
BaseNode.Equals(INode)
Remarks

Blank Nodes are considered equal if their internal IDs match precisely and they originate from the same Graph.

| Edit this page View Source

Equals(IRefNode)

Determines whether this node is equal to another IRefNode.

Declaration
public override bool Equals(IRefNode other)
Parameters
Type Name Description
IRefNode other

Other node.

Returns
Type Description
bool
Overrides
BaseNode.Equals(IRefNode)
| Edit this page View Source

Equals(ITripleNode)

Determines whether this Node is equal to a Triple Node (should always be false).

Declaration
public override bool Equals(ITripleNode other)
Parameters
Type Name Description
ITripleNode other

Triple Node.

Returns
Type Description
bool
Overrides
BaseNode.Equals(ITripleNode)
| Edit this page View Source

Equals(IUriNode)

Determines whether this Node is equal to a URI Node (should always be false).

Declaration
public override bool Equals(IUriNode other)
Parameters
Type Name Description
IUriNode other

URI Node.

Returns
Type Description
bool
Overrides
BaseNode.Equals(IUriNode)
| Edit this page View Source

Equals(IVariableNode)

Determines whether this Node is equal to a Variable Node (should always be false).

Declaration
public override bool Equals(IVariableNode other)
Parameters
Type Name Description
IVariableNode other

Variable Node.

Returns
Type Description
bool
Overrides
BaseNode.Equals(IVariableNode)
| Edit this page View Source

GetHashCode()

Serves as the default hash function.

Declaration
public override int GetHashCode()
Returns
Type Description
int

A hash code for the current object.

Overrides
BaseNode.GetHashCode()
| Edit this page View Source

ToString()

Returns a string representation of this Blank Node in QName form.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
BaseNode.ToString()

Implements

IBlankNode
IRefNode
IEquatable<T>
IComparable<T>
IValuedNode
INode
IComparable<T>
IComparable<T>
IComparable<T>
IComparable<T>
IComparable<T>
IComparable<T>
IComparable<T>
IComparable<T>
IEquatable<T>
IEquatable<T>
IEquatable<T>
IEquatable<T>
IEquatable<T>
IEquatable<T>
IEquatable<T>
IEquatable<T>

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
DynamicExtensions.AsDynamic(INode, IGraph, Uri)
Extensions.EffectiveBooleanValue(INode)
Extensions.IsListRoot(INode, IGraph)
ValuedNodeExtensions.AsValuedNode(INode)
ValuedNodeExtensions.AsSafeBoolean(IValuedNode)
  • Edit this page
  • View Source
In this article
  • Constructors
    • BaseBlankNode(string)
    • BaseBlankNode(INodeFactory)
  • Properties
    • EffectiveType
    • HasAutoAssignedID
    • InternalID
    • NumericType
  • Methods
    • AsBoolean()
    • AsDateTime()
    • AsDateTimeOffset()
    • AsDecimal()
    • AsDouble()
    • AsFloat()
    • AsInteger()
    • AsString()
    • AsTimeSpan()
    • CompareTo(BaseBlankNode)
    • CompareTo(IBlankNode)
    • CompareTo(IGraphLiteralNode)
    • CompareTo(ILiteralNode)
    • CompareTo(INode)
    • CompareTo(IRefNode)
    • CompareTo(ITripleNode)
    • CompareTo(IUriNode)
    • CompareTo(IVariableNode)
    • Equals(object)
    • Equals(BaseBlankNode)
    • Equals(IBlankNode)
    • Equals(IGraphLiteralNode)
    • Equals(ILiteralNode)
    • Equals(INode)
    • Equals(IRefNode)
    • Equals(ITripleNode)
    • Equals(IUriNode)
    • Equals(IVariableNode)
    • GetHashCode()
    • ToString()
  • Implements
  • Extension Methods
Back to top Generated by DocFX