Esempio n. 1
0
 public dotNetRDFQueryResult(dotNetRDFStore store, ISparqlQuery query, IGraph graph)
 {
     _query          = query;
     _tripleProvider = new GraphTripleProvider(graph);
     _model          = query.Model;
     _store          = store;
 }
Esempio n. 2
0
        public dotNetRDFQueryResult(dotNetRDFStore store, ISparqlQuery query, SparqlResultSet resultSet)
        {
            string s = null;
            string p = null;
            string o = null;

            if (query.ProvidesStatements())
            {
                // A list of global scope variables without the ?. Used to access the
                // subject, predicate and object variable in statement providing queries.
                string[] vars = query.GetGlobalScopeVariableNames();

                s = vars[0];
                p = vars[1];
                o = vars[2];
            }

            _query          = query;
            _tripleProvider = new SparqlResultSetTripleProvider(resultSet, s, p, o);
            _model          = query.Model;
            _queryResults   = resultSet;
            _store          = store;
        }