SemWeb : SemWeb Namespace
Variable Class

A variable resource in a query or inference rule.

public class Variable : BNode


Remarks

This class is used to represent variables in queries or inferencing. It is a subclass of SemWeb.BNode.

Note that two variables are equal by the equality operator == or Equals() only if the two variables are the same object. Different variables with the same name are not considered references to the same variable.

Members

See Also: Inherited members from BNode.

Constructors

Creates a new unnamed variable.
Creates a new named variable.

Properties

LocalName [read-only]
string . The suggested local name of the node. (Inherited from BNode.)
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

Variable Constructor

public Variable ()

Creates a new unnamed variable.

Remarks

None.

Variable Constructor

public Variable (string variableName)

Creates a new named variable.

Parameters

variableName
The name of the variable.

Remarks

The name of the variable can be accessed through the SemWeb.BNode.LocalName property.