SemWeb.Query.SparqlEngine.Describe C# (CSharp) Method

Describe() public method

public Describe ( SelectableSource source, StatementSink sink ) : void
source SelectableSource
sink StatementSink
return void
        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);
            }
        }

Same methods

SparqlEngine::Describe ( SelectableSource source, TextWriter output ) : void