public void Describe(SelectableSource source, StatementSink sink)
{
if (!(query is DescribeQuery))
throw new InvalidOperationException("Only DESCRIBE queries are supported by this method (" + query.GetType() + ").");
DescribeQuery q = (DescribeQuery)query;
RdfSourceWrapper sourcewrapper = BindLogic(source);
try {
RdfGraph graph = q.execute(sourcewrapper);
WriteGraph(graph, sourcewrapper, sink);
} catch (name.levering.ryan.sparql.common.QueryException e) {
throw new QueryExecutionException("Error executing query: " + e.Message, e);
}
}