public void Select(SelectableSource source, TextWriter output)
{
QueryResultSink sink;
if (MimeType == SparqlXmlQuerySink.MimeType || MimeType == "text/xml")
sink = new SparqlXmlQuerySink(output);
else if (MimeType == "text/html")
sink = new HTMLQuerySink(output);
else if (MimeType == "text/csv")
sink = new CSVQuerySink(output);
else
throw new InvalidOperationException("MIME type not supported.");
Select(source, sink);
}