SemWeb : SemWeb.Query Namespace
QueryResultSink Class

A class that receives the results of a query.

public abstract class QueryResultSink

Remarks

This is an abstract base class. SemWeb.Query.SparqlXmlQuerySink is an implementation that writes out the results of a query in SPARQL XML Results Format.

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.

Protected Constructors

The protected no-arg constructor used by inherited classes.

Public Methods

abstract
Add (VariableBindings) : bool
Called to add a new result row.
AddComments (string)
Adds comments about how the query has been processed.
Finished ()
This method is called by a Query object after the last variable binding is added.
Init (SemWeb.Variable[])
Called by the Query to initialize the result sink.

Member Details

QueryResultSink Constructor

The protected no-arg constructor used by inherited classes.

protected QueryResultSink ()

Remarks

None.

Requirements

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

Add Method

Called to add a new result row.

public abstract bool Add (VariableBindings result)

Parameters

result
The variable bindings to values in this row.

Returns

Return true to have the caller continue streaming results, otherwise the caller will abort the query.

Remarks

None.

Requirements

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

AddComments Method

Adds comments about how the query has been processed.

public virtual void AddComments (string comments)

Parameters

comments
Arbitrary comments.

Remarks

This method may be called at any time, before, during, and after all bindings have been written.

Requirements

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

Finished Method

This method is called by a Query object after the last variable binding is added.

public virtual void Finished ()

Remarks

None.

Requirements

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

Init Method

Called by the Query to initialize the result sink.

public virtual void Init (SemWeb.Variable[] variables)

Parameters

variables
An array of variables whose bindings will be reported. The order of the variables here will match that in the bindings provided in Add.

Remarks

None.

Requirements

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