# HG changeset patch # User Stella Giannakopoulou # Date 1418919839 -7200 # Node ID 373b66ce4884ecc6e12e114776836707b2dbdb38 # Parent 3776ff96efea50f3686a8272a2c3d70d9f2bf773 tests for bug #78 diff -r 3776ff96efea -r 373b66ce4884 testsuite/src/test/java/eu/earthobservatory/testsuite/bugs/BindBug78.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testsuite/src/test/java/eu/earthobservatory/testsuite/bugs/BindBug78.java Thu Dec 18 18:23:59 2014 +0200 @@ -0,0 +1,18 @@ +/** + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * Copyright (C) 2011, 2012, 2013, 2014 Pyravlos Team + * + * http://strabon.di.uoa.gr/ + */ +package eu.earthobservatory.testsuite.bugs; + +import eu.earthobservatory.testsuite.utils.TemplateTest; + +/** + * Test for Bug 78 (http://bug.strabon.di.uoa.gr/ticket/78) + * @author Stella Giannakopoulou + */ +public class BindBug78 extends TemplateTest{ } diff -r 3776ff96efea -r 373b66ce4884 testsuite/src/test/resources/bugs/BindBug78/BindBug78.nt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testsuite/src/test/resources/bugs/BindBug78/BindBug78.nt Thu Dec 18 18:23:59 2014 +0200 @@ -0,0 +1,5 @@ + " Polygon((0 0, 1 0, 1 1, 0 1, 0 0)) "^^. + " Polygon((0 0, 2 0, 2 2, 0 2 , 0 0)) "^^. + " Polygon((1 1, 3 1, 3 2, 1 2, 1 1)) "^^. + " Polygon((3 1, 4 1, 4 2, 3 2, 3 1)) "^^. + " Polygon((3 1, 4 1, 4 2, 3 2, 3 1)) "^^. diff -r 3776ff96efea -r 373b66ce4884 testsuite/src/test/resources/bugs/BindBug78/BindFILTERBug78.rq --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testsuite/src/test/resources/bugs/BindBug78/BindFILTERBug78.rq Thu Dec 18 18:23:59 2014 +0200 @@ -0,0 +1,8 @@ +SELECT ?x1 ?x2 +WHERE +{ + ?x1 geo:asWKT ?g1 . + ?x2 geo:asWKT ?g2 . + BIND(strdf:intersection(?g1, ?g2) as ?inter) + FILTER(strdf:area(?inter) > 0.001) +} \ No newline at end of file diff -r 3776ff96efea -r 373b66ce4884 testsuite/src/test/resources/bugs/BindBug78/BindFILTERBug78.srx --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testsuite/src/test/resources/bugs/BindBug78/BindFILTERBug78.srx Thu Dec 18 18:23:59 2014 +0200 @@ -0,0 +1,97 @@ + + + + + + + + + + http://example.org#geomA + + + http://example.org#geomB + + + + + http://example.org#geomA + + + http://example.org#geomA + + + + + http://example.org#geomB + + + http://example.org#geomC + + + + + http://example.org#geomB + + + http://example.org#geomB + + + + + http://example.org#geomB + + + http://example.org#geomA + + + + + http://example.org#geomC + + + http://example.org#geomC + + + + + http://example.org#geomC + + + http://example.org#geomB + + + + + http://example.org#geomD + + + http://example.org#geomE + + + + + http://example.org#geomE + + + http://example.org#geomE + + + + + http://example.org#geomD + + + http://example.org#geomD + + + + + http://example.org#geomE + + + http://example.org#geomD + + + + diff -r 3776ff96efea -r 373b66ce4884 testsuite/src/test/resources/bugs/BindBug78/BindProjectionBug78.rq --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testsuite/src/test/resources/bugs/BindBug78/BindProjectionBug78.rq Thu Dec 18 18:23:59 2014 +0200 @@ -0,0 +1,7 @@ +SELECT (strdf:area(?inter) as ?area) +WHERE +{ + ?x1 geo:asWKT ?g1 . + ?x2 geo:asWKT ?g2 . + BIND(strdf:intersection(?g1, ?g2) as ?inter) +} \ No newline at end of file diff -r 3776ff96efea -r 373b66ce4884 testsuite/src/test/resources/bugs/BindBug78/BindProjectionBug78.srx --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testsuite/src/test/resources/bugs/BindBug78/BindProjectionBug78.srx Thu Dec 18 18:23:59 2014 +0200 @@ -0,0 +1,133 @@ + + + + + + + + + 0.0 + + + + + 0.0 + + + + + 0.0 + + + + + 1.0 + + + + + 1.0 + + + + + 0.0 + + + + + 0.0 + + + + + 1.0 + + + + + 4.0 + + + + + 1.0 + + + + + 0.0 + + + + + 0.0 + + + + + 2.0 + + + + + 1.0 + + + + + 0.0 + + + + + 1.0 + + + + + 1.0 + + + + + 1.0 + + + + + 1.0 + + + + + 0.0 + + + + + 0.0 + + + + + 0.0 + + + + + 0.0 + + + + + 0.0 + + + + + 0.0 + + + + \ No newline at end of file