Details

      Description

      The BigdataEmbeddedFederationSparqlTest test suite is not currently executed. It should be enabled as part of the mavenization (BLZG-344, BLZG-38) and the enabling of scale-out tests in CI (BLZG-80).

        Activity

        Hide
        bryanthompson bryanthompson added a comment -

        The following code was throwing a ClassCastException

            protected BigdataSailRepositoryConnection getQueryConnection(
                    Repository dataRep) throws Exception {
        
                return ((BigdataSailRepository) dataRep)
                        .getReadOnlyConnection();
        
            }
        

        The fix is to the bottom of BigdataEmbeddedFederationSparqlTest.newRepository()

                // See BLZG-1226 (Enable BigdataEmbeddedFederationSparqlTest tests in CI)
        //        return new DatasetRepository(new BigdataSailRepository(sail));
                return new BigdataSailRepository(sail);
        
        Show
        bryanthompson bryanthompson added a comment - The following code was throwing a ClassCastException protected BigdataSailRepositoryConnection getQueryConnection( Repository dataRep) throws Exception { return ((BigdataSailRepository) dataRep) .getReadOnlyConnection(); } The fix is to the bottom of BigdataEmbeddedFederationSparqlTest.newRepository() // See BLZG-1226 (Enable BigdataEmbeddedFederationSparqlTest tests in CI) // return new DatasetRepository(new BigdataSailRepository(sail)); return new BigdataSailRepository(sail);
        Hide
        bryanthompson bryanthompson added a comment -

        With the above change, 418 out of 437 tests pass for the embedded federation. The failures are listed below. Commit is to TICKET_1156b branch.
        {{

        { BigdataEmbeddedFederationSparqlTest TestSuite with 418 tests [com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1|example:] com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1 Aggregates "agg empty group"(com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1$1) junit.framework.AssertionFailedError: ========================================= "agg empty group" http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-empty-group2 ========================================= Expected results: [] ========================================= Bigdata results: ========================================= Missing results: [] ========================================= Query: PREFIX ex: <http://example.com/> SELECT ?x (MAX(?value) AS ?max) WHERE \{ ?x ex:p ?value } GROUP BY ?x ========================================= Data: @prefix ex: <http://example.com/> . ========================================= Original AST: PREFIX ex: <http://example.com/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX sesame: <http://www.openrdf.org/schema/sesame#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX fn: <http://www.w3.org/2005/xpath-functions#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX hint: <http://www.bigdata.com/queryHints#> PREFIX bd: <http://www.bigdata.com/rdf#> PREFIX bds: <http://www.bigdata.com/rdf/search#> QueryType: SELECT SELECT VarNode(x) ( com.bigdata.rdf.sparql.ast.FunctionNode(VarNode(value))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.w3.org/2006/sparql-functions#max, valueExpr=com.bigdata.bop.rdf.aggregate.MAX(value)] AS VarNode(max) ) bq. JoinGroupNode \{ StatementPatternNode(VarNode(x), ConstantNode(TermId(0U)[http://example.com/p]), VarNode(value)) [scope=DEFAULT_CONTEXTS] }

        group by VarNode
        =========================================
        Optimized AST:

        PREFIX ex: <http://example.com/>
        PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
        PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
        PREFIX sesame: <http://www.openrdf.org/schema/sesame#>
        PREFIX owl: <http://www.w3.org/2002/07/owl#>
        PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
        PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
        PREFIX foaf: <http://xmlns.com/foaf/0.1/>
        PREFIX dc: <http://purl.org/dc/elements/1.1/>
        PREFIX hint: <http://www.bigdata.com/queryHints#>
        PREFIX bd: <http://www.bigdata.com/rdf#>
        PREFIX bds: <http://www.bigdata.com/rdf/search#>
        QueryType: SELECT
        includeInferred=true
        SELECT ( VarNode AS VarNode ) ( com.bigdata.rdf.sparql.ast.FunctionNode(VarNode(value))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.w3.org/2006/sparql-functions#max, valueExpr=com.bigdata.bop.rdf.aggregate.MAX(value)] AS VarNode(max) )

        JoinGroupNode {

        StatementPatternNode(VarNode, ConstantNode(TermId(0U)http://example.com/p), VarNode(value)) [scope=DEFAULT_CONTEXTS]
        AST2BOpBase.estimatedCardinality=0
        AST2BOpBase.originalIndex=POCS

        } AST2BOpBase.estimatedCardinality=0

        group by ( VarNode AS VarNode )
        =========================================

        at junit.framework.Assert.fail(Assert.java:57)
        at junit.framework.TestCase.fail(TestCase.java:227)
        at com.bigdata.rdf.sail.tck.BigdataSparqlTest.compareTupleQueryResults(BigdataSparqlTest.java:1395)
        at com.bigdata.rdf.sail.tck.BigdataSparqlTest.runTest(BigdataSparqlTest.java:1161)
        at junit.framework.TestCase.runBare(TestCase.java:141)
        at junit.framework.TestResult$1.protect(TestResult.java:122)
        at junit.framework.TestResult.runProtected(TestResult.java:142)
        at junit.framework.TestResult.run(TestResult.java:125)
        at junit.framework.TestCase.run(TestCase.java:129)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

        "Aggregate over empty group resulting in a row with unbound variables"(com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1$1)
        junit.framework.AssertionFailedError:
        =========================================
        "Aggregate over empty group resulting in a row with unbound variables"
        http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-empty-group2
        =========================================
        Expected results:
        []
        =========================================
        Bigdata results:
        =========================================
        Missing results:
        []
        =========================================
        Query:
        PREFIX ex: <http://example.com/>
        SELECT ?x (MAX(?value) AS ?max)
        WHERE {
        ?x ex ?value
        } GROUP BY ?x

        =========================================
        Data:
        @prefix ex: <http://example.com/> .

        =========================================
        Original AST:

        PREFIX ex: <http://example.com/>
        PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
        PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
        PREFIX sesame: <http://www.openrdf.org/schema/sesame#>
        PREFIX owl: <http://www.w3.org/2002/07/owl#>
        PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
        PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
        PREFIX foaf: <http://xmlns.com/foaf/0.1/>
        PREFIX dc: <http://purl.org/dc/elements/1.1/>
        PREFIX hint: <http://www.bigdata.com/queryHints#>
        PREFIX bd: <http://www.bigdata.com/rdf#>
        PREFIX bds: <http://www.bigdata.com/rdf/search#>
        QueryType: SELECT
        SELECT VarNode ( com.bigdata.rdf.sparql.ast.FunctionNode(VarNode(value))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.w3.org/2006/sparql-functions#max, valueExpr=com.bigdata.bop.rdf.aggregate.MAX(value)] AS VarNode(max) )

        JoinGroupNode {

        StatementPatternNode(VarNode, ConstantNode(TermId(0U)http://example.com/p), VarNode(value)) [scope=DEFAULT_CONTEXTS]
        }
        group by VarNode
        =========================================
        Optimized AST:

        PREFIX ex: <http://example.com/>
        PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
        PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
        PREFIX sesame: <http://www.openrdf.org/schema/sesame#>
        PREFIX owl: <http://www.w3.org/2002/07/owl#>
        PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
        PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
        PREFIX foaf: <http://xmlns.com/foaf/0.1/>
        PREFIX dc: <http://purl.org/dc/elements/1.1/>
        PREFIX hint: <http://www.bigdata.com/queryHints#>
        PREFIX bd: <http://www.bigdata.com/rdf#>
        PREFIX bds: <http://www.bigdata.com/rdf/search#>
        QueryType: SELECT
        includeInferred=true
        SELECT ( VarNode AS VarNode ) ( com.bigdata.rdf.sparql.ast.FunctionNode(VarNode(value))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.w3.org/2006/sparql-functions#max, valueExpr=com.bigdata.bop.rdf.aggregate.MAX(value)] AS VarNode(max) )

        JoinGroupNode {

        StatementPatternNode(VarNode, ConstantNode(TermId(0U)http://example.com/p), VarNode(value)) [scope=DEFAULT_CONTEXTS]
        AST2BOpBase.estimatedCardinality=0
        AST2BOpBase.originalIndex=POCS

        } AST2BOpBase.estimatedCardinality=0

        group by ( VarNode AS VarNode )
        =========================================

        at junit.framework.Assert.fail(Assert.java:57)
        at junit.framework.TestCase.fail(TestCase.java:227)
        at com.bigdata.rdf.sail.tck.BigdataSparqlTest.compareTupleQueryResults(BigdataSparqlTest.java:1395)
        at com.bigdata.rdf.sail.tck.BigdataSparqlTest.runTest(BigdataSparqlTest.java:1161)
        at junit.framework.TestCase.runBare(TestCase.java:141)
        at junit.framework.TestResult$1.protect(TestResult.java:122)
        at junit.framework.TestResult.runProtected(TestResult.java:142)
        at junit.framework.TestResult.run(TestResult.java:125)
        at junit.framework.TestCase.run(TestCase.java:129)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

        bindings
        "Post-query VALUES with OPTIONAL obj-var, 1 row"(com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1$1)
        junit.framework.AssertionFailedError:
        =========================================
        "Post-query VALUES with OPTIONAL obj-var, 1 row"
        http://www.w3.org/2009/sparql/docs/tests/data-sparql11/bindings/manifest#values7
        =========================================
        Expected results:
        [s=http://example.org/a;o1=http://example.org/b;o2=http://example.org/b]
        [s=http://example.org/a;o1="alan@example.org";o2=http://example.org/b]
        [s=http://example.org/a;o1="Alan";o2=http://example.org/b]
        [s=http://example.org/c;o1="alice@example.org";o2=http://example.org/b]
        [s=http://example.org/c;o1="Alice";o2=http://example.org/b]
        =========================================
        Bigdata results:
        [o2=http://example.org/b;s=http://example.org/b;o1=http://example.org/c]
        [o2=http://example.org/b;s=http://example.org/b;o1="bob@example.org"]
        [o2=http://example.org/b;s=http://example.org/b;o1="Bob"]
        [o2=http://example.org/b;s=http://example.org/c;o1="alice@example.org"]
        [o2=http://example.org/b;s=http://example.org/c;o1="Alice"]
        [o2=http://example.org/b;s=http://example.org/a;o1=http://example.org/b]
        [o2=http://example.org/b;s=http://example.org/a;o1="alan@example.org"]
        [o2=http://example.org/b;s=http://example.org/a;o1="Alan"]
        =========================================
        Extra results:
        [o2=http://example.org/b;s=http://example.org/b;o1=http://example.org/c]
        [o2=http://example.org/b;s=http://example.org/b;o1="bob@example.org"]
        [o2=http://example.org/b;s=http://example.org/b;o1="Bob"]
        =========================================
        Query:

        1. bindings with two variables and two sets of values

        PREFIX : <http://example.org/>
        PREFIX foaf: <http://xmlns.com/foaf/0.1/>
        SELECT ?s ?o1 ?o2
        {

        ?s ?p1 ?o1

        OPTIONAL { ?s foaf:knows ?o2 }

        } VALUES (?o2) {
        (:b)
        }

        =========================================
        Data:
        @prefix : <http://example.org/> .
        @prefix foaf: <http://xmlns.com/foaf/0.1/> .

        :a foaf:name "Alan" .
        :a foaf:mbox "alan@example.org" .
        :b foaf:name "Bob" .
        :b foaf:mbox "bob@example.org" .
        :c foaf:name "Alice" .
        :c foaf:mbox "alice@example.org" .
        :a foaf:knows :b .
        :b foaf:knows :c .
        =========================================
        Original AST:

        PREFIX : <http://example.org/>
        PREFIX foaf: <http://xmlns.com/foaf/0.1/>
        PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
        PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
        PREFIX sesame: <http://www.openrdf.org/schema/sesame#>
        PREFIX owl: <http://www.w3.org/2002/07/owl#>
        PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
        PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
        PREFIX dc: <http://purl.org/dc/elements/1.1/>
        PREFIX hint: <http://www.bigdata.com/queryHints#>
        PREFIX bd: <http://www.bigdata.com/rdf#>
        PREFIX bds: <http://www.bigdata.com/rdf/search#>
        QueryType: SELECT
        SELECT VarNode(s) VarNode(o1) VarNode(o2)

        JoinGroupNode {

        StatementPatternNode(VarNode(s), VarNode(p1), VarNode(o1)) [scope=DEFAULT_CONTEXTS]
        JoinGroupNode [optional] {
        StatementPatternNode(VarNode(s), ConstantNode(Vocab(106)http://xmlns.com/foaf/0.1/knows), VarNode(o2)) [scope=DEFAULT_CONTEXTS]
        }
        }

        BindingsClause ?o2

        {

        { o2=TermId(-4611686018427387904U)http://example.org/b }
        }
        =========================================
        Optimized AST:

        PREFIX : <http://example.org/>
        PREFIX foaf: <http://xmlns.com/foaf/0.1/>
        PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
        PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
        PREFIX sesame: <http://www.openrdf.org/schema/sesame#>
        PREFIX owl: <http://www.w3.org/2002/07/owl#>
        PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
        PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
        PREFIX dc: <http://purl.org/dc/elements/1.1/>
        PREFIX hint: <http://www.bigdata.com/queryHints#>
        PREFIX bd: <http://www.bigdata.com/rdf#>
        PREFIX bds: <http://www.bigdata.com/rdf/search#>
        QueryType: SELECT
        includeInferred=true
        SELECT ( VarNode(s) AS VarNode(s) ) ( VarNode(o1) AS VarNode(o1) ) ( VarNode(o2) AS VarNode(o2) )

        JoinGroupNode {

        StatementPatternNode(VarNode(s), VarNode(p1), VarNode(o1)) [scope=DEFAULT_CONTEXTS]
        AST2BOpBase.estimatedCardinality=8
        AST2BOpBase.originalIndex=SPOC
        StatementPatternNode(VarNode(s), ConstantNode(Vocab(106)http://xmlns.com/foaf/0.1/knows), ConstantNode(TermId(-4611686018427387904U)http://example.org/b[var=o2])) [scope=DEFAULT_CONTEXTS] [optional]
        AST2BOpBase.estimatedCardinality=1
        AST2BOpBase.originalIndex=POCS
        }

        BindingsClause ?o2

        {

        { o2=TermId(-4611686018427387904U)http://example.org/b }
        }
        =========================================

        at junit.framework.Assert.fail(Assert.java:57)
        at junit.framework.TestCase.fail(TestCase.java:227)
        at com.bigdata.rdf.sail.tck.BigdataSparqlTest.compareTupleQueryResults(BigdataSparqlTest.java:1395)
        at com.bigdata.rdf.sail.tck.BigdataSparqlTest.runTest(BigdataSparqlTest.java:1161)
        at junit.framework.TestCase.runBare(TestCase.java:141)
        at junit.framework.TestResult$1.protect(TestResult.java:122)
        at junit.framework.TestResult.runProtected(TestResult.java:142)
        at junit.framework.TestResult.run(TestResult.java:125)
        at junit.framework.TestCase.run(TestCase.java:129)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

        CONSTRUCT
        "constructwhere04
        - CONSTRUCT WHERE"(com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1$1)
        junit.framework.AssertionFailedError:
        =========================================
        "constructwhere04
        - CONSTRUCT WHERE"
        http://www.w3.org/2009/sparql/docs/tests/data-sparql11/construct/manifest#constructwhere04
        =========================================
        Expected results:
        <http://example.org/s2, http://example.org/p, http://example.org/o1>
        <http://example.org/s2, http://example.org/p, http://example.org/o2>
        <http://example.org/s1, http://example.org/p, http://example.org/o1>
        <http://example.org/s3, http://example.org/p, http://example.org/o3>
        =========================================
        Bigdata results:
        =========================================
        Query:
        PREFIX : <http://example.org/>

        CONSTRUCT
        FROM <data.ttl>
        WHERE { ?s ?p ?o }
        =========================================
        Data:

        =========================================

        at junit.framework.Assert.fail(Assert.java:57)
        at junit.framework.TestCase.fail(TestCase.java:227)
        at com.bigdata.rdf.sail.tck.BigdataSparqlTest.compareGraphs(BigdataSparqlTest.java:1476)
        at com.bigdata.rdf.sail.tck.BigdataSparqlTest.runTest(BigdataSparqlTest.java:1173)
        at junit.framework.TestCase.runBare(TestCase.java:141)
        at junit.framework.TestResult$1.protect(TestResult.java:122)
        at junit.framework.TestResult.runProtected(TestResult.java:142)
        at junit.framework.TestResult.run(TestResult.java:125)
        at junit.framework.TestCase.run(TestCase.java:129)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

        Positive Exists
        "Nested positive exists"(com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1$1)
        junit.framework.AssertionFailedError:
        =========================================
        "Nested positive exists"
        http://www.w3.org/2009/sparql/docs/tests/data-sparql11/exists/manifest#exists04
        =========================================
        Expected results:
        [s=http://www.example.org/s;p=http://www.example.org/p]
        =========================================
        Bigdata results:
        =========================================
        Missing results:
        [s=http://www.example.org/s;p=http://www.example.org/p]
        =========================================
        Query:
        prefix ex: <http://www.example.org/>

        select * where {

        ?s ?p ex:o

        filter exists { ?s ?p ex:o1 filter exists { ?s ?p ex:o2 } }

        }

        =========================================
        Data:
        @prefix : <http://www.example.org/> .

        :s :o, :o1, :o2.
        :t :o1, :o2.

        =========================================
        Original AST:

        PREFIX ex: <http://www.example.org/>
        PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
        PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
        PREFIX sesame: <http://www.openrdf.org/schema/sesame#>
        PREFIX owl: <http://www.w3.org/2002/07/owl#>
        PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
        PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
        PREFIX foaf: <http://xmlns.com/foaf/0.1/>
        PREFIX dc: <http://purl.org/dc/elements/1.1/>
        PREFIX hint: <http://www.bigdata.com/queryHints#>
        PREFIX bd: <http://www.bigdata.com/rdf#>
        PREFIX bds: <http://www.bigdata.com/rdf/search#>
        QueryType: SELECT
        SELECT *

        JoinGroupNode {

        StatementPatternNode(VarNode(s), VarNode(p), ConstantNode(TermId(4611686018427387904U)http://www.example.org/o)) [scope=DEFAULT_CONTEXTS]
        FILTER( ExistsNode(VarNode(-exists-1))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.bigdata.com/sparql-1.1-undefined-functionsexists, graphPattern=
        JoinGroupNode {
        StatementPatternNode(VarNode(s), VarNode(p), ConstantNode(TermId(-4611686018427387904U)http://www.example.org/o1)) [scope=DEFAULT_CONTEXTS]
        FILTER( ExistsNode(VarNode(-exists-2))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.bigdata.com/sparql-1.1-undefined-functionsexists, graphPattern=
        JoinGroupNode {
        StatementPatternNode(VarNode(s), VarNode(p), ConstantNode(TermId(2305843009213693952U)http://www.example.org/o2)) [scope=DEFAULT_CONTEXTS]
        }, valueExpr=-exists-2] )
        }, valueExpr=-exists-1] )
        }
        =========================================
        Optimized AST:

        PREFIX ex: <http://www.example.org/>
        PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
        PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
        PREFIX sesame: <http://www.openrdf.org/schema/sesame#>
        PREFIX owl: <http://www.w3.org/2002/07/owl#>
        PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
        PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
        PREFIX foaf: <http://xmlns.com/foaf/0.1/>
        PREFIX dc: <http://purl.org/dc/elements/1.1/>
        PREFIX hint: <http://www.bigdata.com/queryHints#>
        PREFIX bd: <http://www.bigdata.com/rdf#>
        PREFIX bds: <http://www.bigdata.com/rdf/search#>
        QueryType: SELECT
        includeInferred=true
        SELECT VarNode(s) VarNode(p)

        JoinGroupNode {

        StatementPatternNode(VarNode(s), VarNode(p), ConstantNode(TermId(4611686018427387904U)http://www.example.org/o)) [scope=DEFAULT_CONTEXTS]
        AST2BOpBase.estimatedCardinality=1
        AST2BOpBase.originalIndex=OCSP
        QueryType: ASK
        SELECT VarNode(s) VarNode(p) VarNode(-exists-1)[anonymous]
        JoinGroupNode {
        StatementPatternNode(VarNode(s), VarNode(p), ConstantNode(TermId(-4611686018427387904U)http://www.example.org/o1)) [scope=DEFAULT_CONTEXTS]
        AST2BOpBase.estimatedCardinality=2
        AST2BOpBase.originalIndex=OCSP
        FILTER( ExistsNode(VarNode(-exists-2))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.bigdata.com/sparql-1.1-undefined-functionsexists, graphPattern=
        JoinGroupNode {
        StatementPatternNode(VarNode(s), VarNode(p), ConstantNode(TermId(2305843009213693952U)http://www.example.org/o2)) [scope=DEFAULT_CONTEXTS]
        AST2BOpBase.estimatedCardinality=2
        AST2BOpBase.originalIndex=OCSP
        } AST2BOpBase.estimatedCardinality=2, valueExpr=-exists-2] )
        } AST2BOpBase.estimatedCardinality=2
        @askVar=-exists-1
        FILTER( ExistsNode(VarNode(-exists-1))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.bigdata.com/sparql-1.1-undefined-functionsexists, graphPattern=
        JoinGroupNode {
        StatementPatternNode(VarNode(s), VarNode(p), ConstantNode(TermId(-4611686018427387904U)http://www.example.org/o1)) [scope=DEFAULT_CONTEXTS]
        AST2BOpBase.estimatedCardinality=2
        AST2BOpBase.originalIndex=OCSP
        FILTER( ExistsNode(VarNode(-exists-2))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.bigdata.com/sparql-1.1-undefined-functionsexists, graphPattern=
        JoinGroupNode {
        StatementPatternNode(VarNode(s), VarNode(p), ConstantNode(TermId(2305843009213693952U)http://www.example.org/o2)) [scope=DEFAULT_CONTEXTS]
        AST2BOpBase.estimatedCardinality=2
        AST2BOpBase.originalIndex=OCSP
        } AST2BOpBase.estimatedCardinality=2, valueExpr=-exists-2] )
        } AST2BOpBase.estimatedCardinality=2, valueExpr=-exists-1] )
        }
        =========================================

        at junit.framework.Assert.fail(Assert.java:57)
        at junit.framework.TestCase.fail(TestCase.java:227)
        at com.bigdata.rdf.sail.tck.BigdataSparqlTest.compareTupleQueryResults(BigdataSparqlTest.java:1395)
        at com.bigdata.rdf.sail.tck.BigdataSparqlTest.runTest(BigdataSparqlTest.java:1161)
        at junit.framework.TestCase.runBare(TestCase.java:141)
        at junit.framework.TestResult$1.protect(TestResult.java:122)
        at junit.framework.TestResult.runProtected(TestResult.java:142)
        at junit.framework.TestResult.run(TestResult.java:125)
        at junit.framework.TestCase.run(TestCase.java:129)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

        Built-in Functions
        "BNODE str "(com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1$1)
        junit.framework.AssertionFailedError:
        =========================================
        "BNODE str "
        http://www.w3.org/2009/sparql/docs/tests/data-sparql11/functions/manifest#bnode01
        =========================================
        Expected results:
        [s1="BAZ";s2="BAZ";b1=_:b0;b2=_:b0]
        [s1="foo";s2="foo";b1=_:b1;b2=_:b1]
        [s1="foo";s2="BAZ";b1=_:b2;b2=_:b3]
        [s1="BAZ";s2="foo";b1=_:b4;b2=_:b5]
        =========================================
        Bigdata results:
        [s1="foo";s2="foo";b1=_:-bnode-func-foo;b2=_:-bnode-func-foo]
        [s1="BAZ";s2="foo";b1=_:-bnode-func-BAZ;b2=_:-bnode-func-foo]
        [s1="foo";s2="BAZ";b1=_:-bnode-func-foo;b2=_:-bnode-func-BAZ]
        [s1="BAZ";s2="BAZ";b1=_:-bnode-func-BAZ;b2=_:-bnode-func-BAZ]
        =========================================
        Missing results:
        [s1="BAZ";s2="BAZ";b1=_:b0;b2=_:b0]
        [s1="foo";s2="foo";b1=_:b1;b2=_:b1]
        [s1="foo";s2="BAZ";b1=_:b2;b2=_:b3]
        [s1="BAZ";s2="foo";b1=_:b4;b2=_:b5]
        =========================================
        Extra results:
        [s1="foo";s2="foo";b1=_:-bnode-func-foo;b2=_:-bnode-func-foo]
        [s1="BAZ";s2="foo";b1=_:-bnode-func-BAZ;b2=_:-bnode-func-foo]
        [s1="foo";s2="BAZ";b1=_:-bnode-func-foo;b2=_:-bnode-func-BAZ]
        [s1="BAZ";s2="BAZ";b1=_:-bnode-func-BAZ;b2=_:-bnode-func-BAZ]
        =========================================
        Query:
        PREFIX : <http://example.org/>
        PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
        SELECT ?s1 ?s2
        (BNODE(?s1) AS ?b1) (BNODE(?s2) AS ?b2)
        WHERE {
        ?a :str ?s1 .
        ?b :str ?s2 .
        FILTER (?a = :s1 | ?a = :s3)
        FILTER (?b = :s1 | ?b = :s3)
        }

        =========================================
        Data:
        @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
        @prefix : <http://example.org/> .

        1. numeric data
          :n4 :num -2 .
          :n1 :num -1 .
          :n2 :num -1.6 .
          :n3 :num 1.1 .
          :n5 :num 2.5 .
        1. string data
          :s1 :str "foo" .
          :s2 :str "bar"@en .
          :s3 :str "BAZ" .
          :s4 :str "???" .
          :s5 :str "100%" .
          :s6 :str "abc"^^xsd:string .
          :s7 :str "DEF"^^xsd:string .
        1. date data
          :d1 :date "2010-06-21T11:28:01Z"^^xsd:dateTime .
          :d2 :date "2010-12-21T15:38:02-08:00"^^xsd:dateTime .
          :d3 :date "2008-06-20T23:59:00Z"^^xsd:dateTime .
          :d4 :date "2011-02-01T01:02:03"^^xsd:dateTime .

        =========================================
        Original AST:

        PREFIX : <http://example.org/>
        PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
        PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
        PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
        PREFIX sesame: <http://www.openrdf.org/schema/sesame#>
        PREFIX owl: <http://www.w3.org/2002/07/owl#>
        PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
        PREFIX foaf: <http://xmlns.com/foaf/0.1/>
        PREFIX dc: <http://purl.org/dc/elements/1.1/>
        PREFIX hint: <http://www.bigdata.com/queryHints#>
        PREFIX bd: <http://www.bigdata.com/rdf#>
        PREFIX bds: <http://www.bigdata.com/rdf/search#>
        QueryType: SELECT
        SELECT VarNode(s1) VarNode(s2) ( com.bigdata.rdf.sparql.ast.FunctionNode(VarNode(s1))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.bigdata.com/sparql-1.1-undefined-functionsbnode, valueExpr=com.bigdata.rdf.internal.constraints.BNodeBOp(s1)[ IVValueExpression.namespace="BNODE str ".lex, IVValueExpression.timestamp=-1]] AS VarNode(b1) ) ( com.bigdata.rdf.sparql.ast.FunctionNode(VarNode(s2))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.bigdata.com/sparql-1.1-undefined-functionsbnode, valueExpr=com.bigdata.rdf.internal.constraints.BNodeBOp(s2)[ IVValueExpression.namespace="BNODE str ".lex, IVValueExpression.timestamp=-1]] AS VarNode(b2) )

        JoinGroupNode {

        StatementPatternNode(VarNode(a), ConstantNode(TermId(2882303761517117440U)http://example.org/str), VarNode(s1)) [scope=DEFAULT_CONTEXTS]
        StatementPatternNode(VarNode(b), ConstantNode(TermId(2882303761517117440U)http://example.org/str), VarNode(s2)) [scope=DEFAULT_CONTEXTS]
        FILTER( FunctionNode(FunctionNode(VarNode(a),ConstantNode(TermId(-5764607523034234880U)http://example.org/s1))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.w3.org/2005/xpath-functions#equal-to, valueExpr=com.bigdata.rdf.internal.constraints.CompareBOp(a,TermId(-5764607523034234880U)http://example.org/s1)[ CompareBOp.op=EQ]],FunctionNode(VarNode(a),ConstantNode(TermId(-1152921504606846976U)http://example.org/s3))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.w3.org/2005/xpath-functions#equal-to, valueExpr=com.bigdata.rdf.internal.constraints.CompareBOp(a,TermId(-1152921504606846976U)http://example.org/s3)[ CompareBOp.op=EQ]])[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.w3.org/2006/sparql-functions#logical-or, valueExpr=com.bigdata.rdf.internal.constraints.OrBOp(com.bigdata.rdf.internal.constraints.CompareBOp(a,TermId(-5764607523034234880U)http://example.org/s1)[ CompareBOp.op=EQ],com.bigdata.rdf.internal.constraints.CompareBOp(a,TermId(-1152921504606846976U)http://example.org/s3)[ CompareBOp.op=EQ])] )
        FILTER( FunctionNode(FunctionNode(VarNode(b),ConstantNode(TermId(-5764607523034234880U)http://example.org/s1))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.w3.org/2005/xpath-functions#equal-to, valueExpr=com.bigdata.rdf.internal.constraints.CompareBOp(b,TermId(-5764607523034234880U)http://example.org/s1)[ CompareBOp.op=EQ]],FunctionNode(VarNode(b),ConstantNode(TermId(-1152921504606846976U)http://example.org/s3))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.w3.org/2005/xpath-functions#equal-to, valueExpr=com.bigdata.rdf.internal.constraints.CompareBOp(b,TermId(-1152921504606846976U)http://example.org/s3)[ CompareBOp.op=EQ]])[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.w3.org/2006/sparql-functions#logical-or, valueExpr=com.bigdata.rdf.internal.constraints.OrBOp(com.bigdata.rdf.internal.constraints.CompareBOp(b,TermId(-5764607523034234880U)http://example.org/s1)[ CompareBOp.op=EQ],com.bigdata.rdf.internal.constraints.CompareBOp(b,TermId(-1152921504606846976U)http://example.org/s3)[ CompareBOp.op=EQ])] )
        }
        =========================================
        Optimized AST:

        PREFIX : <http://example.org/>
        PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
        PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
        PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
        PREFIX sesame: <http://www.openrdf.org/schema/sesame#>
        PREFIX owl: <http://www.w3.org/2002/07/owl#>
        PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
        PREFIX foaf: <http://xmlns.com/foaf/0.1/>
        PREFIX dc: <http://purl.org/dc/elements/1.1/>
        PREFIX hint: <http://www.bigdata.com/queryHints#>
        PREFIX bd: <http://www.bigdata.com/rdf#>
        PREFIX bds: <http://www.bigdata.com/rdf/search#>
        QueryType: SELECT
        includeInferred=true
        SELECT ( VarNode(s1) AS VarNode(s1) ) ( VarNode(s2) AS VarNode(s2) ) ( com.bigdata.rdf.sparql.ast.FunctionNode(VarNode(s1))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.bigdata.com/sparql-1.1-undefined-functionsbnode, valueExpr=com.bigdata.rdf.internal.constraints.BNodeBOp(s1)[ IVValueExpression.namespace="BNODE str ".lex, IVValueExpression.timestamp=-1]] AS VarNode(b1) ) ( com.bigdata.rdf.sparql.ast.FunctionNode(VarNode(s2))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.bigdata.com/sparql-1.1-undefined-functionsbnode, valueExpr=com.bigdata.rdf.internal.constraints.BNodeBOp(s2)[ IVValueExpression.namespace="BNODE str ".lex, IVValueExpression.timestamp=-1]] AS VarNode(b2) )

        JoinGroupNode {

        StatementPatternNode(VarNode(a), ConstantNode(TermId(2882303761517117440U)http://example.org/str), VarNode(s1)) [scope=DEFAULT_CONTEXTS] filters=1
        FILTER( FunctionNode(FunctionNode(VarNode(a),ConstantNode(TermId(-5764607523034234880U)http://example.org/s1))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.w3.org/2005/xpath-functions#equal-to, valueExpr=com.bigdata.rdf.internal.constraints.CompareBOp(a,TermId(-5764607523034234880U)http://example.org/s1)[ CompareBOp.op=EQ]],FunctionNode(VarNode(a),ConstantNode(TermId(-1152921504606846976U)http://example.org/s3))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.w3.org/2005/xpath-functions#equal-to, valueExpr=com.bigdata.rdf.internal.constraints.CompareBOp(a,TermId(-1152921504606846976U)http://example.org/s3)[ CompareBOp.op=EQ]])[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.w3.org/2006/sparql-functions#logical-or, valueExpr=com.bigdata.rdf.internal.constraints.OrBOp(com.bigdata.rdf.internal.constraints.CompareBOp(a,TermId(-5764607523034234880U)http://example.org/s1)[ CompareBOp.op=EQ],com.bigdata.rdf.internal.constraints.CompareBOp(a,TermId(-1152921504606846976U)http://example.org/s3)[ CompareBOp.op=EQ])] )
        AST2BOpBase.estimatedCardinality=7
        AST2BOpBase.originalIndex=POCS
        StatementPatternNode(VarNode(b), ConstantNode(TermId(2882303761517117440U)http://example.org/str), VarNode(s2)) [scope=DEFAULT_CONTEXTS] filters=1
        FILTER( FunctionNode(FunctionNode(VarNode(b),ConstantNode(TermId(-5764607523034234880U)http://example.org/s1))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.w3.org/2005/xpath-functions#equal-to, valueExpr=com.bigdata.rdf.internal.constraints.CompareBOp(b,TermId(-5764607523034234880U)http://example.org/s1)[ CompareBOp.op=EQ]],FunctionNode(VarNode(b),ConstantNode(TermId(-1152921504606846976U)http://example.org/s3))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.w3.org/2005/xpath-functions#equal-to, valueExpr=com.bigdata.rdf.internal.constraints.CompareBOp(b,TermId(-1152921504606846976U)http://example.org/s3)[ CompareBOp.op=EQ]])[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.w3.org/2006/sparql-functions#logical-or, valueExpr=com.bigdata.rdf.internal.constraints.OrBOp(com.bigdata.rdf.internal.constraints.CompareBOp(b,TermId(-5764607523034234880U)http://example.org/s1)[ CompareBOp.op=EQ],com.bigdata.rdf.internal.constraints.CompareBOp(b,TermId(-1152921504606846976U)http://example.org/s3)[ CompareBOp.op=EQ])] )
        AST2BOpBase.estimatedCardinality=7
        AST2BOpBase.originalIndex=POCS
        }
        =========================================

        at junit.framework.Assert.fail(Assert.java:57)
        at junit.framework.TestCase.fail(TestCase.java:227)
        at com.bigdata.rdf.sail.tck.BigdataSparqlTest.compareTupleQueryResults(BigdataSparqlTest.java:1395)
        at com.bigdata.rdf.sail.tck.BigdataSparqlTest.runTest(BigdataSparqlTest.java:1161)
        at junit.framework.TestCase.runBare(TestCase.java:141)
        at junit.framework.TestResult$1.protect(TestResult.java:122)
        at junit.framework.TestResult.runProtected(TestResult.java:142)
        at junit.framework.TestResult.run(TestResult.java:125)
        at junit.framework.TestCase.run(TestCase.java:129)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

        Grouping
        "Group-3"(com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1$1)
        junit.framework.AssertionFailedError:
        =========================================
        "Group-3"
        http://www.w3.org/2009/sparql/docs/tests/data-sparql11/grouping/manifest#group03
        =========================================
        Expected results:
        [w="9"^^<http://www.w3.org/2001/XMLSchema#integer>;S="1"^^<http://www.w3.org/2001/XMLSchema#integer>]
        S="2"^^<http://www.w3.org/2001/XMLSchema#integer>
        =========================================
        Bigdata results:
        [w="9"^^<http://www.w3.org/2001/XMLSchema#integer>;S="1"^^<http://www.w3.org/2001/XMLSchema#integer>]
        =========================================
        Missing results:
        S="2"^^<http://www.w3.org/2001/XMLSchema#integer>
        =========================================
        Query:
        PREFIX : <http://example/>

        SELECT ?w (SAMPLE(?v) AS ?S)
        {

        ?s ?v .

        OPTIONAL { ?s :q ?w }

        }
        GROUP BY ?w

        =========================================
        Data:
        @prefix : <http://example/> .

        :s1 1 .
        :s1 :q 9 .
        :s2 2 .

        =========================================
        Original AST:

        PREFIX : <http://example/>
        PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
        PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
        PREFIX sesame: <http://www.openrdf.org/schema/sesame#>
        PREFIX owl: <http://www.w3.org/2002/07/owl#>
        PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
        PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
        PREFIX foaf: <http://xmlns.com/foaf/0.1/>
        PREFIX dc: <http://purl.org/dc/elements/1.1/>
        PREFIX hint: <http://www.bigdata.com/queryHints#>
        PREFIX bd: <http://www.bigdata.com/rdf#>
        PREFIX bds: <http://www.bigdata.com/rdf/search#>
        QueryType: SELECT
        SELECT VarNode(w) ( com.bigdata.rdf.sparql.ast.FunctionNode(VarNode(v))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.w3.org/2006/sparql-functions#sample, valueExpr=com.bigdata.bop.rdf.aggregate.SAMPLE(v)[ AggregateBase.distinct=false]] AS VarNode(S) )

        JoinGroupNode {

        StatementPatternNode(VarNode(s), ConstantNode(TermId(4611686018427387904U)http://example/p), VarNode(v)) [scope=DEFAULT_CONTEXTS]
        JoinGroupNode [optional] {
        StatementPatternNode(VarNode(s), ConstantNode(TermId(-4611686018427387904U)http://example/q), VarNode(w)) [scope=DEFAULT_CONTEXTS]
        }
        }
        group by VarNode(w)
        =========================================
        Optimized AST:

        PREFIX : <http://example/>
        PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
        PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
        PREFIX sesame: <http://www.openrdf.org/schema/sesame#>
        PREFIX owl: <http://www.w3.org/2002/07/owl#>
        PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
        PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
        PREFIX foaf: <http://xmlns.com/foaf/0.1/>
        PREFIX dc: <http://purl.org/dc/elements/1.1/>
        PREFIX hint: <http://www.bigdata.com/queryHints#>
        PREFIX bd: <http://www.bigdata.com/rdf#>
        PREFIX bds: <http://www.bigdata.com/rdf/search#>
        QueryType: SELECT
        includeInferred=true
        SELECT ( VarNode(w) AS VarNode(w) ) ( com.bigdata.rdf.sparql.ast.FunctionNode(VarNode(v))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.w3.org/2006/sparql-functions#sample, valueExpr=com.bigdata.bop.rdf.aggregate.SAMPLE(v)[ AggregateBase.distinct=false]] AS VarNode(S) )

        JoinGroupNode {

        StatementPatternNode(VarNode(s), ConstantNode(TermId(4611686018427387904U)http://example/p), VarNode(v)) [scope=DEFAULT_CONTEXTS]
        AST2BOpBase.estimatedCardinality=2
        AST2BOpBase.originalIndex=POCS
        StatementPatternNode(VarNode(s), ConstantNode(TermId(-4611686018427387904U)http://example/q), VarNode(w)) [scope=DEFAULT_CONTEXTS] [optional]
        AST2BOpBase.estimatedCardinality=1
        AST2BOpBase.originalIndex=POCS
        }
        group by ( VarNode(w) AS VarNode(w) )
        =========================================

        at junit.framework.Assert.fail(Assert.java:57)
        at junit.framework.TestCase.fail(TestCase.java:227)
        at com.bigdata.rdf.sail.tck.BigdataSparqlTest.compareTupleQueryResults(BigdataSparqlTest.java:1395)
        at com.bigdata.rdf.sail.tck.BigdataSparqlTest.runTest(BigdataSparqlTest.java:1161)
        at junit.framework.TestCase.runBare(TestCase.java:141)
        at junit.framework.TestResult$1.protect(TestResult.java:122)
        at junit.framework.TestResult.runProtected(TestResult.java:142)
        at junit.framework.TestResult.run(TestResult.java:125)
        at junit.framework.TestCase.run(TestCase.java:129)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

        "Group-5"(com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1$1)
        junit.framework.AssertionFailedError:
        =========================================
        "Group-5"
        http://www.w3.org/2009/sparql/docs/tests/data-sparql11/grouping/manifest#group05
        =========================================
        Expected results:
        [s=http://example/s1;w="9"^^<http://www.w3.org/2001/XMLSchema#integer>]
        [s=http://example/s2]
        [s=http://example/s3]
        =========================================
        Bigdata results:
        [s=http://example/s1;w="9"^^<http://www.w3.org/2001/XMLSchema#integer>]
        =========================================
        Missing results:
        [s=http://example/s2]
        [s=http://example/s3]
        =========================================
        Query:
        PREFIX : <http://example/>

        SELECT ?s ?w
        {

        ?s ?v .

        OPTIONAL { ?s :q ?w }

        }
        GROUP BY ?s ?w

        =========================================
        Data:
        @prefix : <http://example/> .

        :s1 1 .
        :s3 1 .
        :s1 :q 9 .
        :s2 2 .

        =========================================
        Original AST:

        PREFIX : <http://example/>
        PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
        PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
        PREFIX sesame: <http://www.openrdf.org/schema/sesame#>
        PREFIX owl: <http://www.w3.org/2002/07/owl#>
        PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
        PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
        PREFIX foaf: <http://xmlns.com/foaf/0.1/>
        PREFIX dc: <http://purl.org/dc/elements/1.1/>
        PREFIX hint: <http://www.bigdata.com/queryHints#>
        PREFIX bd: <http://www.bigdata.com/rdf#>
        PREFIX bds: <http://www.bigdata.com/rdf/search#>
        QueryType: SELECT
        SELECT VarNode(s) VarNode(w)

        JoinGroupNode {

        StatementPatternNode(VarNode(s), ConstantNode(TermId(4611686018427387904U)http://example/p), VarNode(v)) [scope=DEFAULT_CONTEXTS]
        JoinGroupNode [optional] {
        StatementPatternNode(VarNode(s), ConstantNode(TermId(-4611686018427387904U)http://example/q), VarNode(w)) [scope=DEFAULT_CONTEXTS]
        }
        }
        group by VarNode(s) VarNode(w)
        =========================================
        Optimized AST:

        PREFIX : <http://example/>
        PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
        PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
        PREFIX sesame: <http://www.openrdf.org/schema/sesame#>
        PREFIX owl: <http://www.w3.org/2002/07/owl#>
        PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
        PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
        PREFIX foaf: <http://xmlns.com/foaf/0.1/>
        PREFIX dc: <http://purl.org/dc/elements/1.1/>
        PREFIX hint: <http://www.bigdata.com/queryHints#>
        PREFIX bd: <http://www.bigdata.com/rdf#>
        PREFIX bds: <http://www.bigdata.com/rdf/search#>
        QueryType: SELECT
        includeInferred=true
        SELECT ( VarNode(s) AS VarNode(s) ) ( VarNode(w) AS VarNode(w) )

        JoinGroupNode {

        StatementPatternNode(VarNode(s), ConstantNode(TermId(4611686018427387904U)http://example/p), VarNode(v)) [scope=DEFAULT_CONTEXTS]
        AST2BOpBase.estimatedCardinality=3
        AST2BOpBase.originalIndex=POCS
        StatementPatternNode(VarNode(s), ConstantNode(TermId(-4611686018427387904U)http://example/q), VarNode(w)) [scope=DEFAULT_CONTEXTS] [optional]
        AST2BOpBase.estimatedCardinality=1
        AST2BOpBase.originalIndex=POCS
        }
        group by ( VarNode(s) AS VarNode(s) ) ( VarNode(w) AS VarNode(w) )
        =========================================

        at junit.framework.Assert.fail(Assert.java:57)
        at junit.framework.TestCase.fail(TestCase.java:227)
        at com.bigdata.rdf.sail.tck.BigdataSparqlTest.compareTupleQueryResults(BigdataSparqlTest.java:1395)
        at com.bigdata.rdf.sail.tck.BigdataSparqlTest.runTest(BigdataSparqlTest.java:1161)
        at junit.framework.TestCase.runBare(TestCase.java:141)
        at junit.framework.TestResult$1.protect(TestResult.java:122)
        at junit.framework.TestResult.runProtected(TestResult.java:142)
        at junit.framework.TestResult.run(TestResult.java:125)
        at junit.framework.TestCase.run(TestCase.java:129)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

        Negation
        "Subtraction with MINUS from a fully bound minuend"(com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1$1)
        java.lang.AssertionError
        at com.bigdata.rdf.sparql.ast.optimizers.ASTBottomUpOptimizer.liftBadlyDesignedLeftJoin(ASTBottomUpOptimizer.java:534)
        at com.bigdata.rdf.sparql.ast.optimizers.ASTBottomUpOptimizer.optimize(ASTBottomUpOptimizer.java:242)
        at com.bigdata.rdf.sparql.ast.optimizers.ASTOptimizerList.optimize(ASTOptimizerList.java:103)
        at com.bigdata.rdf.sparql.ast.eval.AST2BOpUtility.convert(AST2BOpUtility.java:229)
        at com.bigdata.rdf.sparql.ast.eval.ASTEvalHelper.evaluateTupleQuery(ASTEvalHelper.java:244)
        at com.bigdata.rdf.sail.BigdataSailTupleQuery.evaluate(BigdataSailTupleQuery.java:93)
        at com.bigdata.rdf.sail.BigdataSailTupleQuery.evaluate(BigdataSailTupleQuery.java:75)
        at com.bigdata.rdf.sail.tck.BigdataSparqlTest.runTest(BigdataSparqlTest.java:1157)
        at junit.framework.TestCase.runBare(TestCase.java:141)
        at junit.framework.TestResult$1.protect(TestResult.java:122)
        at junit.framework.TestResult.runProtected(TestResult.java:142)
        at junit.framework.TestResult.run(TestResult.java:125)
        at junit.framework.TestCase.run(TestCase.java:129)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

        "Subtraction with MINUS from a partially bound minuend"(com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1$1)
        junit.framework.AssertionFailedError:
        =========================================
        "Subtraction with MINUS from a partially bound minuend"
        http://www.w3.org/2009/sparql/docs/tests/data-sparql11/negation/manifest#partial-minuend
        =========================================
        Expected results:
        [a=http://example/a2;b=http://example/b2]
        [a=http://example/a4]
        =========================================
        Bigdata results:
        [a=http://example/a1;b=http://example/b1]
        [a=http://example/a2;b=http://example/b2]
        [a=http://example/a3;b=http://example/b3]
        [a=http://example/a4]
        =========================================
        Extra results:
        [a=http://example/a1;b=http://example/b1]
        [a=http://example/a3;b=http://example/b3]
        =========================================
        Query:
        prefix : <http://example/>

        select ?a ?b ?c {

        ?a a :Min

        OPTIONAL { ?a :p1 ?b }

        OPTIONAL { ?a :p2 ?c }

        MINUS {

        ?d a :Sub
        OPTIONAL { ?d :q1 ?b }
        OPTIONAL { ?d :q2 ?c }
        }
        }
        order by ?a

        =========================================
        Data:
        @prefix : <http://example/> .

        :a1 a :Min ;
        :p1 :b1 .

        :a2 a :Min ;
        :p1 :b2 .

        :a3 a :Min ;
        :p1 :b3 .

        :a4 a :Min .

        :d1 a :Sub ;
        :q1 :b1 .

        :d3 a :Sub ;
        :q1 :b3 ;
        :q2 :c3 .

        :d4 a :Sub ;
        :q1 :b4 ;
        :q2 :c4 .

        :d5 a :Sub .

        =========================================
        Original AST:

        PREFIX : <http://example/>
        PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
        PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
        PREFIX sesame: <http://www.openrdf.org/schema/sesame#>
        PREFIX owl: <http://www.w3.org/2002/07/owl#>
        PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
        PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
        PREFIX foaf: <http://xmlns.com/foaf/0.1/>
        PREFIX dc: <http://purl.org/dc/elements/1.1/>
        PREFIX hint: <http://www.bigdata.com/queryHints#>
        PREFIX bd: <http://www.bigdata.com/rdf#>
        PREFIX bds: <http://www.bigdata.com/rdf/search#>
        QueryType: SELECT
        SELECT VarNode(a) VarNode(b) VarNode(c)

        JoinGroupNode {

        StatementPatternNode(VarNode(a), ConstantNode(Vocab(14)http://www.w3.org/1999/02/22-rdf-syntax-ns#type), ConstantNode(TermId(576460752303423488U)http://example/Min)) [scope=DEFAULT_CONTEXTS]
        JoinGroupNode [optional] {
        StatementPatternNode(VarNode(a), ConstantNode(TermId(-8646911284551352320U)http://example/p1), VarNode(b)) [scope=DEFAULT_CONTEXTS]
        }
        JoinGroupNode [optional] {
        StatementPatternNode(VarNode(a), ConstantNode(TermId(0U)http://example/p2), VarNode(c)) [scope=DEFAULT_CONTEXTS]
        }
        JoinGroupNode [minus] {
        StatementPatternNode(VarNode(d), ConstantNode(Vocab(14)http://www.w3.org/1999/02/22-rdf-syntax-ns#type), ConstantNode(TermId(2882303761517117440U)http://example/Sub)) [scope=DEFAULT_CONTEXTS]
        JoinGroupNode [optional] {
        StatementPatternNode(VarNode(d), ConstantNode(TermId(5188146770730811392U)http://example/q1), VarNode(b)) [scope=DEFAULT_CONTEXTS]
        }
        JoinGroupNode [optional] {
        StatementPatternNode(VarNode(d), ConstantNode(TermId(-4035225266123964416U)http://example/q2), VarNode(c)) [scope=DEFAULT_CONTEXTS]
        }
        }
        }
        ORDER BY com.bigdata.rdf.sparql.ast.OrderByExpr(VarNode(a))[ ascending=true]
        =========================================
        Optimized AST:

        PREFIX : <http://example/>
        PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
        PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
        PREFIX sesame: <http://www.openrdf.org/schema/sesame#>
        PREFIX owl: <http://www.w3.org/2002/07/owl#>
        PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
        PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
        PREFIX foaf: <http://xmlns.com/foaf/0.1/>
        PREFIX dc: <http://purl.org/dc/elements/1.1/>
        PREFIX hint: <http://www.bigdata.com/queryHints#>
        PREFIX bd: <http://www.bigdata.com/rdf#>
        PREFIX bds: <http://www.bigdata.com/rdf/search#>
        QueryType: SELECT
        includeInferred=true
        SELECT ( VarNode(a) AS VarNode(a) ) ( VarNode(b) AS VarNode(b) ) ( VarNode(c) AS VarNode(c) )

        JoinGroupNode {

        StatementPatternNode(VarNode(a), ConstantNode(Vocab(14)http://www.w3.org/1999/02/22-rdf-syntax-ns#type), ConstantNode(TermId(576460752303423488U)http://example/Min)) [scope=DEFAULT_CONTEXTS]
        AST2BOpBase.estimatedCardinality=4
        AST2BOpBase.originalIndex=POCS
        StatementPatternNode(VarNode(a), ConstantNode(TermId(-8646911284551352320U)http://example/p1), VarNode(b)) [scope=DEFAULT_CONTEXTS] [optional]
        AST2BOpBase.estimatedCardinality=3
        AST2BOpBase.originalIndex=POCS
        StatementPatternNode(VarNode(a), ConstantNode(TermId(0U)http://example/p2), VarNode(c)) [scope=DEFAULT_CONTEXTS] [optional]
        AST2BOpBase.estimatedCardinality=0
        AST2BOpBase.originalIndex=POCS
        }
        ORDER BY com.bigdata.rdf.sparql.ast.OrderByExpr(VarNode(a))[ ascending=true]
        =========================================

        at junit.framework.Assert.fail(Assert.java:57)
        at junit.framework.TestCase.fail(TestCase.java:227)
        at com.bigdata.rdf.sail.tck.BigdataSparqlTest.compareTupleQueryResults(BigdataSparqlTest.java:1395)
        at com.bigdata.rdf.sail.tck.BigdataSparqlTest.runTest(BigdataSparqlTest.java:1161)
        at junit.framework.TestCase.runBare(TestCase.java:141)
        at junit.framework.TestResult$1.protect(TestResult.java:122)
        at junit.framework.TestResult.runProtected(TestResult.java:142)
        at junit.framework.TestResult.run(TestResult.java:125)
        at junit.framework.TestCase.run(TestCase.java:129)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

        Property Path
        " pp02 Star path"(com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1$1)
        junit.framework.AssertionFailedError:
        =========================================
        " pp02 Star path"
        http://www.w3.org/2009/sparql/docs/tests/data-sparql11/property-path/manifest#pp02
        =========================================
        Expected results:
        x=http://www.example.org/instance#a
        x=http://www.example.org/instance#c
        =========================================
        Bigdata results:
        x=http://www.example.org/instance#a
        =========================================
        Missing results:
        x=http://www.example.org/instance#c
        =========================================
        Query:
        prefix ex: <http://www.example.org/schema#>
        prefix in: <http://www.example.org/instance#>

        select * where {
        in:a (ex:p1/ex:p2/ex:p3)* ?x
        }
        =========================================
        Data:
        @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
        @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
        @prefix ex: <http://www.example.org/schema#>.
        @prefix in: <http://www.example.org/instance#>.

        in:a ex:p1 in:b .
        in:b ex:p2 in:a .
        in:a ex:p3 in:c .

        =========================================
        Original AST:

        PREFIX ex: <http://www.example.org/schema#>
        PREFIX in: <http://www.example.org/instance#>
        PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
        PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
        PREFIX sesame: <http://www.openrdf.org/schema/sesame#>
        PREFIX owl: <http://www.w3.org/2002/07/owl#>
        PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
        PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
        PREFIX foaf: <http://xmlns.com/foaf/0.1/>
        PREFIX dc: <http://purl.org/dc/elements/1.1/>
        PREFIX hint: <http://www.bigdata.com/queryHints#>
        PREFIX bd: <http://www.bigdata.com/rdf#>
        PREFIX bds: <http://www.bigdata.com/rdf/search#>
        QueryType: SELECT
        SELECT *

        JoinGroupNode {

        StatementPatternNode(ConstantNode(TermId(4611686018427387904U)http://www.example.org/instance#a), com.bigdata.rdf.sparql.ast.PathNode(PathAlternative), VarNode) [scope=DEFAULT_CONTEXTS]
        }
        =========================================
        Optimized AST:

        PREFIX ex: <http://www.example.org/schema#>
        PREFIX in: <http://www.example.org/instance#>
        PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
        PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
        PREFIX sesame: <http://www.openrdf.org/schema/sesame#>
        PREFIX owl: <http://www.w3.org/2002/07/owl#>
        PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
        PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
        PREFIX foaf: <http://xmlns.com/foaf/0.1/>
        PREFIX dc: <http://purl.org/dc/elements/1.1/>
        PREFIX hint: <http://www.bigdata.com/queryHints#>
        PREFIX bd: <http://www.bigdata.com/rdf#>
        PREFIX bds: <http://www.bigdata.com/rdf/search#>
        QueryType: SELECT
        includeInferred=true
        SELECT VarNode

        JoinGroupNode {

        ArbitraryLengthPathNode(left=ConstantNode(TermId(4611686018427387904U)http://www.example.org/instance#a), right=VarNode) {
        JoinGroupNode {
        StatementPatternNode(VarNode(tVarLeft-379eec94-543f-482e-9ab4-e5fbb1619d16)[anonymous], ConstantNode(TermId(-6917529027641081856U)http://www.example.org/schema#p1), VarNode(-pp-anon-907e3860-dca5-42fb-af41-8cc1b2c36193)[anonymous]) [scope=DEFAULT_CONTEXTS]
        AST2BOpBase.estimatedCardinality=1
        AST2BOpBase.originalIndex=SPOC
        StatementPatternNode(VarNode(-pp-anon-907e3860-dca5-42fb-af41-8cc1b2c36193)[anonymous], ConstantNode(TermId(6917529027641081856U)http://www.example.org/schema#p2), VarNode(-pp-anon-d24efd77-7f06-4fe2-b49e-305b5672073b)[anonymous]) [scope=DEFAULT_CONTEXTS]
        AST2BOpBase.estimatedCardinality=1
        AST2BOpBase.originalIndex=POCS
        StatementPatternNode(VarNode(--pp-anon-d24efd77-7f06-4fe2-b49e-305b5672073b)[anonymous], ConstantNode(TermId(-2305843009213693952U)http://www.example.org/schema#p3), VarNode(-tVarRight-ff9dcb5a-f9b1-4dfb-9e94-76985335cfd8)[anonymous]) [scope=DEFAULT_CONTEXTS]
        AST2BOpBase.estimatedCardinality=1
        AST2BOpBase.originalIndex=POCS
        }
        }
        }
        =========================================

        at junit.framework.Assert.fail(Assert.java:57)
        at junit.framework.TestCase.fail(TestCase.java:227)
        at com.bigdata.rdf.sail.tck.BigdataSparqlTest.compareTupleQueryResults(BigdataSparqlTest.java:1395)
        at com.bigdata.rdf.sail.tck.BigdataSparqlTest.runTest(BigdataSparqlTest.java:1161)
        at junit.framework.TestCase.runBare(TestCase.java:141)
        at junit.framework.TestResult$1.protect(TestResult.java:122)
        at junit.framework.TestResult.runProtected(TestResult.java:142)
        at junit.framework.TestResult.run(TestResult.java:125)
        at junit.framework.TestCase.run(TestCase.java:129)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at junit.framework.TestSuite.runTest(TestSuite.java:255)
        at junit.framework.TestSuite.run(TestSuite.java:250)
        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
        at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

        " pp12 Variable length path and two paths to same target node"(com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1$1)
        junit.framework.AssertionFailedError:
        =========================================
        " pp12 Variable length path and two paths to same target node"
        http://www.w3.org/2009/sparql/docs/tests/data-sparql11/property-path/manifest#pp12
        =========================================
        Expected results:
        x=http://www.example.org/instance#c
        =========================================
        Bigdata results:
        =========================================
        Missing results:
        x=http://www.example.org/instance#c
        =========================================
        Query:
        prefix ex: <http://www.example.org/schema#>
        prefix in: <http://www.example.org/instance#>

        select * where {
        in:a (ex:p1/ex:p2)+ ?x
        }

        =========================================
        Data:
        @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
        @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
        @prefix ex: <http://www.example.org/schema#>.
        @prefix in: <http://www.example.org/instance#>.

        in:a ex:p1 in:b .
        in:b ex:p2 in:c .
        in:a ex:p1 in:d .
        in:d ex:p2 in:c .

        =========================================
        Original AST:

        PREFIX ex: <http://www.example.org/schema#>
        PREFIX in: <http://www.example.org/instance#>
        PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
        PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
        PREFIX sesame: <http://www.openrdf.org/schema/sesame#>
        PREFIX owl: <http://www.w3.org/2002/07/owl#>
        PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
        PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
        PREFIX foaf: <http://xmlns.com/foaf/0.1/>
        PREFIX dc: <http://purl.org/dc/elements/1.1/>
        PREFIX hint: <http://www.bigdata.com/queryHints#>
        PREFIX bd: <http://www.bigdata.com/rdf#>
        PREFIX bds: <http://www.bigdata.com/rdf/search#>
        QueryType: SELECT
        SELECT *

        JoinGroupNode {

        StatementPatternNode(ConstantNode(TermId(4611686018427387904U)http://www.example.org/instance#a), com.bigdata.rdf.sparql.ast.PathNode(PathAlternative), VarNode) [scope=DEFAULT_CONTEXTS]
        }
        =========================================
        Optimized AST:

        PREFIX ex: <http://www.example.org/schema#>
        PREFIX in: <http://www.example.org/instance#>
        PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
        PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
        PREFIX sesame: <http://www.openrdf.org/schema/sesame#>
        PREFIX owl: <http://www.w3.org/2002/07/owl#>
        PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
        PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
        PREFIX foaf: <http://xmlns.com/foaf/0.1/>
        PREFIX dc: <http://purl.org/dc/elements/1.1/>
        PREFIX hint: <http://www.bigdata.com/queryHints#>
        PREFIX bd: <http://www.bigdata.com/rdf#>
        PREFIX bds: <http://www.bigdata.com/rdf/search#>
        QueryType: SELECT
        includeInferred=true
        SELECT VarNode

        JoinGroupNode {

        ArbitraryLengthPathNode(left=ConstantNode(Term

        Show
        bryanthompson bryanthompson added a comment - With the above change, 418 out of 437 tests pass for the embedded federation. The failures are listed below. Commit is to TICKET_1156b branch. {{ { BigdataEmbeddedFederationSparqlTest TestSuite with 418 tests [com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1|example:] com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1 Aggregates "agg empty group"(com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1$1) junit.framework.AssertionFailedError: ========================================= "agg empty group" http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-empty-group2 ========================================= Expected results: [] ========================================= Bigdata results: ========================================= Missing results: [] ========================================= Query: PREFIX ex: <http://example.com/> SELECT ?x (MAX(?value) AS ?max) WHERE \{ ?x ex:p ?value } GROUP BY ?x ========================================= Data: @prefix ex: <http://example.com/> . ========================================= Original AST: PREFIX ex: <http://example.com/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX sesame: <http://www.openrdf.org/schema/sesame#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX fn: <http://www.w3.org/2005/xpath-functions#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX hint: <http://www.bigdata.com/queryHints#> PREFIX bd: <http://www.bigdata.com/rdf#> PREFIX bds: <http://www.bigdata.com/rdf/search#> QueryType: SELECT SELECT VarNode(x) ( com.bigdata.rdf.sparql.ast.FunctionNode(VarNode(value))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.w3.org/2006/sparql-functions#max, valueExpr=com.bigdata.bop.rdf.aggregate.MAX(value)] AS VarNode(max) ) bq. JoinGroupNode \{ StatementPatternNode(VarNode(x), ConstantNode(TermId(0U)[http://example.com/p]), VarNode(value)) [scope=DEFAULT_CONTEXTS] } group by VarNode ========================================= Optimized AST: PREFIX ex: < http://example.com/ > PREFIX rdf: < http://www.w3.org/1999/02/22-rdf-syntax-ns# > PREFIX rdfs: < http://www.w3.org/2000/01/rdf-schema# > PREFIX sesame: < http://www.openrdf.org/schema/sesame# > PREFIX owl: < http://www.w3.org/2002/07/owl# > PREFIX xsd: < http://www.w3.org/2001/XMLSchema# > PREFIX fn: < http://www.w3.org/2005/xpath-functions# > PREFIX foaf: < http://xmlns.com/foaf/0.1/ > PREFIX dc: < http://purl.org/dc/elements/1.1/ > PREFIX hint: < http://www.bigdata.com/queryHints# > PREFIX bd: < http://www.bigdata.com/rdf# > PREFIX bds: < http://www.bigdata.com/rdf/search# > QueryType: SELECT includeInferred=true SELECT ( VarNode AS VarNode ) ( com.bigdata.rdf.sparql.ast.FunctionNode(VarNode(value))[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.w3.org/2006/sparql-functions#max , valueExpr=com.bigdata.bop.rdf.aggregate.MAX(value)] AS VarNode(max) ) JoinGroupNode { StatementPatternNode(VarNode , ConstantNode(TermId(0U) http://example.com/p ), VarNode(value)) [scope=DEFAULT_CONTEXTS] AST2BOpBase.estimatedCardinality=0 AST2BOpBase.originalIndex=POCS } AST2BOpBase.estimatedCardinality=0 group by ( VarNode AS VarNode ) ========================================= at junit.framework.Assert.fail(Assert.java:57) at junit.framework.TestCase.fail(TestCase.java:227) at com.bigdata.rdf.sail.tck.BigdataSparqlTest.compareTupleQueryResults(BigdataSparqlTest.java:1395) at com.bigdata.rdf.sail.tck.BigdataSparqlTest.runTest(BigdataSparqlTest.java:1161) at junit.framework.TestCase.runBare(TestCase.java:141) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) "Aggregate over empty group resulting in a row with unbound variables"(com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1$1) junit.framework.AssertionFailedError: ========================================= "Aggregate over empty group resulting in a row with unbound variables" http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/manifest#agg-empty-group2 ========================================= Expected results: [] ========================================= Bigdata results: ========================================= Missing results: [] ========================================= Query: PREFIX ex: < http://example.com/ > SELECT ?x (MAX(?value) AS ?max) WHERE { ?x ex ?value } GROUP BY ?x ========================================= Data: @prefix ex: < http://example.com/ > . ========================================= Original AST: PREFIX ex: < http://example.com/ > PREFIX rdf: < http://www.w3.org/1999/02/22-rdf-syntax-ns# > PREFIX rdfs: < http://www.w3.org/2000/01/rdf-schema# > PREFIX sesame: < http://www.openrdf.org/schema/sesame# > PREFIX owl: < http://www.w3.org/2002/07/owl# > PREFIX xsd: < http://www.w3.org/2001/XMLSchema# > PREFIX fn: < http://www.w3.org/2005/xpath-functions# > PREFIX foaf: < http://xmlns.com/foaf/0.1/ > PREFIX dc: < http://purl.org/dc/elements/1.1/ > PREFIX hint: < http://www.bigdata.com/queryHints# > PREFIX bd: < http://www.bigdata.com/rdf# > PREFIX bds: < http://www.bigdata.com/rdf/search# > QueryType: SELECT SELECT VarNode ( com.bigdata.rdf.sparql.ast.FunctionNode(VarNode(value))[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.w3.org/2006/sparql-functions#max , valueExpr=com.bigdata.bop.rdf.aggregate.MAX(value)] AS VarNode(max) ) JoinGroupNode { StatementPatternNode(VarNode , ConstantNode(TermId(0U) http://example.com/p ), VarNode(value)) [scope=DEFAULT_CONTEXTS] } group by VarNode ========================================= Optimized AST: PREFIX ex: < http://example.com/ > PREFIX rdf: < http://www.w3.org/1999/02/22-rdf-syntax-ns# > PREFIX rdfs: < http://www.w3.org/2000/01/rdf-schema# > PREFIX sesame: < http://www.openrdf.org/schema/sesame# > PREFIX owl: < http://www.w3.org/2002/07/owl# > PREFIX xsd: < http://www.w3.org/2001/XMLSchema# > PREFIX fn: < http://www.w3.org/2005/xpath-functions# > PREFIX foaf: < http://xmlns.com/foaf/0.1/ > PREFIX dc: < http://purl.org/dc/elements/1.1/ > PREFIX hint: < http://www.bigdata.com/queryHints# > PREFIX bd: < http://www.bigdata.com/rdf# > PREFIX bds: < http://www.bigdata.com/rdf/search# > QueryType: SELECT includeInferred=true SELECT ( VarNode AS VarNode ) ( com.bigdata.rdf.sparql.ast.FunctionNode(VarNode(value))[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.w3.org/2006/sparql-functions#max , valueExpr=com.bigdata.bop.rdf.aggregate.MAX(value)] AS VarNode(max) ) JoinGroupNode { StatementPatternNode(VarNode , ConstantNode(TermId(0U) http://example.com/p ), VarNode(value)) [scope=DEFAULT_CONTEXTS] AST2BOpBase.estimatedCardinality=0 AST2BOpBase.originalIndex=POCS } AST2BOpBase.estimatedCardinality=0 group by ( VarNode AS VarNode ) ========================================= at junit.framework.Assert.fail(Assert.java:57) at junit.framework.TestCase.fail(TestCase.java:227) at com.bigdata.rdf.sail.tck.BigdataSparqlTest.compareTupleQueryResults(BigdataSparqlTest.java:1395) at com.bigdata.rdf.sail.tck.BigdataSparqlTest.runTest(BigdataSparqlTest.java:1161) at junit.framework.TestCase.runBare(TestCase.java:141) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) bindings "Post-query VALUES with OPTIONAL obj-var, 1 row"(com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1$1) junit.framework.AssertionFailedError: ========================================= "Post-query VALUES with OPTIONAL obj-var, 1 row" http://www.w3.org/2009/sparql/docs/tests/data-sparql11/bindings/manifest#values7 ========================================= Expected results: [s=http://example.org/a;o1=http://example.org/b;o2=http://example.org/b] [s=http://example.org/a;o1="alan@example.org";o2=http://example.org/b] [s=http://example.org/a;o1="Alan";o2=http://example.org/b] [s=http://example.org/c;o1="alice@example.org";o2=http://example.org/b] [s=http://example.org/c;o1="Alice";o2=http://example.org/b] ========================================= Bigdata results: [o2=http://example.org/b;s=http://example.org/b;o1=http://example.org/c] [o2=http://example.org/b;s=http://example.org/b;o1="bob@example.org"] [o2=http://example.org/b;s=http://example.org/b;o1="Bob"] [o2=http://example.org/b;s=http://example.org/c;o1="alice@example.org"] [o2=http://example.org/b;s=http://example.org/c;o1="Alice"] [o2=http://example.org/b;s=http://example.org/a;o1=http://example.org/b] [o2=http://example.org/b;s=http://example.org/a;o1="alan@example.org"] [o2=http://example.org/b;s=http://example.org/a;o1="Alan"] ========================================= Extra results: [o2=http://example.org/b;s=http://example.org/b;o1=http://example.org/c] [o2=http://example.org/b;s=http://example.org/b;o1="bob@example.org"] [o2=http://example.org/b;s=http://example.org/b;o1="Bob"] ========================================= Query: bindings with two variables and two sets of values PREFIX : < http://example.org/ > PREFIX foaf: < http://xmlns.com/foaf/0.1/ > SELECT ?s ?o1 ?o2 { ?s ?p1 ?o1 OPTIONAL { ?s foaf:knows ?o2 } } VALUES (?o2) { (:b) } ========================================= Data: @prefix : < http://example.org/ > . @prefix foaf: < http://xmlns.com/foaf/0.1/ > . :a foaf:name "Alan" . :a foaf:mbox "alan@example.org" . :b foaf:name "Bob" . :b foaf:mbox "bob@example.org" . :c foaf:name "Alice" . :c foaf:mbox "alice@example.org" . :a foaf:knows :b . :b foaf:knows :c . ========================================= Original AST: PREFIX : < http://example.org/ > PREFIX foaf: < http://xmlns.com/foaf/0.1/ > PREFIX rdf: < http://www.w3.org/1999/02/22-rdf-syntax-ns# > PREFIX rdfs: < http://www.w3.org/2000/01/rdf-schema# > PREFIX sesame: < http://www.openrdf.org/schema/sesame# > PREFIX owl: < http://www.w3.org/2002/07/owl# > PREFIX xsd: < http://www.w3.org/2001/XMLSchema# > PREFIX fn: < http://www.w3.org/2005/xpath-functions# > PREFIX dc: < http://purl.org/dc/elements/1.1/ > PREFIX hint: < http://www.bigdata.com/queryHints# > PREFIX bd: < http://www.bigdata.com/rdf# > PREFIX bds: < http://www.bigdata.com/rdf/search# > QueryType: SELECT SELECT VarNode(s) VarNode(o1) VarNode(o2) JoinGroupNode { StatementPatternNode(VarNode(s), VarNode(p1), VarNode(o1)) [scope=DEFAULT_CONTEXTS] JoinGroupNode [optional] { StatementPatternNode(VarNode(s), ConstantNode(Vocab(106) http://xmlns.com/foaf/0.1/knows ), VarNode(o2)) [scope=DEFAULT_CONTEXTS] } } BindingsClause ?o2 { { o2=TermId(-4611686018427387904U) http://example.org/b } } ========================================= Optimized AST: PREFIX : < http://example.org/ > PREFIX foaf: < http://xmlns.com/foaf/0.1/ > PREFIX rdf: < http://www.w3.org/1999/02/22-rdf-syntax-ns# > PREFIX rdfs: < http://www.w3.org/2000/01/rdf-schema# > PREFIX sesame: < http://www.openrdf.org/schema/sesame# > PREFIX owl: < http://www.w3.org/2002/07/owl# > PREFIX xsd: < http://www.w3.org/2001/XMLSchema# > PREFIX fn: < http://www.w3.org/2005/xpath-functions# > PREFIX dc: < http://purl.org/dc/elements/1.1/ > PREFIX hint: < http://www.bigdata.com/queryHints# > PREFIX bd: < http://www.bigdata.com/rdf# > PREFIX bds: < http://www.bigdata.com/rdf/search# > QueryType: SELECT includeInferred=true SELECT ( VarNode(s) AS VarNode(s) ) ( VarNode(o1) AS VarNode(o1) ) ( VarNode(o2) AS VarNode(o2) ) JoinGroupNode { StatementPatternNode(VarNode(s), VarNode(p1), VarNode(o1)) [scope=DEFAULT_CONTEXTS] AST2BOpBase.estimatedCardinality=8 AST2BOpBase.originalIndex=SPOC StatementPatternNode(VarNode(s), ConstantNode(Vocab(106) http://xmlns.com/foaf/0.1/knows ), ConstantNode(TermId(-4611686018427387904U) http://example.org/b [var=o2])) [scope=DEFAULT_CONTEXTS] [optional] AST2BOpBase.estimatedCardinality=1 AST2BOpBase.originalIndex=POCS } BindingsClause ?o2 { { o2=TermId(-4611686018427387904U) http://example.org/b } } ========================================= at junit.framework.Assert.fail(Assert.java:57) at junit.framework.TestCase.fail(TestCase.java:227) at com.bigdata.rdf.sail.tck.BigdataSparqlTest.compareTupleQueryResults(BigdataSparqlTest.java:1395) at com.bigdata.rdf.sail.tck.BigdataSparqlTest.runTest(BigdataSparqlTest.java:1161) at junit.framework.TestCase.runBare(TestCase.java:141) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) CONSTRUCT "constructwhere04 - CONSTRUCT WHERE"(com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1$1) junit.framework.AssertionFailedError: ========================================= "constructwhere04 - CONSTRUCT WHERE" http://www.w3.org/2009/sparql/docs/tests/data-sparql11/construct/manifest#constructwhere04 ========================================= Expected results: < http://example.org/s2 , http://example.org/p , http://example.org/o1 > < http://example.org/s2 , http://example.org/p , http://example.org/o2 > < http://example.org/s1 , http://example.org/p , http://example.org/o1 > < http://example.org/s3 , http://example.org/p , http://example.org/o3 > ========================================= Bigdata results: ========================================= Query: PREFIX : < http://example.org/ > CONSTRUCT FROM <data.ttl> WHERE { ?s ?p ?o } ========================================= Data: ========================================= at junit.framework.Assert.fail(Assert.java:57) at junit.framework.TestCase.fail(TestCase.java:227) at com.bigdata.rdf.sail.tck.BigdataSparqlTest.compareGraphs(BigdataSparqlTest.java:1476) at com.bigdata.rdf.sail.tck.BigdataSparqlTest.runTest(BigdataSparqlTest.java:1173) at junit.framework.TestCase.runBare(TestCase.java:141) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Positive Exists "Nested positive exists"(com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1$1) junit.framework.AssertionFailedError: ========================================= "Nested positive exists" http://www.w3.org/2009/sparql/docs/tests/data-sparql11/exists/manifest#exists04 ========================================= Expected results: [s=http://www.example.org/s;p=http://www.example.org/p] ========================================= Bigdata results: ========================================= Missing results: [s=http://www.example.org/s;p=http://www.example.org/p] ========================================= Query: prefix ex: < http://www.example.org/ > select * where { ?s ?p ex:o filter exists { ?s ?p ex:o1 filter exists { ?s ?p ex:o2 } } } ========================================= Data: @prefix : < http://www.example.org/ > . :s :o, :o1, :o2. :t :o1, :o2. ========================================= Original AST: PREFIX ex: < http://www.example.org/ > PREFIX rdf: < http://www.w3.org/1999/02/22-rdf-syntax-ns# > PREFIX rdfs: < http://www.w3.org/2000/01/rdf-schema# > PREFIX sesame: < http://www.openrdf.org/schema/sesame# > PREFIX owl: < http://www.w3.org/2002/07/owl# > PREFIX xsd: < http://www.w3.org/2001/XMLSchema# > PREFIX fn: < http://www.w3.org/2005/xpath-functions# > PREFIX foaf: < http://xmlns.com/foaf/0.1/ > PREFIX dc: < http://purl.org/dc/elements/1.1/ > PREFIX hint: < http://www.bigdata.com/queryHints# > PREFIX bd: < http://www.bigdata.com/rdf# > PREFIX bds: < http://www.bigdata.com/rdf/search# > QueryType: SELECT SELECT * JoinGroupNode { StatementPatternNode(VarNode(s), VarNode(p), ConstantNode(TermId(4611686018427387904U) http://www.example.org/o )) [scope=DEFAULT_CONTEXTS] FILTER( ExistsNode(VarNode(-exists-1))[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.bigdata.com/sparql-1.1-undefined-functionsexists , graphPattern= JoinGroupNode { StatementPatternNode(VarNode(s), VarNode(p), ConstantNode(TermId(-4611686018427387904U) http://www.example.org/o1 )) [scope=DEFAULT_CONTEXTS] FILTER( ExistsNode(VarNode(-exists-2))[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.bigdata.com/sparql-1.1-undefined-functionsexists , graphPattern= JoinGroupNode { StatementPatternNode(VarNode(s), VarNode(p), ConstantNode(TermId(2305843009213693952U) http://www.example.org/o2 )) [scope=DEFAULT_CONTEXTS] }, valueExpr=-exists-2] ) }, valueExpr=-exists-1] ) } ========================================= Optimized AST: PREFIX ex: < http://www.example.org/ > PREFIX rdf: < http://www.w3.org/1999/02/22-rdf-syntax-ns# > PREFIX rdfs: < http://www.w3.org/2000/01/rdf-schema# > PREFIX sesame: < http://www.openrdf.org/schema/sesame# > PREFIX owl: < http://www.w3.org/2002/07/owl# > PREFIX xsd: < http://www.w3.org/2001/XMLSchema# > PREFIX fn: < http://www.w3.org/2005/xpath-functions# > PREFIX foaf: < http://xmlns.com/foaf/0.1/ > PREFIX dc: < http://purl.org/dc/elements/1.1/ > PREFIX hint: < http://www.bigdata.com/queryHints# > PREFIX bd: < http://www.bigdata.com/rdf# > PREFIX bds: < http://www.bigdata.com/rdf/search# > QueryType: SELECT includeInferred=true SELECT VarNode(s) VarNode(p) JoinGroupNode { StatementPatternNode(VarNode(s), VarNode(p), ConstantNode(TermId(4611686018427387904U) http://www.example.org/o )) [scope=DEFAULT_CONTEXTS] AST2BOpBase.estimatedCardinality=1 AST2BOpBase.originalIndex=OCSP QueryType: ASK SELECT VarNode(s) VarNode(p) VarNode(-exists-1) [anonymous] JoinGroupNode { StatementPatternNode(VarNode(s), VarNode(p), ConstantNode(TermId(-4611686018427387904U) http://www.example.org/o1 )) [scope=DEFAULT_CONTEXTS] AST2BOpBase.estimatedCardinality=2 AST2BOpBase.originalIndex=OCSP FILTER( ExistsNode(VarNode(-exists-2))[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.bigdata.com/sparql-1.1-undefined-functionsexists , graphPattern= JoinGroupNode { StatementPatternNode(VarNode(s), VarNode(p), ConstantNode(TermId(2305843009213693952U) http://www.example.org/o2 )) [scope=DEFAULT_CONTEXTS] AST2BOpBase.estimatedCardinality=2 AST2BOpBase.originalIndex=OCSP } AST2BOpBase.estimatedCardinality=2, valueExpr=-exists-2] ) } AST2BOpBase.estimatedCardinality=2 @askVar=-exists-1 FILTER( ExistsNode(VarNode(-exists-1))[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.bigdata.com/sparql-1.1-undefined-functionsexists , graphPattern= JoinGroupNode { StatementPatternNode(VarNode(s), VarNode(p), ConstantNode(TermId(-4611686018427387904U) http://www.example.org/o1 )) [scope=DEFAULT_CONTEXTS] AST2BOpBase.estimatedCardinality=2 AST2BOpBase.originalIndex=OCSP FILTER( ExistsNode(VarNode(-exists-2))[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.bigdata.com/sparql-1.1-undefined-functionsexists , graphPattern= JoinGroupNode { StatementPatternNode(VarNode(s), VarNode(p), ConstantNode(TermId(2305843009213693952U) http://www.example.org/o2 )) [scope=DEFAULT_CONTEXTS] AST2BOpBase.estimatedCardinality=2 AST2BOpBase.originalIndex=OCSP } AST2BOpBase.estimatedCardinality=2, valueExpr=-exists-2] ) } AST2BOpBase.estimatedCardinality=2, valueExpr=-exists-1] ) } ========================================= at junit.framework.Assert.fail(Assert.java:57) at junit.framework.TestCase.fail(TestCase.java:227) at com.bigdata.rdf.sail.tck.BigdataSparqlTest.compareTupleQueryResults(BigdataSparqlTest.java:1395) at com.bigdata.rdf.sail.tck.BigdataSparqlTest.runTest(BigdataSparqlTest.java:1161) at junit.framework.TestCase.runBare(TestCase.java:141) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Built-in Functions "BNODE str "(com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1$1) junit.framework.AssertionFailedError: ========================================= "BNODE str " http://www.w3.org/2009/sparql/docs/tests/data-sparql11/functions/manifest#bnode01 ========================================= Expected results: [s1="BAZ";s2="BAZ";b1=_:b0;b2=_:b0] [s1="foo";s2="foo";b1=_:b1;b2=_:b1] [s1="foo";s2="BAZ";b1=_:b2;b2=_:b3] [s1="BAZ";s2="foo";b1=_:b4;b2=_:b5] ========================================= Bigdata results: [s1="foo";s2="foo";b1=_:-bnode-func-foo;b2=_:-bnode-func-foo] [s1="BAZ";s2="foo";b1=_:-bnode-func-BAZ;b2=_:-bnode-func-foo] [s1="foo";s2="BAZ";b1=_:-bnode-func-foo;b2=_:-bnode-func-BAZ] [s1="BAZ";s2="BAZ";b1=_:-bnode-func-BAZ;b2=_:-bnode-func-BAZ] ========================================= Missing results: [s1="BAZ";s2="BAZ";b1=_:b0;b2=_:b0] [s1="foo";s2="foo";b1=_:b1;b2=_:b1] [s1="foo";s2="BAZ";b1=_:b2;b2=_:b3] [s1="BAZ";s2="foo";b1=_:b4;b2=_:b5] ========================================= Extra results: [s1="foo";s2="foo";b1=_:-bnode-func-foo;b2=_:-bnode-func-foo] [s1="BAZ";s2="foo";b1=_:-bnode-func-BAZ;b2=_:-bnode-func-foo] [s1="foo";s2="BAZ";b1=_:-bnode-func-foo;b2=_:-bnode-func-BAZ] [s1="BAZ";s2="BAZ";b1=_:-bnode-func-BAZ;b2=_:-bnode-func-BAZ] ========================================= Query: PREFIX : < http://example.org/ > PREFIX xsd: < http://www.w3.org/2001/XMLSchema# > SELECT ?s1 ?s2 (BNODE(?s1) AS ?b1) (BNODE(?s2) AS ?b2) WHERE { ?a :str ?s1 . ?b :str ?s2 . FILTER (?a = :s1 | ?a = :s3) FILTER (?b = :s1 | ?b = :s3) } ========================================= Data: @prefix xsd: < http://www.w3.org/2001/XMLSchema# > . @prefix : < http://example.org/ > . numeric data :n4 :num -2 . :n1 :num -1 . :n2 :num -1.6 . :n3 :num 1.1 . :n5 :num 2.5 . string data :s1 :str "foo" . :s2 :str "bar"@en . :s3 :str "BAZ" . :s4 :str "???" . :s5 :str "100%" . :s6 :str "abc"^^xsd:string . :s7 :str "DEF"^^xsd:string . date data :d1 :date "2010-06-21T11:28:01Z"^^xsd:dateTime . :d2 :date "2010-12-21T15:38:02-08:00"^^xsd:dateTime . :d3 :date "2008-06-20T23:59:00Z"^^xsd:dateTime . :d4 :date "2011-02-01T01:02:03"^^xsd:dateTime . ========================================= Original AST: PREFIX : < http://example.org/ > PREFIX xsd: < http://www.w3.org/2001/XMLSchema# > PREFIX rdf: < http://www.w3.org/1999/02/22-rdf-syntax-ns# > PREFIX rdfs: < http://www.w3.org/2000/01/rdf-schema# > PREFIX sesame: < http://www.openrdf.org/schema/sesame# > PREFIX owl: < http://www.w3.org/2002/07/owl# > PREFIX fn: < http://www.w3.org/2005/xpath-functions# > PREFIX foaf: < http://xmlns.com/foaf/0.1/ > PREFIX dc: < http://purl.org/dc/elements/1.1/ > PREFIX hint: < http://www.bigdata.com/queryHints# > PREFIX bd: < http://www.bigdata.com/rdf# > PREFIX bds: < http://www.bigdata.com/rdf/search# > QueryType: SELECT SELECT VarNode(s1) VarNode(s2) ( com.bigdata.rdf.sparql.ast.FunctionNode(VarNode(s1))[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.bigdata.com/sparql-1.1-undefined-functionsbnode , valueExpr=com.bigdata.rdf.internal.constraints.BNodeBOp(s1)[ IVValueExpression.namespace="BNODE str ".lex, IVValueExpression.timestamp=-1]] AS VarNode(b1) ) ( com.bigdata.rdf.sparql.ast.FunctionNode(VarNode(s2))[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.bigdata.com/sparql-1.1-undefined-functionsbnode , valueExpr=com.bigdata.rdf.internal.constraints.BNodeBOp(s2)[ IVValueExpression.namespace="BNODE str ".lex, IVValueExpression.timestamp=-1]] AS VarNode(b2) ) JoinGroupNode { StatementPatternNode(VarNode(a), ConstantNode(TermId(2882303761517117440U) http://example.org/str ), VarNode(s1)) [scope=DEFAULT_CONTEXTS] StatementPatternNode(VarNode(b), ConstantNode(TermId(2882303761517117440U) http://example.org/str ), VarNode(s2)) [scope=DEFAULT_CONTEXTS] FILTER( FunctionNode(FunctionNode(VarNode(a),ConstantNode(TermId(-5764607523034234880U) http://example.org/s1 ))[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.w3.org/2005/xpath-functions#equal-to , valueExpr=com.bigdata.rdf.internal.constraints.CompareBOp(a,TermId(-5764607523034234880U) http://example.org/s1 )[ CompareBOp.op=EQ]],FunctionNode(VarNode(a),ConstantNode(TermId(-1152921504606846976U) http://example.org/s3 ))[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.w3.org/2005/xpath-functions#equal-to , valueExpr=com.bigdata.rdf.internal.constraints.CompareBOp(a,TermId(-1152921504606846976U) http://example.org/s3 )[ CompareBOp.op=EQ]])[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.w3.org/2006/sparql-functions#logical-or , valueExpr=com.bigdata.rdf.internal.constraints.OrBOp(com.bigdata.rdf.internal.constraints.CompareBOp(a,TermId(-5764607523034234880U) http://example.org/s1 )[ CompareBOp.op=EQ],com.bigdata.rdf.internal.constraints.CompareBOp(a,TermId(-1152921504606846976U) http://example.org/s3 )[ CompareBOp.op=EQ])] ) FILTER( FunctionNode(FunctionNode(VarNode(b),ConstantNode(TermId(-5764607523034234880U) http://example.org/s1 ))[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.w3.org/2005/xpath-functions#equal-to , valueExpr=com.bigdata.rdf.internal.constraints.CompareBOp(b,TermId(-5764607523034234880U) http://example.org/s1 )[ CompareBOp.op=EQ]],FunctionNode(VarNode(b),ConstantNode(TermId(-1152921504606846976U) http://example.org/s3 ))[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.w3.org/2005/xpath-functions#equal-to , valueExpr=com.bigdata.rdf.internal.constraints.CompareBOp(b,TermId(-1152921504606846976U) http://example.org/s3 )[ CompareBOp.op=EQ]])[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.w3.org/2006/sparql-functions#logical-or , valueExpr=com.bigdata.rdf.internal.constraints.OrBOp(com.bigdata.rdf.internal.constraints.CompareBOp(b,TermId(-5764607523034234880U) http://example.org/s1 )[ CompareBOp.op=EQ],com.bigdata.rdf.internal.constraints.CompareBOp(b,TermId(-1152921504606846976U) http://example.org/s3 )[ CompareBOp.op=EQ])] ) } ========================================= Optimized AST: PREFIX : < http://example.org/ > PREFIX xsd: < http://www.w3.org/2001/XMLSchema# > PREFIX rdf: < http://www.w3.org/1999/02/22-rdf-syntax-ns# > PREFIX rdfs: < http://www.w3.org/2000/01/rdf-schema# > PREFIX sesame: < http://www.openrdf.org/schema/sesame# > PREFIX owl: < http://www.w3.org/2002/07/owl# > PREFIX fn: < http://www.w3.org/2005/xpath-functions# > PREFIX foaf: < http://xmlns.com/foaf/0.1/ > PREFIX dc: < http://purl.org/dc/elements/1.1/ > PREFIX hint: < http://www.bigdata.com/queryHints# > PREFIX bd: < http://www.bigdata.com/rdf# > PREFIX bds: < http://www.bigdata.com/rdf/search# > QueryType: SELECT includeInferred=true SELECT ( VarNode(s1) AS VarNode(s1) ) ( VarNode(s2) AS VarNode(s2) ) ( com.bigdata.rdf.sparql.ast.FunctionNode(VarNode(s1))[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.bigdata.com/sparql-1.1-undefined-functionsbnode , valueExpr=com.bigdata.rdf.internal.constraints.BNodeBOp(s1)[ IVValueExpression.namespace="BNODE str ".lex, IVValueExpression.timestamp=-1]] AS VarNode(b1) ) ( com.bigdata.rdf.sparql.ast.FunctionNode(VarNode(s2))[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.bigdata.com/sparql-1.1-undefined-functionsbnode , valueExpr=com.bigdata.rdf.internal.constraints.BNodeBOp(s2)[ IVValueExpression.namespace="BNODE str ".lex, IVValueExpression.timestamp=-1]] AS VarNode(b2) ) JoinGroupNode { StatementPatternNode(VarNode(a), ConstantNode(TermId(2882303761517117440U) http://example.org/str ), VarNode(s1)) [scope=DEFAULT_CONTEXTS] filters=1 FILTER( FunctionNode(FunctionNode(VarNode(a),ConstantNode(TermId(-5764607523034234880U) http://example.org/s1 ))[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.w3.org/2005/xpath-functions#equal-to , valueExpr=com.bigdata.rdf.internal.constraints.CompareBOp(a,TermId(-5764607523034234880U) http://example.org/s1 )[ CompareBOp.op=EQ]],FunctionNode(VarNode(a),ConstantNode(TermId(-1152921504606846976U) http://example.org/s3 ))[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.w3.org/2005/xpath-functions#equal-to , valueExpr=com.bigdata.rdf.internal.constraints.CompareBOp(a,TermId(-1152921504606846976U) http://example.org/s3 )[ CompareBOp.op=EQ]])[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.w3.org/2006/sparql-functions#logical-or , valueExpr=com.bigdata.rdf.internal.constraints.OrBOp(com.bigdata.rdf.internal.constraints.CompareBOp(a,TermId(-5764607523034234880U) http://example.org/s1 )[ CompareBOp.op=EQ],com.bigdata.rdf.internal.constraints.CompareBOp(a,TermId(-1152921504606846976U) http://example.org/s3 )[ CompareBOp.op=EQ])] ) AST2BOpBase.estimatedCardinality=7 AST2BOpBase.originalIndex=POCS StatementPatternNode(VarNode(b), ConstantNode(TermId(2882303761517117440U) http://example.org/str ), VarNode(s2)) [scope=DEFAULT_CONTEXTS] filters=1 FILTER( FunctionNode(FunctionNode(VarNode(b),ConstantNode(TermId(-5764607523034234880U) http://example.org/s1 ))[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.w3.org/2005/xpath-functions#equal-to , valueExpr=com.bigdata.rdf.internal.constraints.CompareBOp(b,TermId(-5764607523034234880U) http://example.org/s1 )[ CompareBOp.op=EQ]],FunctionNode(VarNode(b),ConstantNode(TermId(-1152921504606846976U) http://example.org/s3 ))[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.w3.org/2005/xpath-functions#equal-to , valueExpr=com.bigdata.rdf.internal.constraints.CompareBOp(b,TermId(-1152921504606846976U) http://example.org/s3 )[ CompareBOp.op=EQ]])[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.w3.org/2006/sparql-functions#logical-or , valueExpr=com.bigdata.rdf.internal.constraints.OrBOp(com.bigdata.rdf.internal.constraints.CompareBOp(b,TermId(-5764607523034234880U) http://example.org/s1 )[ CompareBOp.op=EQ],com.bigdata.rdf.internal.constraints.CompareBOp(b,TermId(-1152921504606846976U) http://example.org/s3 )[ CompareBOp.op=EQ])] ) AST2BOpBase.estimatedCardinality=7 AST2BOpBase.originalIndex=POCS } ========================================= at junit.framework.Assert.fail(Assert.java:57) at junit.framework.TestCase.fail(TestCase.java:227) at com.bigdata.rdf.sail.tck.BigdataSparqlTest.compareTupleQueryResults(BigdataSparqlTest.java:1395) at com.bigdata.rdf.sail.tck.BigdataSparqlTest.runTest(BigdataSparqlTest.java:1161) at junit.framework.TestCase.runBare(TestCase.java:141) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Grouping "Group-3"(com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1$1) junit.framework.AssertionFailedError: ========================================= "Group-3" http://www.w3.org/2009/sparql/docs/tests/data-sparql11/grouping/manifest#group03 ========================================= Expected results: [w="9"^^<http://www.w3.org/2001/XMLSchema#integer>;S="1"^^<http://www.w3.org/2001/XMLSchema#integer>] S="2"^^<http://www.w3.org/2001/XMLSchema#integer> ========================================= Bigdata results: [w="9"^^<http://www.w3.org/2001/XMLSchema#integer>;S="1"^^<http://www.w3.org/2001/XMLSchema#integer>] ========================================= Missing results: S="2"^^<http://www.w3.org/2001/XMLSchema#integer> ========================================= Query: PREFIX : < http://example/ > SELECT ?w (SAMPLE(?v) AS ?S) { ?s ?v . OPTIONAL { ?s :q ?w } } GROUP BY ?w ========================================= Data: @prefix : < http://example/ > . :s1 1 . :s1 :q 9 . :s2 2 . ========================================= Original AST: PREFIX : < http://example/ > PREFIX rdf: < http://www.w3.org/1999/02/22-rdf-syntax-ns# > PREFIX rdfs: < http://www.w3.org/2000/01/rdf-schema# > PREFIX sesame: < http://www.openrdf.org/schema/sesame# > PREFIX owl: < http://www.w3.org/2002/07/owl# > PREFIX xsd: < http://www.w3.org/2001/XMLSchema# > PREFIX fn: < http://www.w3.org/2005/xpath-functions# > PREFIX foaf: < http://xmlns.com/foaf/0.1/ > PREFIX dc: < http://purl.org/dc/elements/1.1/ > PREFIX hint: < http://www.bigdata.com/queryHints# > PREFIX bd: < http://www.bigdata.com/rdf# > PREFIX bds: < http://www.bigdata.com/rdf/search# > QueryType: SELECT SELECT VarNode(w) ( com.bigdata.rdf.sparql.ast.FunctionNode(VarNode(v))[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.w3.org/2006/sparql-functions#sample , valueExpr=com.bigdata.bop.rdf.aggregate.SAMPLE(v)[ AggregateBase.distinct=false]] AS VarNode(S) ) JoinGroupNode { StatementPatternNode(VarNode(s), ConstantNode(TermId(4611686018427387904U) http://example/p ), VarNode(v)) [scope=DEFAULT_CONTEXTS] JoinGroupNode [optional] { StatementPatternNode(VarNode(s), ConstantNode(TermId(-4611686018427387904U) http://example/q ), VarNode(w)) [scope=DEFAULT_CONTEXTS] } } group by VarNode(w) ========================================= Optimized AST: PREFIX : < http://example/ > PREFIX rdf: < http://www.w3.org/1999/02/22-rdf-syntax-ns# > PREFIX rdfs: < http://www.w3.org/2000/01/rdf-schema# > PREFIX sesame: < http://www.openrdf.org/schema/sesame# > PREFIX owl: < http://www.w3.org/2002/07/owl# > PREFIX xsd: < http://www.w3.org/2001/XMLSchema# > PREFIX fn: < http://www.w3.org/2005/xpath-functions# > PREFIX foaf: < http://xmlns.com/foaf/0.1/ > PREFIX dc: < http://purl.org/dc/elements/1.1/ > PREFIX hint: < http://www.bigdata.com/queryHints# > PREFIX bd: < http://www.bigdata.com/rdf# > PREFIX bds: < http://www.bigdata.com/rdf/search# > QueryType: SELECT includeInferred=true SELECT ( VarNode(w) AS VarNode(w) ) ( com.bigdata.rdf.sparql.ast.FunctionNode(VarNode(v))[ FunctionNode.scalarVals=null, FunctionNode.functionURI= http://www.w3.org/2006/sparql-functions#sample , valueExpr=com.bigdata.bop.rdf.aggregate.SAMPLE(v)[ AggregateBase.distinct=false]] AS VarNode(S) ) JoinGroupNode { StatementPatternNode(VarNode(s), ConstantNode(TermId(4611686018427387904U) http://example/p ), VarNode(v)) [scope=DEFAULT_CONTEXTS] AST2BOpBase.estimatedCardinality=2 AST2BOpBase.originalIndex=POCS StatementPatternNode(VarNode(s), ConstantNode(TermId(-4611686018427387904U) http://example/q ), VarNode(w)) [scope=DEFAULT_CONTEXTS] [optional] AST2BOpBase.estimatedCardinality=1 AST2BOpBase.originalIndex=POCS } group by ( VarNode(w) AS VarNode(w) ) ========================================= at junit.framework.Assert.fail(Assert.java:57) at junit.framework.TestCase.fail(TestCase.java:227) at com.bigdata.rdf.sail.tck.BigdataSparqlTest.compareTupleQueryResults(BigdataSparqlTest.java:1395) at com.bigdata.rdf.sail.tck.BigdataSparqlTest.runTest(BigdataSparqlTest.java:1161) at junit.framework.TestCase.runBare(TestCase.java:141) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) "Group-5"(com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1$1) junit.framework.AssertionFailedError: ========================================= "Group-5" http://www.w3.org/2009/sparql/docs/tests/data-sparql11/grouping/manifest#group05 ========================================= Expected results: [s=http://example/s1;w="9"^^<http://www.w3.org/2001/XMLSchema#integer>] [s=http://example/s2] [s=http://example/s3] ========================================= Bigdata results: [s=http://example/s1;w="9"^^<http://www.w3.org/2001/XMLSchema#integer>] ========================================= Missing results: [s=http://example/s2] [s=http://example/s3] ========================================= Query: PREFIX : < http://example/ > SELECT ?s ?w { ?s ?v . OPTIONAL { ?s :q ?w } } GROUP BY ?s ?w ========================================= Data: @prefix : < http://example/ > . :s1 1 . :s3 1 . :s1 :q 9 . :s2 2 . ========================================= Original AST: PREFIX : < http://example/ > PREFIX rdf: < http://www.w3.org/1999/02/22-rdf-syntax-ns# > PREFIX rdfs: < http://www.w3.org/2000/01/rdf-schema# > PREFIX sesame: < http://www.openrdf.org/schema/sesame# > PREFIX owl: < http://www.w3.org/2002/07/owl# > PREFIX xsd: < http://www.w3.org/2001/XMLSchema# > PREFIX fn: < http://www.w3.org/2005/xpath-functions# > PREFIX foaf: < http://xmlns.com/foaf/0.1/ > PREFIX dc: < http://purl.org/dc/elements/1.1/ > PREFIX hint: < http://www.bigdata.com/queryHints# > PREFIX bd: < http://www.bigdata.com/rdf# > PREFIX bds: < http://www.bigdata.com/rdf/search# > QueryType: SELECT SELECT VarNode(s) VarNode(w) JoinGroupNode { StatementPatternNode(VarNode(s), ConstantNode(TermId(4611686018427387904U) http://example/p ), VarNode(v)) [scope=DEFAULT_CONTEXTS] JoinGroupNode [optional] { StatementPatternNode(VarNode(s), ConstantNode(TermId(-4611686018427387904U) http://example/q ), VarNode(w)) [scope=DEFAULT_CONTEXTS] } } group by VarNode(s) VarNode(w) ========================================= Optimized AST: PREFIX : < http://example/ > PREFIX rdf: < http://www.w3.org/1999/02/22-rdf-syntax-ns# > PREFIX rdfs: < http://www.w3.org/2000/01/rdf-schema# > PREFIX sesame: < http://www.openrdf.org/schema/sesame# > PREFIX owl: < http://www.w3.org/2002/07/owl# > PREFIX xsd: < http://www.w3.org/2001/XMLSchema# > PREFIX fn: < http://www.w3.org/2005/xpath-functions# > PREFIX foaf: < http://xmlns.com/foaf/0.1/ > PREFIX dc: < http://purl.org/dc/elements/1.1/ > PREFIX hint: < http://www.bigdata.com/queryHints# > PREFIX bd: < http://www.bigdata.com/rdf# > PREFIX bds: < http://www.bigdata.com/rdf/search# > QueryType: SELECT includeInferred=true SELECT ( VarNode(s) AS VarNode(s) ) ( VarNode(w) AS VarNode(w) ) JoinGroupNode { StatementPatternNode(VarNode(s), ConstantNode(TermId(4611686018427387904U) http://example/p ), VarNode(v)) [scope=DEFAULT_CONTEXTS] AST2BOpBase.estimatedCardinality=3 AST2BOpBase.originalIndex=POCS StatementPatternNode(VarNode(s), ConstantNode(TermId(-4611686018427387904U) http://example/q ), VarNode(w)) [scope=DEFAULT_CONTEXTS] [optional] AST2BOpBase.estimatedCardinality=1 AST2BOpBase.originalIndex=POCS } group by ( VarNode(s) AS VarNode(s) ) ( VarNode(w) AS VarNode(w) ) ========================================= at junit.framework.Assert.fail(Assert.java:57) at junit.framework.TestCase.fail(TestCase.java:227) at com.bigdata.rdf.sail.tck.BigdataSparqlTest.compareTupleQueryResults(BigdataSparqlTest.java:1395) at com.bigdata.rdf.sail.tck.BigdataSparqlTest.runTest(BigdataSparqlTest.java:1161) at junit.framework.TestCase.runBare(TestCase.java:141) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Negation "Subtraction with MINUS from a fully bound minuend"(com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1$1) java.lang.AssertionError at com.bigdata.rdf.sparql.ast.optimizers.ASTBottomUpOptimizer.liftBadlyDesignedLeftJoin(ASTBottomUpOptimizer.java:534) at com.bigdata.rdf.sparql.ast.optimizers.ASTBottomUpOptimizer.optimize(ASTBottomUpOptimizer.java:242) at com.bigdata.rdf.sparql.ast.optimizers.ASTOptimizerList.optimize(ASTOptimizerList.java:103) at com.bigdata.rdf.sparql.ast.eval.AST2BOpUtility.convert(AST2BOpUtility.java:229) at com.bigdata.rdf.sparql.ast.eval.ASTEvalHelper.evaluateTupleQuery(ASTEvalHelper.java:244) at com.bigdata.rdf.sail.BigdataSailTupleQuery.evaluate(BigdataSailTupleQuery.java:93) at com.bigdata.rdf.sail.BigdataSailTupleQuery.evaluate(BigdataSailTupleQuery.java:75) at com.bigdata.rdf.sail.tck.BigdataSparqlTest.runTest(BigdataSparqlTest.java:1157) at junit.framework.TestCase.runBare(TestCase.java:141) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) "Subtraction with MINUS from a partially bound minuend"(com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1$1) junit.framework.AssertionFailedError: ========================================= "Subtraction with MINUS from a partially bound minuend" http://www.w3.org/2009/sparql/docs/tests/data-sparql11/negation/manifest#partial-minuend ========================================= Expected results: [a=http://example/a2;b=http://example/b2] [a=http://example/a4] ========================================= Bigdata results: [a=http://example/a1;b=http://example/b1] [a=http://example/a2;b=http://example/b2] [a=http://example/a3;b=http://example/b3] [a=http://example/a4] ========================================= Extra results: [a=http://example/a1;b=http://example/b1] [a=http://example/a3;b=http://example/b3] ========================================= Query: prefix : < http://example/ > select ?a ?b ?c { ?a a :Min OPTIONAL { ?a :p1 ?b } OPTIONAL { ?a :p2 ?c } MINUS { ?d a :Sub OPTIONAL { ?d :q1 ?b } OPTIONAL { ?d :q2 ?c } } } order by ?a ========================================= Data: @prefix : < http://example/ > . :a1 a :Min ; :p1 :b1 . :a2 a :Min ; :p1 :b2 . :a3 a :Min ; :p1 :b3 . :a4 a :Min . :d1 a :Sub ; :q1 :b1 . :d3 a :Sub ; :q1 :b3 ; :q2 :c3 . :d4 a :Sub ; :q1 :b4 ; :q2 :c4 . :d5 a :Sub . ========================================= Original AST: PREFIX : < http://example/ > PREFIX rdf: < http://www.w3.org/1999/02/22-rdf-syntax-ns# > PREFIX rdfs: < http://www.w3.org/2000/01/rdf-schema# > PREFIX sesame: < http://www.openrdf.org/schema/sesame# > PREFIX owl: < http://www.w3.org/2002/07/owl# > PREFIX xsd: < http://www.w3.org/2001/XMLSchema# > PREFIX fn: < http://www.w3.org/2005/xpath-functions# > PREFIX foaf: < http://xmlns.com/foaf/0.1/ > PREFIX dc: < http://purl.org/dc/elements/1.1/ > PREFIX hint: < http://www.bigdata.com/queryHints# > PREFIX bd: < http://www.bigdata.com/rdf# > PREFIX bds: < http://www.bigdata.com/rdf/search# > QueryType: SELECT SELECT VarNode(a) VarNode(b) VarNode(c) JoinGroupNode { StatementPatternNode(VarNode(a), ConstantNode(Vocab(14) http://www.w3.org/1999/02/22-rdf-syntax-ns#type ), ConstantNode(TermId(576460752303423488U) http://example/Min )) [scope=DEFAULT_CONTEXTS] JoinGroupNode [optional] { StatementPatternNode(VarNode(a), ConstantNode(TermId(-8646911284551352320U) http://example/p1 ), VarNode(b)) [scope=DEFAULT_CONTEXTS] } JoinGroupNode [optional] { StatementPatternNode(VarNode(a), ConstantNode(TermId(0U) http://example/p2 ), VarNode(c)) [scope=DEFAULT_CONTEXTS] } JoinGroupNode [minus] { StatementPatternNode(VarNode(d), ConstantNode(Vocab(14) http://www.w3.org/1999/02/22-rdf-syntax-ns#type ), ConstantNode(TermId(2882303761517117440U) http://example/Sub )) [scope=DEFAULT_CONTEXTS] JoinGroupNode [optional] { StatementPatternNode(VarNode(d), ConstantNode(TermId(5188146770730811392U) http://example/q1 ), VarNode(b)) [scope=DEFAULT_CONTEXTS] } JoinGroupNode [optional] { StatementPatternNode(VarNode(d), ConstantNode(TermId(-4035225266123964416U) http://example/q2 ), VarNode(c)) [scope=DEFAULT_CONTEXTS] } } } ORDER BY com.bigdata.rdf.sparql.ast.OrderByExpr(VarNode(a))[ ascending=true] ========================================= Optimized AST: PREFIX : < http://example/ > PREFIX rdf: < http://www.w3.org/1999/02/22-rdf-syntax-ns# > PREFIX rdfs: < http://www.w3.org/2000/01/rdf-schema# > PREFIX sesame: < http://www.openrdf.org/schema/sesame# > PREFIX owl: < http://www.w3.org/2002/07/owl# > PREFIX xsd: < http://www.w3.org/2001/XMLSchema# > PREFIX fn: < http://www.w3.org/2005/xpath-functions# > PREFIX foaf: < http://xmlns.com/foaf/0.1/ > PREFIX dc: < http://purl.org/dc/elements/1.1/ > PREFIX hint: < http://www.bigdata.com/queryHints# > PREFIX bd: < http://www.bigdata.com/rdf# > PREFIX bds: < http://www.bigdata.com/rdf/search# > QueryType: SELECT includeInferred=true SELECT ( VarNode(a) AS VarNode(a) ) ( VarNode(b) AS VarNode(b) ) ( VarNode(c) AS VarNode(c) ) JoinGroupNode { StatementPatternNode(VarNode(a), ConstantNode(Vocab(14) http://www.w3.org/1999/02/22-rdf-syntax-ns#type ), ConstantNode(TermId(576460752303423488U) http://example/Min )) [scope=DEFAULT_CONTEXTS] AST2BOpBase.estimatedCardinality=4 AST2BOpBase.originalIndex=POCS StatementPatternNode(VarNode(a), ConstantNode(TermId(-8646911284551352320U) http://example/p1 ), VarNode(b)) [scope=DEFAULT_CONTEXTS] [optional] AST2BOpBase.estimatedCardinality=3 AST2BOpBase.originalIndex=POCS StatementPatternNode(VarNode(a), ConstantNode(TermId(0U) http://example/p2 ), VarNode(c)) [scope=DEFAULT_CONTEXTS] [optional] AST2BOpBase.estimatedCardinality=0 AST2BOpBase.originalIndex=POCS } ORDER BY com.bigdata.rdf.sparql.ast.OrderByExpr(VarNode(a))[ ascending=true] ========================================= at junit.framework.Assert.fail(Assert.java:57) at junit.framework.TestCase.fail(TestCase.java:227) at com.bigdata.rdf.sail.tck.BigdataSparqlTest.compareTupleQueryResults(BigdataSparqlTest.java:1395) at com.bigdata.rdf.sail.tck.BigdataSparqlTest.runTest(BigdataSparqlTest.java:1161) at junit.framework.TestCase.runBare(TestCase.java:141) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Property Path " pp02 Star path"(com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1$1) junit.framework.AssertionFailedError: ========================================= " pp02 Star path" http://www.w3.org/2009/sparql/docs/tests/data-sparql11/property-path/manifest#pp02 ========================================= Expected results: x=http://www.example.org/instance#a x=http://www.example.org/instance#c ========================================= Bigdata results: x=http://www.example.org/instance#a ========================================= Missing results: x=http://www.example.org/instance#c ========================================= Query: prefix ex: < http://www.example.org/schema# > prefix in: < http://www.example.org/instance# > select * where { in:a (ex:p1/ex:p2/ex:p3)* ?x } ========================================= Data: @prefix rdf: < http://www.w3.org/1999/02/22-rdf-syntax-ns# > . @prefix rdfs: < http://www.w3.org/2000/01/rdf-schema# > . @prefix ex: < http://www.example.org/schema# >. @prefix in: < http://www.example.org/instance# >. in:a ex:p1 in:b . in:b ex:p2 in:a . in:a ex:p3 in:c . ========================================= Original AST: PREFIX ex: < http://www.example.org/schema# > PREFIX in: < http://www.example.org/instance# > PREFIX rdf: < http://www.w3.org/1999/02/22-rdf-syntax-ns# > PREFIX rdfs: < http://www.w3.org/2000/01/rdf-schema# > PREFIX sesame: < http://www.openrdf.org/schema/sesame# > PREFIX owl: < http://www.w3.org/2002/07/owl# > PREFIX xsd: < http://www.w3.org/2001/XMLSchema# > PREFIX fn: < http://www.w3.org/2005/xpath-functions# > PREFIX foaf: < http://xmlns.com/foaf/0.1/ > PREFIX dc: < http://purl.org/dc/elements/1.1/ > PREFIX hint: < http://www.bigdata.com/queryHints# > PREFIX bd: < http://www.bigdata.com/rdf# > PREFIX bds: < http://www.bigdata.com/rdf/search# > QueryType: SELECT SELECT * JoinGroupNode { StatementPatternNode(ConstantNode(TermId(4611686018427387904U) http://www.example.org/instance#a ), com.bigdata.rdf.sparql.ast.PathNode(PathAlternative), VarNode ) [scope=DEFAULT_CONTEXTS] } ========================================= Optimized AST: PREFIX ex: < http://www.example.org/schema# > PREFIX in: < http://www.example.org/instance# > PREFIX rdf: < http://www.w3.org/1999/02/22-rdf-syntax-ns# > PREFIX rdfs: < http://www.w3.org/2000/01/rdf-schema# > PREFIX sesame: < http://www.openrdf.org/schema/sesame# > PREFIX owl: < http://www.w3.org/2002/07/owl# > PREFIX xsd: < http://www.w3.org/2001/XMLSchema# > PREFIX fn: < http://www.w3.org/2005/xpath-functions# > PREFIX foaf: < http://xmlns.com/foaf/0.1/ > PREFIX dc: < http://purl.org/dc/elements/1.1/ > PREFIX hint: < http://www.bigdata.com/queryHints# > PREFIX bd: < http://www.bigdata.com/rdf# > PREFIX bds: < http://www.bigdata.com/rdf/search# > QueryType: SELECT includeInferred=true SELECT VarNode JoinGroupNode { ArbitraryLengthPathNode(left=ConstantNode(TermId(4611686018427387904U) http://www.example.org/instance#a ), right=VarNode ) { JoinGroupNode { StatementPatternNode(VarNode( tVarLeft-379eec94-543f-482e-9ab4-e5fbb1619d16) [anonymous] , ConstantNode(TermId(-6917529027641081856U) http://www.example.org/schema#p1 ), VarNode( -pp-anon-907e3860-dca5-42fb-af41-8cc1b2c36193) [anonymous] ) [scope=DEFAULT_CONTEXTS] AST2BOpBase.estimatedCardinality=1 AST2BOpBase.originalIndex=SPOC StatementPatternNode(VarNode(- pp-anon-907e3860-dca5-42fb-af41-8cc1b2c36193) [anonymous] , ConstantNode(TermId(6917529027641081856U) http://www.example.org/schema#p2 ), VarNode( -pp-anon-d24efd77-7f06-4fe2-b49e-305b5672073b) [anonymous] ) [scope=DEFAULT_CONTEXTS] AST2BOpBase.estimatedCardinality=1 AST2BOpBase.originalIndex=POCS StatementPatternNode(VarNode(--pp-anon-d24efd77-7f06-4fe2-b49e-305b5672073b) [anonymous] , ConstantNode(TermId(-2305843009213693952U) http://www.example.org/schema#p3 ), VarNode(-tVarRight-ff9dcb5a-f9b1-4dfb-9e94-76985335cfd8) [anonymous] ) [scope=DEFAULT_CONTEXTS] AST2BOpBase.estimatedCardinality=1 AST2BOpBase.originalIndex=POCS } } } ========================================= at junit.framework.Assert.fail(Assert.java:57) at junit.framework.TestCase.fail(TestCase.java:227) at com.bigdata.rdf.sail.tck.BigdataSparqlTest.compareTupleQueryResults(BigdataSparqlTest.java:1395) at com.bigdata.rdf.sail.tck.BigdataSparqlTest.runTest(BigdataSparqlTest.java:1161) at junit.framework.TestCase.runBare(TestCase.java:141) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) " pp12 Variable length path and two paths to same target node"(com.bigdata.rdf.sail.tck.BigdataEmbeddedFederationSparqlTest$1$1) junit.framework.AssertionFailedError: ========================================= " pp12 Variable length path and two paths to same target node" http://www.w3.org/2009/sparql/docs/tests/data-sparql11/property-path/manifest#pp12 ========================================= Expected results: x=http://www.example.org/instance#c ========================================= Bigdata results: ========================================= Missing results: x=http://www.example.org/instance#c ========================================= Query: prefix ex: < http://www.example.org/schema# > prefix in: < http://www.example.org/instance# > select * where { in:a (ex:p1/ex:p2)+ ?x } ========================================= Data: @prefix rdf: < http://www.w3.org/1999/02/22-rdf-syntax-ns# > . @prefix rdfs: < http://www.w3.org/2000/01/rdf-schema# > . @prefix ex: < http://www.example.org/schema# >. @prefix in: < http://www.example.org/instance# >. in:a ex:p1 in:b . in:b ex:p2 in:c . in:a ex:p1 in:d . in:d ex:p2 in:c . ========================================= Original AST: PREFIX ex: < http://www.example.org/schema# > PREFIX in: < http://www.example.org/instance# > PREFIX rdf: < http://www.w3.org/1999/02/22-rdf-syntax-ns# > PREFIX rdfs: < http://www.w3.org/2000/01/rdf-schema# > PREFIX sesame: < http://www.openrdf.org/schema/sesame# > PREFIX owl: < http://www.w3.org/2002/07/owl# > PREFIX xsd: < http://www.w3.org/2001/XMLSchema# > PREFIX fn: < http://www.w3.org/2005/xpath-functions# > PREFIX foaf: < http://xmlns.com/foaf/0.1/ > PREFIX dc: < http://purl.org/dc/elements/1.1/ > PREFIX hint: < http://www.bigdata.com/queryHints# > PREFIX bd: < http://www.bigdata.com/rdf# > PREFIX bds: < http://www.bigdata.com/rdf/search# > QueryType: SELECT SELECT * JoinGroupNode { StatementPatternNode(ConstantNode(TermId(4611686018427387904U) http://www.example.org/instance#a ), com.bigdata.rdf.sparql.ast.PathNode(PathAlternative), VarNode ) [scope=DEFAULT_CONTEXTS] } ========================================= Optimized AST: PREFIX ex: < http://www.example.org/schema# > PREFIX in: < http://www.example.org/instance# > PREFIX rdf: < http://www.w3.org/1999/02/22-rdf-syntax-ns# > PREFIX rdfs: < http://www.w3.org/2000/01/rdf-schema# > PREFIX sesame: < http://www.openrdf.org/schema/sesame# > PREFIX owl: < http://www.w3.org/2002/07/owl# > PREFIX xsd: < http://www.w3.org/2001/XMLSchema# > PREFIX fn: < http://www.w3.org/2005/xpath-functions# > PREFIX foaf: < http://xmlns.com/foaf/0.1/ > PREFIX dc: < http://purl.org/dc/elements/1.1/ > PREFIX hint: < http://www.bigdata.com/queryHints# > PREFIX bd: < http://www.bigdata.com/rdf# > PREFIX bds: < http://www.bigdata.com/rdf/search# > QueryType: SELECT includeInferred=true SELECT VarNode JoinGroupNode { ArbitraryLengthPathNode(left=ConstantNode(Term

          People

          • Assignee:
            beebs Brad Bebee
            Reporter:
            bryanthompson bryanthompson
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: