Strabon
changeset 1449:373b66ce4884
tests for bug #78
author | Stella Giannakopoulou <sgian@di.uoa.gr> |
---|---|
date | Thu Dec 18 18:23:59 2014 +0200 (2014-12-18) |
parents | 3776ff96efea |
children | 5f2026e24c32 |
files | testsuite/src/test/java/eu/earthobservatory/testsuite/bugs/BindBug78.java testsuite/src/test/resources/bugs/BindBug78/BindBug78.nt testsuite/src/test/resources/bugs/BindBug78/BindFILTERBug78.rq testsuite/src/test/resources/bugs/BindBug78/BindFILTERBug78.srx testsuite/src/test/resources/bugs/BindBug78/BindProjectionBug78.rq testsuite/src/test/resources/bugs/BindBug78/BindProjectionBug78.srx |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/testsuite/src/test/java/eu/earthobservatory/testsuite/bugs/BindBug78.java Thu Dec 18 18:23:59 2014 +0200 1.3 @@ -0,0 +1,18 @@ 1.4 +/** 1.5 + * This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + * 1.9 + * Copyright (C) 2011, 2012, 2013, 2014 Pyravlos Team 1.10 + * 1.11 + * http://strabon.di.uoa.gr/ 1.12 + */ 1.13 +package eu.earthobservatory.testsuite.bugs; 1.14 + 1.15 +import eu.earthobservatory.testsuite.utils.TemplateTest; 1.16 + 1.17 +/** 1.18 + * Test for Bug 78 (http://bug.strabon.di.uoa.gr/ticket/78) 1.19 + * @author Stella Giannakopoulou <sgian@di.uoa.gr> 1.20 + */ 1.21 +public class BindBug78 extends TemplateTest{ }
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/testsuite/src/test/resources/bugs/BindBug78/BindBug78.nt Thu Dec 18 18:23:59 2014 +0200 2.3 @@ -0,0 +1,5 @@ 2.4 +<http://example.org#geomA> <http://www.opengis.net/ont/geosparql#asWKT> " <http://www.opengis.net/def/crs/OGC/1.3/CRS84> Polygon((0 0, 1 0, 1 1, 0 1, 0 0)) "^^<http://www.opengis.net/ont/geosparql#wktLiteral>. 2.5 +<http://example.org#geomB> <http://www.opengis.net/ont/geosparql#asWKT> " <http://www.opengis.net/def/crs/OGC/1.3/CRS84> Polygon((0 0, 2 0, 2 2, 0 2 , 0 0)) "^^<http://www.opengis.net/ont/geosparql#wktLiteral>. 2.6 +<http://example.org#geomC> <http://www.opengis.net/ont/geosparql#asWKT> " <http://www.opengis.net/def/crs/OGC/1.3/CRS84> Polygon((1 1, 3 1, 3 2, 1 2, 1 1)) "^^<http://www.opengis.net/ont/geosparql#wktLiteral>. 2.7 +<http://example.org#geomD> <http://www.opengis.net/ont/geosparql#asWKT> " <http://www.opengis.net/def/crs/OGC/1.3/CRS84> Polygon((3 1, 4 1, 4 2, 3 2, 3 1)) "^^<http://www.opengis.net/ont/geosparql#wktLiteral>. 2.8 +<http://example.org#geomE> <http://www.opengis.net/ont/geosparql#asWKT> " <http://www.opengis.net/def/crs/OGC/1.3/CRS84> Polygon((3 1, 4 1, 4 2, 3 2, 3 1)) "^^<http://www.opengis.net/ont/geosparql#wktLiteral>.
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/testsuite/src/test/resources/bugs/BindBug78/BindFILTERBug78.rq Thu Dec 18 18:23:59 2014 +0200 3.3 @@ -0,0 +1,8 @@ 3.4 +SELECT ?x1 ?x2 3.5 +WHERE 3.6 +{ 3.7 + ?x1 geo:asWKT ?g1 . 3.8 + ?x2 geo:asWKT ?g2 . 3.9 + BIND(strdf:intersection(?g1, ?g2) as ?inter) 3.10 + FILTER(strdf:area(?inter) > 0.001) 3.11 +} 3.12 \ No newline at end of file
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/testsuite/src/test/resources/bugs/BindBug78/BindFILTERBug78.srx Thu Dec 18 18:23:59 2014 +0200 4.3 @@ -0,0 +1,97 @@ 4.4 +<?xml version='1.0' encoding='UTF-8'?> 4.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'> 4.6 + <head> 4.7 + <variable name='x1'/> 4.8 + <variable name='x2'/> 4.9 + </head> 4.10 + <results> 4.11 + <result> 4.12 + <binding name='x1'> 4.13 + <uri>http://example.org#geomA</uri> 4.14 + </binding> 4.15 + <binding name='x2'> 4.16 + <uri>http://example.org#geomB</uri> 4.17 + </binding> 4.18 + </result> 4.19 + <result> 4.20 + <binding name='x1'> 4.21 + <uri>http://example.org#geomA</uri> 4.22 + </binding> 4.23 + <binding name='x2'> 4.24 + <uri>http://example.org#geomA</uri> 4.25 + </binding> 4.26 + </result> 4.27 + <result> 4.28 + <binding name='x1'> 4.29 + <uri>http://example.org#geomB</uri> 4.30 + </binding> 4.31 + <binding name='x2'> 4.32 + <uri>http://example.org#geomC</uri> 4.33 + </binding> 4.34 + </result> 4.35 + <result> 4.36 + <binding name='x1'> 4.37 + <uri>http://example.org#geomB</uri> 4.38 + </binding> 4.39 + <binding name='x2'> 4.40 + <uri>http://example.org#geomB</uri> 4.41 + </binding> 4.42 + </result> 4.43 + <result> 4.44 + <binding name='x1'> 4.45 + <uri>http://example.org#geomB</uri> 4.46 + </binding> 4.47 + <binding name='x2'> 4.48 + <uri>http://example.org#geomA</uri> 4.49 + </binding> 4.50 + </result> 4.51 + <result> 4.52 + <binding name='x1'> 4.53 + <uri>http://example.org#geomC</uri> 4.54 + </binding> 4.55 + <binding name='x2'> 4.56 + <uri>http://example.org#geomC</uri> 4.57 + </binding> 4.58 + </result> 4.59 + <result> 4.60 + <binding name='x1'> 4.61 + <uri>http://example.org#geomC</uri> 4.62 + </binding> 4.63 + <binding name='x2'> 4.64 + <uri>http://example.org#geomB</uri> 4.65 + </binding> 4.66 + </result> 4.67 + <result> 4.68 + <binding name='x1'> 4.69 + <uri>http://example.org#geomD</uri> 4.70 + </binding> 4.71 + <binding name='x2'> 4.72 + <uri>http://example.org#geomE</uri> 4.73 + </binding> 4.74 + </result> 4.75 + <result> 4.76 + <binding name='x1'> 4.77 + <uri>http://example.org#geomE</uri> 4.78 + </binding> 4.79 + <binding name='x2'> 4.80 + <uri>http://example.org#geomE</uri> 4.81 + </binding> 4.82 + </result> 4.83 + <result> 4.84 + <binding name='x1'> 4.85 + <uri>http://example.org#geomD</uri> 4.86 + </binding> 4.87 + <binding name='x2'> 4.88 + <uri>http://example.org#geomD</uri> 4.89 + </binding> 4.90 + </result> 4.91 + <result> 4.92 + <binding name='x1'> 4.93 + <uri>http://example.org#geomE</uri> 4.94 + </binding> 4.95 + <binding name='x2'> 4.96 + <uri>http://example.org#geomD</uri> 4.97 + </binding> 4.98 + </result> 4.99 + </results> 4.100 +</sparql>
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/testsuite/src/test/resources/bugs/BindBug78/BindProjectionBug78.rq Thu Dec 18 18:23:59 2014 +0200 5.3 @@ -0,0 +1,7 @@ 5.4 +SELECT (strdf:area(?inter) as ?area) 5.5 +WHERE 5.6 +{ 5.7 + ?x1 geo:asWKT ?g1 . 5.8 + ?x2 geo:asWKT ?g2 . 5.9 + BIND(strdf:intersection(?g1, ?g2) as ?inter) 5.10 +} 5.11 \ No newline at end of file
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/testsuite/src/test/resources/bugs/BindBug78/BindProjectionBug78.srx Thu Dec 18 18:23:59 2014 +0200 6.3 @@ -0,0 +1,133 @@ 6.4 +<?xml version='1.0' encoding='UTF-8'?> 6.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'> 6.6 + <head> 6.7 + <variable name='area'/> 6.8 + </head> 6.9 + <results> 6.10 + <result> 6.11 + <binding name='area'> 6.12 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>0.0</literal> 6.13 + </binding> 6.14 + </result> 6.15 + <result> 6.16 + <binding name='area'> 6.17 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>0.0</literal> 6.18 + </binding> 6.19 + </result> 6.20 + <result> 6.21 + <binding name='area'> 6.22 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>0.0</literal> 6.23 + </binding> 6.24 + </result> 6.25 + <result> 6.26 + <binding name='area'> 6.27 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>1.0</literal> 6.28 + </binding> 6.29 + </result> 6.30 + <result> 6.31 + <binding name='area'> 6.32 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>1.0</literal> 6.33 + </binding> 6.34 + </result> 6.35 + <result> 6.36 + <binding name='area'> 6.37 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>0.0</literal> 6.38 + </binding> 6.39 + </result> 6.40 + <result> 6.41 + <binding name='area'> 6.42 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>0.0</literal> 6.43 + </binding> 6.44 + </result> 6.45 + <result> 6.46 + <binding name='area'> 6.47 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>1.0</literal> 6.48 + </binding> 6.49 + </result> 6.50 + <result> 6.51 + <binding name='area'> 6.52 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>4.0</literal> 6.53 + </binding> 6.54 + </result> 6.55 + <result> 6.56 + <binding name='area'> 6.57 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>1.0</literal> 6.58 + </binding> 6.59 + </result> 6.60 + <result> 6.61 + <binding name='area'> 6.62 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>0.0</literal> 6.63 + </binding> 6.64 + </result> 6.65 + <result> 6.66 + <binding name='area'> 6.67 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>0.0</literal> 6.68 + </binding> 6.69 + </result> 6.70 + <result> 6.71 + <binding name='area'> 6.72 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>2.0</literal> 6.73 + </binding> 6.74 + </result> 6.75 + <result> 6.76 + <binding name='area'> 6.77 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>1.0</literal> 6.78 + </binding> 6.79 + </result> 6.80 + <result> 6.81 + <binding name='area'> 6.82 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>0.0</literal> 6.83 + </binding> 6.84 + </result> 6.85 + <result> 6.86 + <binding name='area'> 6.87 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>1.0</literal> 6.88 + </binding> 6.89 + </result> 6.90 + <result> 6.91 + <binding name='area'> 6.92 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>1.0</literal> 6.93 + </binding> 6.94 + </result> 6.95 + <result> 6.96 + <binding name='area'> 6.97 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>1.0</literal> 6.98 + </binding> 6.99 + </result> 6.100 + <result> 6.101 + <binding name='area'> 6.102 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>1.0</literal> 6.103 + </binding> 6.104 + </result> 6.105 + <result> 6.106 + <binding name='area'> 6.107 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>0.0</literal> 6.108 + </binding> 6.109 + </result> 6.110 + <result> 6.111 + <binding name='area'> 6.112 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>0.0</literal> 6.113 + </binding> 6.114 + </result> 6.115 + <result> 6.116 + <binding name='area'> 6.117 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>0.0</literal> 6.118 + </binding> 6.119 + </result> 6.120 + <result> 6.121 + <binding name='area'> 6.122 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>0.0</literal> 6.123 + </binding> 6.124 + </result> 6.125 + <result> 6.126 + <binding name='area'> 6.127 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>0.0</literal> 6.128 + </binding> 6.129 + </result> 6.130 + <result> 6.131 + <binding name='area'> 6.132 + <literal datatype='http://www.w3.org/2001/XMLSchema#double'>0.0</literal> 6.133 + </binding> 6.134 + </result> 6.135 + </results> 6.136 +</sparql> 6.137 \ No newline at end of file