From: <tho...@us...> - 2012-04-09 10:28:55
|
Revision: 6261 http://bigdata.svn.sourceforge.net/bigdata/?rev=6261&view=rev Author: thompsonbry Date: 2012-04-09 10:28:48 +0000 (Mon, 09 Apr 2012) Log Message: ----------- Added a variant of a query to show the correctly rewritten structure. Modified Paths: -------------- branches/BIGDATA_RELEASE_1_2_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/TestTCK.java Added Paths: ----------- branches/BIGDATA_RELEASE_1_2_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/two-nested-opt2.rq Modified: branches/BIGDATA_RELEASE_1_2_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/TestTCK.java =================================================================== --- branches/BIGDATA_RELEASE_1_2_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/TestTCK.java 2012-04-09 10:27:43 UTC (rev 6260) +++ branches/BIGDATA_RELEASE_1_2_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/TestTCK.java 2012-04-09 10:28:48 UTC (rev 6261) @@ -243,7 +243,24 @@ ).runTest(); } + + /** + * This is the same query, except we are running the rewritten version of + * the query (that is, the version that we have to produce for the query + * above with the badly designed left join). + * + */ + public void test_two_nested_opt2() throws Exception { + new TestHelper( + "two-nested-opt", // testURI, + "two-nested-opt2.rq",// queryFileURL + "two-nested-opt.ttl",// dataFileURL + "two-nested-opt.srx"// resultFileURL + ).runTest(); + + } + /** * This case is not a problem. It provides a contrast to * {@link #test_filter_nested_2()} Added: branches/BIGDATA_RELEASE_1_2_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/two-nested-opt2.rq =================================================================== --- branches/BIGDATA_RELEASE_1_2_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/two-nested-opt2.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_2_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/two-nested-opt2.rq 2012-04-09 10:28:48 UTC (rev 6261) @@ -0,0 +1,16 @@ +PREFIX : <http://example/> + +SELECT * +WITH { + SELECT ?w ?v { + :x3 :q ?w . + OPTIONAL { :x2 :p ?v } + } +} as %namedSet1 +{ + :x1 :p ?v . + OPTIONAL + { + INCLUDE %namedSet1 + } +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |