Beispiel #1
0
        public void StorageDydraConstructQuery()
        {
            try
            {
                Options.HttpDebugging = true;
                //Options.HttpFullDebugging = true;

                DydraConnector dydra   = DydraTests.GetConnection();
                Object         results = dydra.Query("CONSTRUCT { ?s a ?type } WHERE { { ?s a ?type } UNION { GRAPH ?g { ?s a ?type } } }");
                if (results is IGraph)
                {
                    IGraph g = (IGraph)results;
                    TestTools.ShowResults(g);
                }
                else
                {
                    Assert.Fail("Did not get a Graph as expected");
                }
            }
            finally
            {
                Options.HttpFullDebugging = false;
                Options.HttpDebugging     = false;
            }
        }
Beispiel #2
0
        public void StorageDydraQuery()
        {
            try
            {
                Options.HttpDebugging = true;

                DydraConnector dydra   = DydraTests.GetConnection();
                Object         results = dydra.Query("SELECT * WHERE { { ?s a ?type } UNION { GRAPH ?g { ?s a ?type } } }");
                if (results is SparqlResultSet)
                {
                    SparqlResultSet rset = (SparqlResultSet)results;
                    TestTools.ShowResults(rset);
                }
                else
                {
                    Assert.Fail("Did not get a SPARQL Result Set as expected");
                }
            }
            finally
            {
                Options.HttpFullDebugging = false;
                Options.HttpDebugging     = false;
            }
        }