SemWeb.BNode

SemWeb : SemWeb Namespace
BNode Class

A blank (anonymous) node.

public class BNode : Entity

#### Remarks

Blank nodes are a type of SemWeb.Entity that have no globally unique identifier. Two blank node instances are generally references to distinct nodes in a graph, unless they were created in the same SemWeb.StatementSource which marked them as being equivalent.

The SemWeb.Variable class is a subclass of the BNode class. Variables are used for queries. Variable names are accessible through the LocalName property.

The following example creates a new blank node.

C# Example
    BNode node = new BNode();

## Members

See Also: Inherited members from Entity.

### Constructors

BNode () Creates a new blank node.
BNode (string) Creates a new blank node with a local name.

### Properties

LocalName [read-only] | string . The suggested local name of the node.
Uri [read-only] abstract | string . The URI of this resource. (Inherited from Resource.)

### Methods

| CompareTo (Resource) : int Compares two resources. (Inherited from Resource.)
| GetResourceKey (object) : object To be added. (Inherited from Resource.)
| SetResourceKey (object, object) To be added. (Inherited from Resource.)

## Member Details

### BNode Constructor

public BNode ()

Creates a new blank node.

#### Remarks

None.

### BNode Constructor

public BNode (string localName)

Creates a new blank node with a local name.

#### Parameters

localName
  The local name of the node as used in some RDF document.

#### Remarks

The local name does not affect whether two BNodes are considered equal. It is merely used as a suggestion when serializing a RDF graph.

### LocalName Property

public string LocalName { get; }

The suggested local name of the node.

#### Value

The local name of the node, as it was found in some document or as it should be used when serializing the node.

#### Remarks

The local name is set when the BNode is created, usually by RDF readers of streams that give local names to blank nodes. The local name does not affect whether two BNodes are considered equal. It is merely used as a suggestion when serializing a RDF graph.