From: <jer...@us...> - 2013-09-04 19:56:50
|
Revision: 7388 http://bigdata.svn.sourceforge.net/bigdata/?rev=7388&view=rev Author: jeremy_carroll Date: 2013-09-04 19:56:42 +0000 (Wed, 04 Sep 2013) Log Message: ----------- various tests for trac 734 e.g. SELECT ?A ?B WHERE { ?A rdf:type / rdfs:subClassOf * <os:ClassA> ; rdf:value ?B . ?B rdf:type / rdfs:subClassOf * <os:ClassB> } and SELECT (<os:0> as ?A) WHERE { <eg:a> <eg:b> ? <eg:a> } Added Paths: ----------- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/TestTwoPropertyPaths734.java branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-both.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-first.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-none.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-second.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-workaround2.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-workaround3.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-workaround4.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B.srx branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B.ttl branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-C-opt.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-C-plus.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-C-plus.srx branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-C-star.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-C.srx branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-C.ttl branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-both.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-first.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-none.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-second.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734.srx branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734.ttl Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/TestTwoPropertyPaths734.java =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/TestTwoPropertyPaths734.java (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/TestTwoPropertyPaths734.java 2013-09-04 19:56:42 UTC (rev 7388) @@ -0,0 +1,169 @@ +/** + +Copyright (C) SYSTAP, LLC 2013. All rights reserved. + +Contact: + SYSTAP, LLC + 4501 Tower Road + Greensboro, NC 27410 + lic...@bi... + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; version 2 of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ + +package com.bigdata.rdf.sparql.ast.eval; + + + +/** + * Tests concerning: + * +SELECT ?A +WHERE { + ?A rdf:type / rdfs:subClassOf * <os:ClassA> ; + rdf:value ?B . + ?B rdf:type / rdfs:subClassOf * <os:ClassB> . +} + +There is a work-around which is to replace a * with a UNION of a zero and a + + + + { + { ?B rdf:type <os:ClassB> } + UNION + { ?B rdf:type / rdfs:subClassOf + <os:ClassB> + } + } + +In property-path-734-B-none.rq, this is taken as the following variant: + + { + { ?A rdf:type / rdfs:subClassOf ? <os:ClassA> } + UNION + { ?A rdf:type / rdfs:subClassOf / rdfs:subClassOf + <os:ClassA> + } + } + +and in property-path-734-B-workaround2.rq it is taken to (the broken): + + + ?A rdf:type / ( rdfs:subClassOf ? | ( rdfs:subClassOf + / rdfs:subClassOf ) ) + <os:ClassA> . + + +and in property-path-734-B-workaround3.rq it is taken to (the working): + + + ?A ( ( rdf:type / rdfs:subClassOf ? ) | ( rdf:type / rdfs:subClassOf + / rdfs:subClassOf ) ) + <os:ClassA> . + + + */ +public class TestTwoPropertyPaths734 extends AbstractDataDrivenSPARQLTestCase { + + /** + * + */ + public TestTwoPropertyPaths734() { + } + + /** + * @param name + */ + public TestTwoPropertyPaths734(String name) { + super(name); + } + + private void property_path_test(String name) throws Exception { + + new TestHelper( + "property-path-734-" + name, // testURI, + "property-path-734-" + name + ".rq", // queryFileURL + "property-path-734.ttl", // dataFileURL + "property-path-734.srx" // resultFileURL, + ).runTest(); + } + + private void property_path_using_workaround_test(String name) throws Exception { + + new TestHelper( + "property-path-734-B-" + name, // testURI, + "property-path-734-B-" + name + ".rq", // queryFileURL + "property-path-734-B.ttl", // dataFileURL + "property-path-734-B.srx" // resultFileURL, + ).runTest(); + } + public void test_no_property_paths() throws Exception { + property_path_test("none"); + } + public void test_first_property_path() throws Exception { + property_path_test("first"); + } + public void test_second_property_path() throws Exception { + property_path_test("second"); + } + public void test_both_property_paths() throws Exception { + property_path_test("both"); + } + public void test_no_using_workaround_property_paths() throws Exception { + property_path_using_workaround_test("none"); + } + public void test_first_using_workaround_property_path() throws Exception { + property_path_using_workaround_test("first"); + } + public void test_second_using_workaround_property_path() throws Exception { + property_path_using_workaround_test("second"); + } + public void test_both_using_workaround_property_paths() throws Exception { + property_path_using_workaround_test("both"); + } + public void test_both_using_workaround2_property_paths() throws Exception { + property_path_using_workaround_test("workaround2"); + } + public void test_both_using_workaround3_property_paths() throws Exception { + property_path_using_workaround_test("workaround3"); + } + public void test_both_using_workaround4_property_paths() throws Exception { + property_path_using_workaround_test("workaround4"); + } + + + public void test_minimal_star_734() throws Exception { + + new TestHelper( + "property-path-734-C", // testURI, + "property-path-734-C-star.rq", // queryFileURL + "property-path-734-C.ttl", // dataFileURL + "property-path-734-C.srx" // resultFileURL, + ).runTest(); + } + public void test_minimal_opt_734() throws Exception { + + new TestHelper( + "property-path-734-C", // testURI, + "property-path-734-C-opt.rq", // queryFileURL + "property-path-734-C.ttl", // dataFileURL + "property-path-734-C.srx" // resultFileURL, + ).runTest(); + } + public void test_minimal_plus_734() throws Exception { + + new TestHelper( + "property-path-734-C", // testURI, + "property-path-734-C-plus.rq", // queryFileURL + "property-path-734-C.ttl", // dataFileURL + "property-path-734-C-plus.srx" // resultFileURL, + ).runTest(); + } +} Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-both.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-both.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-both.rq 2013-09-04 19:56:42 UTC (rev 7388) @@ -0,0 +1,12 @@ + +prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> +prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> + +SELECT ?A ?B +WHERE { + ?A rdf:type / rdfs:subClassOf * + <os:ClassA> ; + rdf:value ?B . + ?B rdf:type / rdfs:subClassOf * + <os:ClassB> +} Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-first.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-first.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-first.rq 2013-09-04 19:56:42 UTC (rev 7388) @@ -0,0 +1,16 @@ + +prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> +prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> + +SELECT ?A ?B +WHERE { + ?A rdf:type / rdfs:subClassOf * + <os:ClassA> ; + rdf:value ?B . + { + { ?B rdf:type <os:ClassB> } + UNION + { ?B rdf:type / rdfs:subClassOf + <os:ClassB> + } + } +} Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-none.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-none.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-none.rq 2013-09-04 19:56:42 UTC (rev 7388) @@ -0,0 +1,20 @@ + +prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> +prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> + +SELECT ?A ?B +WHERE { + { + { ?A rdf:type / rdfs:subClassOf ? <os:ClassA> } + UNION + { ?A rdf:type / rdfs:subClassOf / rdfs:subClassOf + <os:ClassA> + } + } + ?A rdf:value ?B . + { + { ?B rdf:type / rdfs:subClassOf ? <os:ClassB> } + UNION + { ?B rdf:type / rdfs:subClassOf / rdfs:subClassOf + <os:ClassB> + } + } +} Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-second.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-second.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-second.rq 2013-09-04 19:56:42 UTC (rev 7388) @@ -0,0 +1,16 @@ + +prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> +prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> + +SELECT ?A ?B +WHERE { + { + { ?A rdf:type <os:ClassA> } + UNION + { ?A rdf:type / rdfs:subClassOf + <os:ClassA> + } + } + ?A rdf:value ?B . + ?B rdf:type / rdfs:subClassOf * + <os:ClassB> +} Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-workaround2.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-workaround2.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-workaround2.rq 2013-09-04 19:56:42 UTC (rev 7388) @@ -0,0 +1,12 @@ + +prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> +prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> + +SELECT ?A ?B +WHERE { + ?A rdf:type / ( rdfs:subClassOf ? | ( rdfs:subClassOf + / rdfs:subClassOf ) ) + <os:ClassA> . + ?A rdf:value ?B . + ?B rdf:type / ( rdfs:subClassOf ? | ( rdfs:subClassOf + / rdfs:subClassOf ) ) + <os:ClassB> +} Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-workaround3.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-workaround3.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-workaround3.rq 2013-09-04 19:56:42 UTC (rev 7388) @@ -0,0 +1,12 @@ + +prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> +prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> + +SELECT ?A ?B +WHERE { + ?A ( ( rdf:type / rdfs:subClassOf ? ) | ( rdf:type / rdfs:subClassOf + / rdfs:subClassOf ) ) + <os:ClassA> . + ?A rdf:value ?B . + ?B ( ( rdf:type / rdfs:subClassOf ? ) | ( rdf:type / rdfs:subClassOf + / rdfs:subClassOf ) ) + <os:ClassB> +} Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-workaround4.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-workaround4.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B-workaround4.rq 2013-09-04 19:56:42 UTC (rev 7388) @@ -0,0 +1,12 @@ + +prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> +prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> + +SELECT ?A ?B +WHERE { + ?A rdf:type / ( ( rdfs:noSuchProperty ? / rdfs:subClassOf ? ) | ( rdfs:noSuchProperty ? / rdfs:subClassOf / rdfs:subClassOf + ) ) + <os:ClassA> . + ?A rdf:value ?B . + ?B rdf:type / ( ( rdfs:noSuchProperty ? / rdfs:subClassOf ? ) | ( rdfs:noSuchProperty ? / rdfs:subClassOf / rdfs:subClassOf + ) ) + <os:ClassB> +} Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B.srx =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B.srx (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B.srx 2013-09-04 19:56:42 UTC (rev 7388) @@ -0,0 +1,88 @@ +<?xml version="1.0"?> +<sparql + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:xs="http://www.w3.org/2001/XMLSchema#" + xmlns="http://www.w3.org/2005/sparql-results#" > + <head> + <variable name="A"/> + <variable name="B"/> + </head> + <results> + <result> + <binding name="A"> + <uri>os:0</uri> + </binding> + <binding name="B"> + <uri>os:1</uri> + </binding> + </result> + <result> + <binding name="A"> + <uri>os:0</uri> + </binding> + <binding name="B"> + <uri>os:1a</uri> + </binding> + </result> + <result> + <binding name="A"> + <uri>os:0</uri> + </binding> + <binding name="B"> + <uri>os:1b</uri> + </binding> + </result> + + + <result> + <binding name="A"> + <uri>os:0a</uri> + </binding> + <binding name="B"> + <uri>os:1</uri> + </binding> + </result> + <result> + <binding name="A"> + <uri>os:0a</uri> + </binding> + <binding name="B"> + <uri>os:1a</uri> + </binding> + </result> + <result> + <binding name="A"> + <uri>os:0a</uri> + </binding> + <binding name="B"> + <uri>os:1b</uri> + </binding> + </result> + + + <result> + <binding name="A"> + <uri>os:0b</uri> + </binding> + <binding name="B"> + <uri>os:1</uri> + </binding> + </result> + <result> + <binding name="A"> + <uri>os:0b</uri> + </binding> + <binding name="B"> + <uri>os:1a</uri> + </binding> + </result> + <result> + <binding name="A"> + <uri>os:0b</uri> + </binding> + <binding name="B"> + <uri>os:1b</uri> + </binding> + </result> + </results> +</sparql> Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B.ttl =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B.ttl (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-B.ttl 2013-09-04 19:56:42 UTC (rev 7388) @@ -0,0 +1,24 @@ +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . + +<os:0> rdf:type <os:ClassA> . +<os:0> rdf:value <os:1> . +<os:0> rdf:value <os:1a> . +<os:0> rdf:value <os:1b> . +<os:1> rdf:type <os:ClassB> . + +<os:0a> rdf:type <os:ClassAa> . +<os:ClassAa> rdfs:subClassOf <os:ClassA> . +<os:0a> rdf:value <os:1> . +<os:0a> rdf:value <os:1a> . +<os:0a> rdf:value <os:1b> . +<os:1a> rdf:type <os:ClassBa> . +<os:ClassBa> rdfs:subClassOf <os:ClassB> . + +<os:0b> rdf:type <os:ClassAb> . +<os:ClassAb> rdfs:subClassOf <os:ClassAa> . +<os:0b> rdf:value <os:1> . +<os:0b> rdf:value <os:1a> . +<os:0b> rdf:value <os:1b> . +<os:1b> rdf:type <os:ClassBb> . +<os:ClassBb> rdfs:subClassOf <os:ClassBa> . \ No newline at end of file Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-C-opt.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-C-opt.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-C-opt.rq 2013-09-04 19:56:42 UTC (rev 7388) @@ -0,0 +1,5 @@ + +SELECT (<os:0> as ?A) +WHERE { + <eg:a> <eg:b> ? <eg:a> +} Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-C-plus.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-C-plus.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-C-plus.rq 2013-09-04 19:56:42 UTC (rev 7388) @@ -0,0 +1,5 @@ + +SELECT (<os:0> as ?A) +WHERE { + <eg:a> <eg:b> + <eg:a> +} Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-C-plus.srx =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-C-plus.srx (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-C-plus.srx 2013-09-04 19:56:42 UTC (rev 7388) @@ -0,0 +1,11 @@ +<?xml version="1.0"?> +<sparql + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:xs="http://www.w3.org/2001/XMLSchema#" + xmlns="http://www.w3.org/2005/sparql-results#" > + <head> + <variable name="A"/> + </head> + <results> + </results> +</sparql> Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-C-star.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-C-star.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-C-star.rq 2013-09-04 19:56:42 UTC (rev 7388) @@ -0,0 +1,5 @@ + +SELECT (<os:0> as ?A) +WHERE { + <eg:a> <eg:b> * <eg:a> +} Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-C.srx =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-C.srx (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-C.srx 2013-09-04 19:56:42 UTC (rev 7388) @@ -0,0 +1,16 @@ +<?xml version="1.0"?> +<sparql + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:xs="http://www.w3.org/2001/XMLSchema#" + xmlns="http://www.w3.org/2005/sparql-results#" > + <head> + <variable name="A"/> + </head> + <results> + <result> + <binding name="A"> + <uri>os:0</uri> + </binding> + </result> + </results> +</sparql> Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-C.ttl =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-C.ttl (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-C.ttl 2013-09-04 19:56:42 UTC (rev 7388) @@ -0,0 +1 @@ +# no data \ No newline at end of file Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-both.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-both.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-both.rq 2013-09-04 19:56:42 UTC (rev 7388) @@ -0,0 +1,12 @@ + +prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> +prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> + +SELECT ?A +WHERE { + ?A rdf:type / rdfs:subClassOf * + <os:ClassA> ; + rdf:value ?B . + ?B rdf:type / rdfs:subClassOf * + <os:ClassB> +} Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-first.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-first.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-first.rq 2013-09-04 19:56:42 UTC (rev 7388) @@ -0,0 +1,12 @@ + +prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> +prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> + +SELECT ?A +WHERE { + ?A rdf:type / rdfs:subClassOf * + <os:ClassA> ; + rdf:value ?B . + ?B rdf:type # / rdfs:subClassOf * + <os:ClassB> +} Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-none.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-none.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-none.rq 2013-09-04 19:56:42 UTC (rev 7388) @@ -0,0 +1,12 @@ + +prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> +prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> + +SELECT ?A +WHERE { + ?A rdf:type # / rdfs:subClassOf * + <os:ClassA> ; + rdf:value ?B . + ?B rdf:type # / rdfs:subClassOf * + <os:ClassB> +} Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-second.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-second.rq (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734-second.rq 2013-09-04 19:56:42 UTC (rev 7388) @@ -0,0 +1,12 @@ + +prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> +prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> + +SELECT ?A +WHERE { + ?A rdf:type # / rdfs:subClassOf * + <os:ClassA> ; + rdf:value ?B . + ?B rdf:type / rdfs:subClassOf * + <os:ClassB> +} Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734.srx =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734.srx (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734.srx 2013-09-04 19:56:42 UTC (rev 7388) @@ -0,0 +1,16 @@ +<?xml version="1.0"?> +<sparql + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:xs="http://www.w3.org/2001/XMLSchema#" + xmlns="http://www.w3.org/2005/sparql-results#" > + <head> + <variable name="A"/> + </head> + <results> + <result> + <binding name="A"> + <uri>os:0</uri> + </binding> + </result> + </results> +</sparql> Added: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734.ttl =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734.ttl (rev 0) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/property-path-734.ttl 2013-09-04 19:56:42 UTC (rev 7388) @@ -0,0 +1,3 @@ +<os:0> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <os:ClassA> . +<os:0> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> <os:1> . +<os:1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <os:ClassB> . \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |