SemWeb.Query.SparqlXmlQuerySink

SemWeb : SemWeb.Query Namespace
SparqlXmlQuerySink Class

A QueryResultSink outputting results in the SPARQL output XML format.

public class SparqlXmlQuerySink : QueryResultSink

#### Remarks

Although the format was designed for SPARQL queries, it can be used with any Query class.

## Members

See Also: Inherited members from QueryResultSink.

### Constructors

SparqlXmlQuerySink (System.IO.TextWriter) Creates the sink to write the results to a TextWriter.
SparqlXmlQuerySink (System.Xml.XmlWriter) Creates the sink to write the results to an XmlWriter.

### Fields

MimeType const | string . Gets the MIME type for the SPARQL XML Results format.

### Methods

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

## Member Details

### SparqlXmlQuerySink Constructor

public SparqlXmlQuerySink (System.IO.TextWriter output)

Creates the sink to write the results to a TextWriter.

#### Parameters

output
  The TextWriter to write results to.

#### Remarks

None.

### SparqlXmlQuerySink Constructor

public SparqlXmlQuerySink (System.Xml.XmlWriter output)

Creates the sink to write the results to an XmlWriter.

#### Parameters

output
  The XmlWriter to write results to.

#### Remarks

None.

### MimeType Field

public const string MimeType

Gets the MIME type for the SPARQL XML Results format.

#### Remarks

Returns "application/sparql-results+xml".