SemWeb : SemWeb.Query Namespace
VariableBindings Class

Represents a row of results from a query.

[System.Reflection.DefaultMember("Item")]
public class VariableBindings : IComparable, IComparable<VariableBindings>

Remarks

This class maps variables to their target values in a single row of query results.

Requirements

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

Members

See Also: Inherited members from object.

Public Constructors

Constructs a VariableBindings instance.

Public Properties

[read-only]
Count int . The number of variables represented by this row.
[read-only]
default property
Item (SemWeb.Variable) SemWeb.Resource . Gets the resource bound by a variable.
[read-only]
default property
Item (string) SemWeb.Resource . Gets the resource bound by a variable of the given name.
[read-only]
Values IList<SemWeb.Resource> . The values bound by the variables in this row.
[read-only]
Variables IList<SemWeb.Variable> . The variables bound in this row.

Public Methods

CompareTo (VariableBindings) : int
Documentation for this section has not yet been entered.
Substitute (SemWeb.Statement) : SemWeb.Statement
Performs a substitution on a statement.

Explicitly Implemented Interface Members

IComparable.CompareTo Documentation for this section has not yet been entered.

Member Details

VariableBindings Constructor

Constructs a VariableBindings instance.

public VariableBindings (SemWeb.Variable[] vars, SemWeb.Resource[] vals)

Parameters

vars
The variables.
vals
Their corresponding values (in the same order). Values may be null to indicate an unbound variable.

Remarks

None.

Requirements

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

CompareTo Method

Documentation for this section has not yet been entered.

public int CompareTo (VariableBindings other)

Parameters

other
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

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

Count Property

The number of variables represented by this row.

public int Count { get; }

Value

The number of variables in the row.

Remarks

None.

Requirements

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

Item Property

Gets the resource bound by a variable.

This is the default property for this class.

public SemWeb.Resource this [SemWeb.Variable variable] { get; }

Parameters

variable
A variable mentioned in this row.

Value

The value of the variable, or null if the variable is unbound in this row.

Remarks

None.

Requirements

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

Item Property

Gets the resource bound by a variable of the given name.

This is the default property for this class.

public SemWeb.Resource this [string variableName] { get; }

Parameters

variableName
The name of a variable in the binding set.

Value

The resource that is bound by the variable in this row of results, or null if the variable is not bound.

Remarks

If more than one variable (distinct Variable instance) has the same name in this row, the result of this function is unspecified. Use the other overload of this method instead.

Requirements

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

Substitute Method

Performs a substitution on a statement.

public SemWeb.Statement Substitute (SemWeb.Statement template)

Parameters

template
A statement template (a statement with possibly null fields).

Returns

A new statement will all occurrences of variables in this row of bindings replaced by their values.

Remarks

If a variable in the Subject, Predicate, or Meta fields is bound by a Literal value, a InvalidCastException is thrown.

Requirements

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

System.IComparable.CompareTo Method

Documentation for this section has not yet been entered.

int System.IComparable.CompareTo (object other)

Parameters

other
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

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

Values Property

The values bound by the variables in this row.

public IList<SemWeb.Resource> Values { get; }

Value

The values of the variables, in the same order as the variables are in the Variables property.

Remarks

A value may be null to indicate an unbound variable.

Requirements

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

Variables Property

The variables bound in this row.

public IList<SemWeb.Variable> Variables { get; }

Value

The variables bound in this row.

Remarks

None.

Requirements

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