Class BlankNode
Class for representing Blank RDF Nodes.
Implements
Inherited Members
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public class BlankNode : BaseBlankNode, 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>, IEquatable<BlankNode>, IComparable<BlankNode>
Constructors
| Edit this page View SourceBlankNode(string)
Create a new blank node.
Declaration
public BlankNode(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | Custom Node ID to use. |
Remarks
This constructor does not check for identifier collisions in a graph. When creating blank nodes to store in a IGraph, it is strongly recommended to only create blank nodes through the INodeFactory interface of the target graph so as to avoid the possibility of duplicating existing blank nodes.
BlankNode(INodeFactory)
Internal Only constructor for Blank Nodes.
Declaration
protected BlankNode(INodeFactory factory)
Parameters
Type | Name | Description |
---|---|---|
INodeFactory | factory | Node Factory from which to obtain a Node ID. |
Methods
| Edit this page View SourceCompareTo(BlankNode)
Implementation of Compare To for Blank Nodes.
Declaration
public int CompareTo(BlankNode other)
Parameters
Type | Name | Description |
---|---|---|
BlankNode | other | Blank Node to Compare To. |
Returns
Type | Description |
---|---|
int |
Remarks
Simply invokes the more general implementation of this method.
Equals(BlankNode)
Determines whether this Node is equal to a Blank Node.
Declaration
public bool Equals(BlankNode other)
Parameters
Type | Name | Description |
---|---|---|
BlankNode | other | Blank Node. |
Returns
Type | Description |
---|---|
bool |