SemWeb : SemWeb Namespace
SelectResult Class

This class is used to hold the results of a call to Select.

public abstract class SelectResult : StatementSource, IEnumerable<Statement>

Remarks

See Store.Select(Statement) and Store.Select(SelectFilter) for examples.

Requirements

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

Members

See Also: Inherited members from object.

Public Properties

[read-only]
Distinct bool . Gets whether this select result returns only distinct statments from Select calls.
[read-only]
StatementCount long . Gets the number of matching statements.

Public Methods

Load () : MemoryStore
Loads all of the matching statements into memory and returns a MemoryStore containing the statements.
abstract
Select (StatementSink)
Streams the result of this Select call to a StatementSink.
ToArray () : Statement[]
Loads all of the matching statements into memory and returns them as an array.

Explicitly Implemented Interface Members

IEnumerable<SemWeb.Statement>.GetEnumerator Documentation for this section has not yet been entered.
IEnumerable.GetEnumerator Documentation for this section has not yet been entered.

Member Details

Distinct Property

Gets whether this select result returns only distinct statments from Select calls.

public bool Distinct { get; }

Value

True if any call to Select and its overloads yields only distinct statements (i.e. no duplicates).

Remarks

None.

Requirements

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

Load Method

Loads all of the matching statements into memory and returns a MemoryStore containing the statements.

public MemoryStore Load ()

Returns

A MemoryStore containing the matching statements.

Remarks

Calling this method is not advised when the number of matching statements may be very large.

Requirements

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

Select Method

Streams the result of this Select call to a StatementSink.

public abstract void Select (StatementSink sink)

Parameters

sink
The sink to receive the statements.

Remarks

If the statements have not yet been loaded into memory, this call will stream the result of the Select call to the sink without loading all of the statements into memory at once.

Requirements

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

StatementCount Property

Gets the number of matching statements.

public long StatementCount { get; }

Value

The number of matching statements.

Remarks

Upon accessing this property, all of the matching statements are loaded into memory as if through a call to SelectResult.Load().

Requirements

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

System.Collections.Generic.IEnumerable<SemWeb.Statement>.GetEnumerator Method

Documentation for this section has not yet been entered.

IEnumerator<Statement> System.Collections.Generic.IEnumerable<SemWeb.Statement>.GetEnumerator ()

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

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

System.Collections.IEnumerable.GetEnumerator Method

Documentation for this section has not yet been entered.

IEnumerator System.Collections.IEnumerable.GetEnumerator ()

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

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

ToArray Method

Loads all of the matching statements into memory and returns them as an array.

public Statement[] ToArray ()

Returns

An array of matching statements.

Remarks

Calling this method is not advised when the number of matching statements may be very large.

Requirements

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