SemWeb : SemWeb.Remote Namespace
SparqlSource Interface

An interface representing a SPARQL endpoint.

public interface SparqlSource

Remarks

This interface is implemented by classes that support methods for accessing a SPARQL endpoint.

Requirements

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

Members

Public Methods

RunSparqlQuery (string, SemWeb.Query.QueryResultSink)
Runs a SPARQL SELECT query and returns the results into a QueryResultSink.
RunSparqlQuery (string, SemWeb.StatementSink)
Runs a SPARQL CONSTRUCT or DESCRIBE query and returns the resulting statements into a StatementSink.
RunSparqlQuery (string, out bool)
Runs a SPARQL ASK query and returns the boolean result.
RunSparqlQuery (string, System.IO.TextWriter)
Runs a SPARQL query of any type and sends the output into a TextWriter.

Member Details

RunSparqlQuery Method

Runs a SPARQL SELECT query and returns the results into a QueryResultSink.

public void RunSparqlQuery (string sparqlQuery, SemWeb.Query.QueryResultSink selectResults)

Parameters

sparqlQuery
A SPARQL query.
selectResults
A QueryResultSink into which the resulting variable bindings are streamed.

Remarks

Any exception may be thrown by this method depending on the implementation.

Requirements

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

RunSparqlQuery Method

Runs a SPARQL CONSTRUCT or DESCRIBE query and returns the resulting statements into a StatementSink.

public void RunSparqlQuery (string sparqlQuery, SemWeb.StatementSink statementResults)

Parameters

sparqlQuery
A SPARQL query.
statementResults
A StatementSink into which the statements that result from the query are streamed.

Remarks

Any exception may be thrown by this method depending on the implementation.

Requirements

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

RunSparqlQuery Method

Runs a SPARQL ASK query and returns the boolean result.

public void RunSparqlQuery (string sparqlQuery, out bool askResult)

Parameters

sparqlQuery
A SPARQL query.
askResult
The result of the query is set into this out parameter on completion of the method.

Remarks

Any exception may be thrown by this method depending on the implementation.

Requirements

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

RunSparqlQuery Method

Runs a SPARQL query of any type and sends the output into a TextWriter.

public void RunSparqlQuery (string sparqlQuery, System.IO.TextWriter output)

Parameters

sparqlQuery
A SPARQL query.
output
A TextWriter to which the result of the query is written.

Remarks

Any exception may be thrown by this method depending on the implementation.

Requirements

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