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.

Requirements

Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.0, 1.0.6.2

Members

See Also: Inherited members from BNode.

Public Constructors

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

Public Properties

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

Public Methods

CompareTo (Resource) : int
Compares two resources. (Inherited from Resource.)
GetResourceKey (object) : object
Documentation for this section has not yet been entered. (Inherited from Resource.)
SetResourceKey (object, object)
Documentation for this section has not yet been entered. (Inherited from Resource.)

Explicitly Implemented Interface Members

IComparable.CompareTo This implements the .NET 1.0 IComparable interface method to compare two Resources. The public method Resource.CompareTo(Resource) is also available, and in .NET 2.0 Resource additionally implements IComparable<SemWeb.Resource>. (Inherited from Resource.)

Member Details

Variable Constructor

Creates a new unnamed variable.

public Variable ()

Remarks

None.

Requirements

Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2

Variable Constructor

Creates a new named variable.

public Variable (string variableName)

Parameters

variableName
The name of the variable.

Remarks

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

Requirements

Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2