Show / Hide Table of Contents

Class BaseBlankNode

Abstract Base Class for Blank Nodes.
Inheritance
System.Object
BaseNode
BaseBlankNode
BlankNode
Implements
IBlankNode
System.IEquatable<BaseBlankNode>
System.IComparable<BaseBlankNode>
IValuedNode
INode
System.IComparable<INode>
System.IComparable<IBlankNode>
System.IComparable<IGraphLiteralNode>
System.IComparable<ILiteralNode>
System.IComparable<IUriNode>
System.IComparable<IVariableNode>
System.IEquatable<INode>
System.IEquatable<IBlankNode>
System.IEquatable<IGraphLiteralNode>
System.IEquatable<ILiteralNode>
System.IEquatable<IUriNode>
System.IEquatable<IVariableNode>
System.Runtime.Serialization.ISerializable
System.Xml.Serialization.IXmlSerializable
Inherited Members
BaseNode._graph
BaseNode._graphUri
BaseNode._nodetype
BaseNode._hashcode
BaseNode.NodeType
BaseNode.Graph
BaseNode.GraphUri
BaseNode.ToString(INodeFormatter)
BaseNode.ToString(INodeFormatter, TripleSegment)
BaseNode.GetHashCode()
BaseNode.GetSchema()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: VDS.RDF
Assembly: dotNetRDF.dll
Syntax
[Serializable]
public abstract class BaseBlankNode : BaseNode, IBlankNode, IEquatable<BaseBlankNode>, IComparable<BaseBlankNode>, 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

Constructors

| Improve this Doc View Source

BaseBlankNode()

Unparameterized Constructor for deserialization usage only.
Declaration
protected BaseBlankNode()
| Improve this Doc View Source

BaseBlankNode(SerializationInfo, StreamingContext)

Deserialization Constructor.
Declaration
protected BaseBlankNode(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info Serialization Information.
System.Runtime.Serialization.StreamingContext context Streaming Context.
| Improve this Doc View Source

BaseBlankNode(IGraph)

Internal Only Constructor for Blank Nodes.
Declaration
protected BaseBlankNode(IGraph g)
Parameters
Type Name Description
IGraph g Graph this Node belongs to.
| Improve this Doc View Source

BaseBlankNode(IGraph, String)

Internal Only constructor for Blank Nodes.
Declaration
protected BaseBlankNode(IGraph g, string nodeId)
Parameters
Type Name Description
IGraph g Graph this Node belongs to.
System.String nodeId Custom Node ID to use.
| Improve this Doc 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

| Improve this Doc 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
System.String
| Improve this Doc 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
System.Boolean
| Improve this Doc View Source

InternalID

Returns the Internal Blank Node ID this Node has in the Graph.
Declaration
public string InternalID { get; }
Property Value
Type Description
System.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.
| Improve this Doc View Source

NumericType

Gets the Numeric Type of the Node.
Declaration
public SparqlNumericType NumericType { get; }
Property Value
Type Description
SparqlNumericType

Methods

| Improve this Doc View Source

AsBoolean()

Throws an error as a Blank Node cannot be cast to a boolean.
Declaration
public bool AsBoolean()
Returns
Type Description
System.Boolean
| Improve this Doc View Source

AsDateTime()

Throws an error as a Blank Node cannot be cast to a date time.
Declaration
public DateTime AsDateTime()
Returns
Type Description
System.DateTime
| Improve this Doc 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
System.DateTimeOffset
| Improve this Doc View Source

AsDecimal()

Throws an error as a Blank Node cannot be cast to a decimal.
Declaration
public decimal AsDecimal()
Returns
Type Description
System.Decimal
| Improve this Doc View Source

AsDouble()

Throws an error as a Blank Node cannot be cast to a double.
Declaration
public double AsDouble()
Returns
Type Description
System.Double
| Improve this Doc View Source

AsFloat()

Throws an error as a Blank Node cannot be cast to a float.
Declaration
public float AsFloat()
Returns
Type Description
System.Single
| Improve this Doc View Source

AsInteger()

Throws an error as a Blank Node cannot be cast to an integer.
Declaration
public long AsInteger()
Returns
Type Description
System.Int64
| Improve this Doc View Source

AsString()

Throws an error as a Blank Node cannot be cast to a String.
Declaration
public string AsString()
Returns
Type Description
System.String
| Improve this Doc View Source

AsTimeSpan()

Throws an error as a Blank Node cannot be case to a time span.
Declaration
public TimeSpan AsTimeSpan()
Returns
Type Description
System.TimeSpan
| Improve this Doc 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
System.Int32
| Improve this Doc 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
System.Int32
Overrides
BaseNode.CompareTo(IBlankNode)
| Improve this Doc 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
System.Int32
Overrides
BaseNode.CompareTo(IGraphLiteralNode)
| Improve this Doc 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
System.Int32
Overrides
BaseNode.CompareTo(ILiteralNode)
| Improve this Doc 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
System.Int32
Overrides
BaseNode.CompareTo(INode)
| Improve this Doc 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
System.Int32
Overrides
BaseNode.CompareTo(IUriNode)
| Improve this Doc 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
System.Int32
Overrides
BaseNode.CompareTo(IVariableNode)
| Improve this Doc View Source

Equals(Object)

Implementation of Equals for Blank Nodes.
Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj Object to compare with the Blank Node.
Returns
Type Description
System.Boolean
Overrides
BaseNode.Equals(Object)
Remarks
Blank Nodes are considered equal if their internal IDs match precisely and they originate from the same Graph.
| Improve this Doc 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
System.Boolean
| Improve this Doc 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
System.Boolean
Overrides
BaseNode.Equals(IBlankNode)
| Improve this Doc 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
System.Boolean
Overrides
BaseNode.Equals(IGraphLiteralNode)
| Improve this Doc 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
System.Boolean
Overrides
BaseNode.Equals(ILiteralNode)
| Improve this Doc 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
System.Boolean
Overrides
BaseNode.Equals(INode)
Remarks
Blank Nodes are considered equal if their internal IDs match precisely and they originate from the same Graph.
| Improve this Doc 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
System.Boolean
Overrides
BaseNode.Equals(IUriNode)
| Improve this Doc 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
System.Boolean
Overrides
BaseNode.Equals(IVariableNode)
| Improve this Doc View Source

GetObjectData(SerializationInfo, StreamingContext)

Gets the data for serialization.
Declaration
public sealed override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info Serialization Information.
System.Runtime.Serialization.StreamingContext context Streaming Context.
Overrides
BaseNode.GetObjectData(SerializationInfo, StreamingContext)
| Improve this Doc View Source

ReadXml(XmlReader)

Reads the data for XML deserialization.
Declaration
public sealed override void ReadXml(XmlReader reader)
Parameters
Type Name Description
System.Xml.XmlReader reader XML Reader.
Overrides
BaseNode.ReadXml(XmlReader)
| Improve this Doc View Source

ToString()

Returns a string representation of this Blank Node in QName form.
Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
BaseNode.ToString()
| Improve this Doc View Source

WriteXml(XmlWriter)

Writes the data for XML serialization.
Declaration
public sealed override void WriteXml(XmlWriter writer)
Parameters
Type Name Description
System.Xml.XmlWriter writer XML Writer.
Overrides
BaseNode.WriteXml(XmlWriter)

Implements

IBlankNode
System.IEquatable<T>
System.IComparable<T>
IValuedNode
INode
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.Runtime.Serialization.ISerializable
System.Xml.Serialization.IXmlSerializable

Extension Methods

Extensions.AsEnumerable<T>(T)
Extensions.IsListRoot(INode, IGraph)
Extensions.CopyNode(INode, IGraph)
Extensions.CopyNode(INode, IGraph, Boolean)
DynamicExtensions.AsDynamic(INode, Uri)
ValuedNodeExtensions.AsValuedNode(INode)
ValuedNodeExtensions.AsSafeBoolean(IValuedNode)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • BaseBlankNode()
    • BaseBlankNode(SerializationInfo, StreamingContext)
    • BaseBlankNode(IGraph)
    • BaseBlankNode(IGraph, 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(IUriNode)
    • CompareTo(IVariableNode)
    • Equals(Object)
    • Equals(BaseBlankNode)
    • Equals(IBlankNode)
    • Equals(IGraphLiteralNode)
    • Equals(ILiteralNode)
    • Equals(INode)
    • Equals(IUriNode)
    • Equals(IVariableNode)
    • GetObjectData(SerializationInfo, StreamingContext)
    • ReadXml(XmlReader)
    • ToString()
    • WriteXml(XmlWriter)
  • Implements
  • Extension Methods
Back to top Generated by DocFX