예제 #1
0
 public dotNetRDFQueryResult(dotNetRDFStore store, ISparqlQuery query, IGraph graph)
 {
     _query          = query;
     _tripleProvider = new GraphTripleProvider(graph);
     _model          = query.Model;
     _store          = store;
 }
예제 #2
0
        public StardogQueryResult(StardogStore store, ISparqlQuery query, StardogResultHandler resultHandler)
        {
            _resultHandler = resultHandler;

            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;

            if (_resultHandler.SparqlResultSet != null)
            {
                _tripleProvider = new SparqlResultSetTripleProvider(_resultHandler.SparqlResultSet, s, p, o);
            }

            _model         = query.Model;
            _resultHandler = resultHandler;
            _store         = store;
        }
예제 #3
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;
        }