Strabon

changeset 1213:352c8ca3064e

Added Topological Relations Test for stSPARQL (sameAs sfSpatial Relations for GeoSPARQL).
author Panayiotis Smeros <psmeros@di.uoa.gr>
date Mon Jul 15 18:25:51 2013 +0300 (2013-07-15)
parents 543089062a2c
children 18768de271fb
files testsuite/src/test/java/eu/earthobservatory/testsuite/stSPARQL/TopologicalRelationsTest.java testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/ContainsTest.rq testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/ContainsTest.srx testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/CrossesTest.rq testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/CrossesTest.srx testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/DisjointTest.rq testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/DisjointTest.srx testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/EqualsTest.rq testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/EqualsTest.srx testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/IntersectsTest.rq testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/IntersectsTest.srx testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/OverlapsTest.rq testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/OverlapsTest.srx testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/RelateTest.rq testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/RelateTest.srx testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/TopologicalRelationsTest.nt testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/TouchesTest.rq testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/TouchesTest.srx testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/WithinTest.rq testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/WithinTest.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/stSPARQL/TopologicalRelationsTest.java	Mon Jul 15 18:25:51 2013 +0300
     1.3 @@ -0,0 +1,20 @@
     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) 2010, 2011, 2012, 2013 Pyravlos Team
    1.10 + * 
    1.11 + * http://www.strabon.di.uoa.gr/
    1.12 + */
    1.13 +package eu.earthobservatory.testsuite.stSPARQL;
    1.14 +
    1.15 +import eu.earthobservatory.testsuite.utils.TemplateTest;
    1.16 +
    1.17 +/**
    1.18 + * A test for the topological relations of stSPARQL.
    1.19 + * 
    1.20 + * @author Panayiotis Smeros <psmeros@di.uoa.gr>
    1.21 + */
    1.22 +
    1.23 +public class TopologicalRelationsTest extends TemplateTest {}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/ContainsTest.rq	Mon Jul 15 18:25:51 2013 +0300
     2.3 @@ -0,0 +1,7 @@
     2.4 +SELECT ?x ?y
     2.5 +WHERE
     2.6 +{
     2.7 +?x ex:hasGeometry ?g1.
     2.8 +?y ex:hasGeometry ?g2.
     2.9 +
    2.10 +FILTER((?x != ?y) && (strdf:contains(?g1, ?g2)))}
    2.11 \ No newline at end of file
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/ContainsTest.srx	Mon Jul 15 18:25:51 2013 +0300
     3.3 @@ -0,0 +1,49 @@
     3.4 +<?xml version='1.0' encoding='UTF-8'?>
     3.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
     3.6 +	<head>
     3.7 +		<variable name='x'/>
     3.8 +		<variable name='y'/>
     3.9 +	</head>
    3.10 +	<results>
    3.11 +		<result>
    3.12 +			<binding name='y'>
    3.13 +				<uri>http://example.org#A</uri>
    3.14 +			</binding>
    3.15 +			<binding name='x'>
    3.16 +				<uri>http://example.org#B</uri>
    3.17 +			</binding>
    3.18 +		</result>
    3.19 +		<result>
    3.20 +			<binding name='y'>
    3.21 +				<uri>http://example.org#E</uri>
    3.22 +			</binding>
    3.23 +			<binding name='x'>
    3.24 +				<uri>http://example.org#D</uri>
    3.25 +			</binding>
    3.26 +		</result>
    3.27 +		<result>
    3.28 +			<binding name='y'>
    3.29 +				<uri>http://example.org#D</uri>
    3.30 +			</binding>
    3.31 +			<binding name='x'>
    3.32 +				<uri>http://example.org#E</uri>
    3.33 +			</binding>
    3.34 +		</result>
    3.35 +		<result>
    3.36 +			<binding name='y'>
    3.37 +				<uri>http://example.org#G</uri>
    3.38 +			</binding>
    3.39 +			<binding name='x'>
    3.40 +				<uri>http://example.org#B</uri>
    3.41 +			</binding>
    3.42 +		</result>
    3.43 +		<result>
    3.44 +			<binding name='y'>
    3.45 +				<uri>http://example.org#H</uri>
    3.46 +			</binding>
    3.47 +			<binding name='x'>
    3.48 +				<uri>http://example.org#C</uri>
    3.49 +			</binding>
    3.50 +		</result>
    3.51 +	</results>
    3.52 +</sparql>
    3.53 \ 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/stSPARQL/TopologicalRelationsTest/CrossesTest.rq	Mon Jul 15 18:25:51 2013 +0300
     4.3 @@ -0,0 +1,7 @@
     4.4 +SELECT ?x ?y
     4.5 +WHERE
     4.6 +{
     4.7 +?x ex:hasGeometry ?g1.
     4.8 +?y ex:hasGeometry ?g2.
     4.9 +
    4.10 +FILTER((strdf:crosses(?g1, ?g2)))}
    4.11 \ No newline at end of file
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/CrossesTest.srx	Mon Jul 15 18:25:51 2013 +0300
     5.3 @@ -0,0 +1,42 @@
     5.4 +<?xml version='1.0' encoding='UTF-8'?>
     5.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
     5.6 +	<head>
     5.7 +		<variable name='x'/>
     5.8 +		<variable name='y'/>
     5.9 +	</head>
    5.10 +	<results>
    5.11 +		<result>
    5.12 +			<binding name='y'>
    5.13 +				<uri>http://example.org#E</uri>
    5.14 +			</binding>
    5.15 +			<binding name='x'>
    5.16 +				<uri>http://example.org#F</uri>
    5.17 +			</binding>
    5.18 +		</result>
    5.19 +		<result>
    5.20 +			<binding name='y'>
    5.21 +				<uri>http://example.org#D</uri>
    5.22 +			</binding>
    5.23 +			<binding name='x'>
    5.24 +				<uri>http://example.org#F</uri>
    5.25 +			</binding>
    5.26 +		</result>
    5.27 +		<result>
    5.28 +			<binding name='y'>
    5.29 +				<uri>http://example.org#F</uri>
    5.30 +			</binding>
    5.31 +			<binding name='x'>
    5.32 +				<uri>http://example.org#D</uri>
    5.33 +			</binding>
    5.34 +		</result>
    5.35 +		<result>
    5.36 +			<binding name='y'>
    5.37 +				<uri>http://example.org#F</uri>
    5.38 +			</binding>
    5.39 +			<binding name='x'>
    5.40 +				<uri>http://example.org#E</uri>
    5.41 +			</binding>
    5.42 +		</result>
    5.43 +	</results>
    5.44 +</sparql>
    5.45 +
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/DisjointTest.rq	Mon Jul 15 18:25:51 2013 +0300
     6.3 @@ -0,0 +1,7 @@
     6.4 +SELECT ?x ?y
     6.5 +WHERE
     6.6 +{
     6.7 +?x ex:hasGeometry ?g1.
     6.8 +?y ex:hasGeometry ?g2.
     6.9 +
    6.10 +FILTER((strdf:disjoint(?g1, ?g2)))}
    6.11 \ No newline at end of file
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/DisjointTest.srx	Mon Jul 15 18:25:51 2013 +0300
     7.3 @@ -0,0 +1,249 @@
     7.4 +<?xml version='1.0' encoding='UTF-8'?>
     7.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
     7.6 +	<head>
     7.7 +		<variable name='x'/>
     7.8 +		<variable name='y'/>
     7.9 +	</head>
    7.10 +	<results>
    7.11 +		<result>
    7.12 +			<binding name='y'>
    7.13 +				<uri>http://example.org#A</uri>
    7.14 +			</binding>
    7.15 +			<binding name='x'>
    7.16 +				<uri>http://example.org#E</uri>
    7.17 +			</binding>
    7.18 +		</result>
    7.19 +		<result>
    7.20 +			<binding name='y'>
    7.21 +				<uri>http://example.org#A</uri>
    7.22 +			</binding>
    7.23 +			<binding name='x'>
    7.24 +				<uri>http://example.org#D</uri>
    7.25 +			</binding>
    7.26 +		</result>
    7.27 +		<result>
    7.28 +			<binding name='y'>
    7.29 +				<uri>http://example.org#A</uri>
    7.30 +			</binding>
    7.31 +			<binding name='x'>
    7.32 +				<uri>http://example.org#F</uri>
    7.33 +			</binding>
    7.34 +		</result>
    7.35 +		<result>
    7.36 +			<binding name='y'>
    7.37 +				<uri>http://example.org#A</uri>
    7.38 +			</binding>
    7.39 +			<binding name='x'>
    7.40 +				<uri>http://example.org#H</uri>
    7.41 +			</binding>
    7.42 +		</result>
    7.43 +		<result>
    7.44 +			<binding name='y'>
    7.45 +				<uri>http://example.org#B</uri>
    7.46 +			</binding>
    7.47 +			<binding name='x'>
    7.48 +				<uri>http://example.org#E</uri>
    7.49 +			</binding>
    7.50 +		</result>
    7.51 +		<result>
    7.52 +			<binding name='y'>
    7.53 +				<uri>http://example.org#B</uri>
    7.54 +			</binding>
    7.55 +			<binding name='x'>
    7.56 +				<uri>http://example.org#D</uri>
    7.57 +			</binding>
    7.58 +		</result>
    7.59 +		<result>
    7.60 +			<binding name='y'>
    7.61 +				<uri>http://example.org#B</uri>
    7.62 +			</binding>
    7.63 +			<binding name='x'>
    7.64 +				<uri>http://example.org#F</uri>
    7.65 +			</binding>
    7.66 +		</result>
    7.67 +		<result>
    7.68 +			<binding name='y'>
    7.69 +				<uri>http://example.org#B</uri>
    7.70 +			</binding>
    7.71 +			<binding name='x'>
    7.72 +				<uri>http://example.org#H</uri>
    7.73 +			</binding>
    7.74 +		</result>
    7.75 +		<result>
    7.76 +			<binding name='y'>
    7.77 +				<uri>http://example.org#D</uri>
    7.78 +			</binding>
    7.79 +			<binding name='x'>
    7.80 +				<uri>http://example.org#A</uri>
    7.81 +			</binding>
    7.82 +		</result>
    7.83 +		<result>
    7.84 +			<binding name='y'>
    7.85 +				<uri>http://example.org#D</uri>
    7.86 +			</binding>
    7.87 +			<binding name='x'>
    7.88 +				<uri>http://example.org#B</uri>
    7.89 +			</binding>
    7.90 +		</result>
    7.91 +		<result>
    7.92 +			<binding name='y'>
    7.93 +				<uri>http://example.org#D</uri>
    7.94 +			</binding>
    7.95 +			<binding name='x'>
    7.96 +				<uri>http://example.org#G</uri>
    7.97 +			</binding>
    7.98 +		</result>
    7.99 +		<result>
   7.100 +			<binding name='y'>
   7.101 +				<uri>http://example.org#D</uri>
   7.102 +			</binding>
   7.103 +			<binding name='x'>
   7.104 +				<uri>http://example.org#H</uri>
   7.105 +			</binding>
   7.106 +		</result>
   7.107 +		<result>
   7.108 +			<binding name='y'>
   7.109 +				<uri>http://example.org#E</uri>
   7.110 +			</binding>
   7.111 +			<binding name='x'>
   7.112 +				<uri>http://example.org#A</uri>
   7.113 +			</binding>
   7.114 +		</result>
   7.115 +		<result>
   7.116 +			<binding name='y'>
   7.117 +				<uri>http://example.org#E</uri>
   7.118 +			</binding>
   7.119 +			<binding name='x'>
   7.120 +				<uri>http://example.org#B</uri>
   7.121 +			</binding>
   7.122 +		</result>
   7.123 +		<result>
   7.124 +			<binding name='y'>
   7.125 +				<uri>http://example.org#E</uri>
   7.126 +			</binding>
   7.127 +			<binding name='x'>
   7.128 +				<uri>http://example.org#G</uri>
   7.129 +			</binding>
   7.130 +		</result>
   7.131 +		<result>
   7.132 +			<binding name='y'>
   7.133 +				<uri>http://example.org#E</uri>
   7.134 +			</binding>
   7.135 +			<binding name='x'>
   7.136 +				<uri>http://example.org#H</uri>
   7.137 +			</binding>
   7.138 +		</result>
   7.139 +		<result>
   7.140 +			<binding name='y'>
   7.141 +				<uri>http://example.org#F</uri>
   7.142 +			</binding>
   7.143 +			<binding name='x'>
   7.144 +				<uri>http://example.org#A</uri>
   7.145 +			</binding>
   7.146 +		</result>
   7.147 +		<result>
   7.148 +			<binding name='y'>
   7.149 +				<uri>http://example.org#F</uri>
   7.150 +			</binding>
   7.151 +			<binding name='x'>
   7.152 +				<uri>http://example.org#B</uri>
   7.153 +			</binding>
   7.154 +		</result>
   7.155 +		<result>
   7.156 +			<binding name='y'>
   7.157 +				<uri>http://example.org#F</uri>
   7.158 +			</binding>
   7.159 +			<binding name='x'>
   7.160 +				<uri>http://example.org#G</uri>
   7.161 +			</binding>
   7.162 +		</result>
   7.163 +		<result>
   7.164 +			<binding name='y'>
   7.165 +				<uri>http://example.org#F</uri>
   7.166 +			</binding>
   7.167 +			<binding name='x'>
   7.168 +				<uri>http://example.org#H</uri>
   7.169 +			</binding>
   7.170 +		</result>
   7.171 +		<result>
   7.172 +			<binding name='y'>
   7.173 +				<uri>http://example.org#G</uri>
   7.174 +			</binding>
   7.175 +			<binding name='x'>
   7.176 +				<uri>http://example.org#E</uri>
   7.177 +			</binding>
   7.178 +		</result>
   7.179 +		<result>
   7.180 +			<binding name='y'>
   7.181 +				<uri>http://example.org#G</uri>
   7.182 +			</binding>
   7.183 +			<binding name='x'>
   7.184 +				<uri>http://example.org#D</uri>
   7.185 +			</binding>
   7.186 +		</result>
   7.187 +		<result>
   7.188 +			<binding name='y'>
   7.189 +				<uri>http://example.org#G</uri>
   7.190 +			</binding>
   7.191 +			<binding name='x'>
   7.192 +				<uri>http://example.org#F</uri>
   7.193 +			</binding>
   7.194 +		</result>
   7.195 +		<result>
   7.196 +			<binding name='y'>
   7.197 +				<uri>http://example.org#G</uri>
   7.198 +			</binding>
   7.199 +			<binding name='x'>
   7.200 +				<uri>http://example.org#H</uri>
   7.201 +			</binding>
   7.202 +		</result>
   7.203 +		<result>
   7.204 +			<binding name='y'>
   7.205 +				<uri>http://example.org#H</uri>
   7.206 +			</binding>
   7.207 +			<binding name='x'>
   7.208 +				<uri>http://example.org#A</uri>
   7.209 +			</binding>
   7.210 +		</result>
   7.211 +		<result>
   7.212 +			<binding name='y'>
   7.213 +				<uri>http://example.org#H</uri>
   7.214 +			</binding>
   7.215 +			<binding name='x'>
   7.216 +				<uri>http://example.org#B</uri>
   7.217 +			</binding>
   7.218 +		</result>
   7.219 +		<result>
   7.220 +			<binding name='y'>
   7.221 +				<uri>http://example.org#H</uri>
   7.222 +			</binding>
   7.223 +			<binding name='x'>
   7.224 +				<uri>http://example.org#E</uri>
   7.225 +			</binding>
   7.226 +		</result>
   7.227 +		<result>
   7.228 +			<binding name='y'>
   7.229 +				<uri>http://example.org#H</uri>
   7.230 +			</binding>
   7.231 +			<binding name='x'>
   7.232 +				<uri>http://example.org#D</uri>
   7.233 +			</binding>
   7.234 +		</result>
   7.235 +		<result>
   7.236 +			<binding name='y'>
   7.237 +				<uri>http://example.org#H</uri>
   7.238 +			</binding>
   7.239 +			<binding name='x'>
   7.240 +				<uri>http://example.org#F</uri>
   7.241 +			</binding>
   7.242 +		</result>
   7.243 +		<result>
   7.244 +			<binding name='y'>
   7.245 +				<uri>http://example.org#H</uri>
   7.246 +			</binding>
   7.247 +			<binding name='x'>
   7.248 +				<uri>http://example.org#G</uri>
   7.249 +			</binding>
   7.250 +		</result>
   7.251 +	</results>
   7.252 +</sparql>
   7.253 \ No newline at end of file
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/EqualsTest.rq	Mon Jul 15 18:25:51 2013 +0300
     8.3 @@ -0,0 +1,7 @@
     8.4 +SELECT ?x ?y
     8.5 +WHERE
     8.6 +{
     8.7 +?x ex:hasGeometry ?g1.
     8.8 +?y ex:hasGeometry ?g2.
     8.9 +
    8.10 +FILTER((?x != ?y) && (strdf:equals(?g1, ?g2)))}
    8.11 \ No newline at end of file
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/EqualsTest.srx	Mon Jul 15 18:25:51 2013 +0300
     9.3 @@ -0,0 +1,25 @@
     9.4 +<?xml version='1.0' encoding='UTF-8'?>
     9.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
     9.6 +	<head>
     9.7 +		<variable name='x'/>
     9.8 +		<variable name='y'/>
     9.9 +	</head>
    9.10 +	<results>
    9.11 +		<result>
    9.12 +			<binding name='y'>
    9.13 +				<uri>http://example.org#E</uri>
    9.14 +			</binding>
    9.15 +			<binding name='x'>
    9.16 +				<uri>http://example.org#D</uri>
    9.17 +			</binding>
    9.18 +		</result>
    9.19 +		<result>
    9.20 +			<binding name='y'>
    9.21 +				<uri>http://example.org#D</uri>
    9.22 +			</binding>
    9.23 +			<binding name='x'>
    9.24 +				<uri>http://example.org#E</uri>
    9.25 +			</binding>
    9.26 +		</result>
    9.27 +	</results>
    9.28 +</sparql>
    9.29 \ No newline at end of file
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/IntersectsTest.rq	Mon Jul 15 18:25:51 2013 +0300
    10.3 @@ -0,0 +1,7 @@
    10.4 +SELECT ?x ?y
    10.5 +WHERE
    10.6 +{
    10.7 +?x ex:hasGeometry ?g1.
    10.8 +?y ex:hasGeometry ?g2.
    10.9 +
   10.10 +FILTER((?x != ?y) && (strdf:intersects(?g1, ?g2)))}
   10.11 \ No newline at end of file
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/IntersectsTest.srx	Mon Jul 15 18:25:51 2013 +0300
    11.3 @@ -0,0 +1,217 @@
    11.4 +<?xml version='1.0' encoding='UTF-8'?>
    11.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
    11.6 +	<head>
    11.7 +		<variable name='x'/>
    11.8 +		<variable name='y'/>
    11.9 +	</head>
   11.10 +	<results>
   11.11 +		<result>
   11.12 +			<binding name='y'>
   11.13 +				<uri>http://example.org#A</uri>
   11.14 +			</binding>
   11.15 +			<binding name='x'>
   11.16 +				<uri>http://example.org#B</uri>
   11.17 +			</binding>
   11.18 +		</result>
   11.19 +		<result>
   11.20 +			<binding name='y'>
   11.21 +				<uri>http://example.org#A</uri>
   11.22 +			</binding>
   11.23 +			<binding name='x'>
   11.24 +				<uri>http://example.org#C</uri>
   11.25 +			</binding>
   11.26 +		</result>
   11.27 +		<result>
   11.28 +			<binding name='y'>
   11.29 +				<uri>http://example.org#A</uri>
   11.30 +			</binding>
   11.31 +			<binding name='x'>
   11.32 +				<uri>http://example.org#G</uri>
   11.33 +			</binding>
   11.34 +		</result>
   11.35 +		<result>
   11.36 +			<binding name='y'>
   11.37 +				<uri>http://example.org#B</uri>
   11.38 +			</binding>
   11.39 +			<binding name='x'>
   11.40 +				<uri>http://example.org#A</uri>
   11.41 +			</binding>
   11.42 +		</result>
   11.43 +		<result>
   11.44 +			<binding name='y'>
   11.45 +				<uri>http://example.org#B</uri>
   11.46 +			</binding>
   11.47 +			<binding name='x'>
   11.48 +				<uri>http://example.org#C</uri>
   11.49 +			</binding>
   11.50 +		</result>
   11.51 +		<result>
   11.52 +			<binding name='y'>
   11.53 +				<uri>http://example.org#B</uri>
   11.54 +			</binding>
   11.55 +			<binding name='x'>
   11.56 +				<uri>http://example.org#G</uri>
   11.57 +			</binding>
   11.58 +		</result>
   11.59 +		<result>
   11.60 +			<binding name='y'>
   11.61 +				<uri>http://example.org#C</uri>
   11.62 +			</binding>
   11.63 +			<binding name='x'>
   11.64 +				<uri>http://example.org#A</uri>
   11.65 +			</binding>
   11.66 +		</result>
   11.67 +		<result>
   11.68 +			<binding name='y'>
   11.69 +				<uri>http://example.org#C</uri>
   11.70 +			</binding>
   11.71 +			<binding name='x'>
   11.72 +				<uri>http://example.org#B</uri>
   11.73 +			</binding>
   11.74 +		</result>
   11.75 +		<result>
   11.76 +			<binding name='y'>
   11.77 +				<uri>http://example.org#C</uri>
   11.78 +			</binding>
   11.79 +			<binding name='x'>
   11.80 +				<uri>http://example.org#D</uri>
   11.81 +			</binding>
   11.82 +		</result>
   11.83 +		<result>
   11.84 +			<binding name='y'>
   11.85 +				<uri>http://example.org#C</uri>
   11.86 +			</binding>
   11.87 +			<binding name='x'>
   11.88 +				<uri>http://example.org#E</uri>
   11.89 +			</binding>
   11.90 +		</result>
   11.91 +		<result>
   11.92 +			<binding name='y'>
   11.93 +				<uri>http://example.org#C</uri>
   11.94 +			</binding>
   11.95 +			<binding name='x'>
   11.96 +				<uri>http://example.org#F</uri>
   11.97 +			</binding>
   11.98 +		</result>
   11.99 +		<result>
  11.100 +			<binding name='y'>
  11.101 +				<uri>http://example.org#C</uri>
  11.102 +			</binding>
  11.103 +			<binding name='x'>
  11.104 +				<uri>http://example.org#G</uri>
  11.105 +			</binding>
  11.106 +		</result>
  11.107 +		<result>
  11.108 +			<binding name='y'>
  11.109 +				<uri>http://example.org#C</uri>
  11.110 +			</binding>
  11.111 +			<binding name='x'>
  11.112 +				<uri>http://example.org#H</uri>
  11.113 +			</binding>
  11.114 +		</result>
  11.115 +		<result>
  11.116 +			<binding name='y'>
  11.117 +				<uri>http://example.org#E</uri>
  11.118 +			</binding>
  11.119 +			<binding name='x'>
  11.120 +				<uri>http://example.org#C</uri>
  11.121 +			</binding>
  11.122 +		</result>
  11.123 +		<result>
  11.124 +			<binding name='y'>
  11.125 +				<uri>http://example.org#E</uri>
  11.126 +			</binding>
  11.127 +			<binding name='x'>
  11.128 +				<uri>http://example.org#D</uri>
  11.129 +			</binding>
  11.130 +		</result>
  11.131 +		<result>
  11.132 +			<binding name='y'>
  11.133 +				<uri>http://example.org#E</uri>
  11.134 +			</binding>
  11.135 +			<binding name='x'>
  11.136 +				<uri>http://example.org#F</uri>
  11.137 +			</binding>
  11.138 +		</result>
  11.139 +		<result>
  11.140 +			<binding name='y'>
  11.141 +				<uri>http://example.org#D</uri>
  11.142 +			</binding>
  11.143 +			<binding name='x'>
  11.144 +				<uri>http://example.org#C</uri>
  11.145 +			</binding>
  11.146 +		</result>
  11.147 +		<result>
  11.148 +			<binding name='y'>
  11.149 +				<uri>http://example.org#D</uri>
  11.150 +			</binding>
  11.151 +			<binding name='x'>
  11.152 +				<uri>http://example.org#E</uri>
  11.153 +			</binding>
  11.154 +		</result>
  11.155 +		<result>
  11.156 +			<binding name='y'>
  11.157 +				<uri>http://example.org#D</uri>
  11.158 +			</binding>
  11.159 +			<binding name='x'>
  11.160 +				<uri>http://example.org#F</uri>
  11.161 +			</binding>
  11.162 +		</result>
  11.163 +		<result>
  11.164 +			<binding name='y'>
  11.165 +				<uri>http://example.org#F</uri>
  11.166 +			</binding>
  11.167 +			<binding name='x'>
  11.168 +				<uri>http://example.org#C</uri>
  11.169 +			</binding>
  11.170 +		</result>
  11.171 +		<result>
  11.172 +			<binding name='y'>
  11.173 +				<uri>http://example.org#F</uri>
  11.174 +			</binding>
  11.175 +			<binding name='x'>
  11.176 +				<uri>http://example.org#D</uri>
  11.177 +			</binding>
  11.178 +		</result>
  11.179 +		<result>
  11.180 +			<binding name='y'>
  11.181 +				<uri>http://example.org#F</uri>
  11.182 +			</binding>
  11.183 +			<binding name='x'>
  11.184 +				<uri>http://example.org#E</uri>
  11.185 +			</binding>
  11.186 +		</result>
  11.187 +		<result>
  11.188 +			<binding name='y'>
  11.189 +				<uri>http://example.org#G</uri>
  11.190 +			</binding>
  11.191 +			<binding name='x'>
  11.192 +				<uri>http://example.org#A</uri>
  11.193 +			</binding>
  11.194 +		</result>
  11.195 +		<result>
  11.196 +			<binding name='y'>
  11.197 +				<uri>http://example.org#G</uri>
  11.198 +			</binding>
  11.199 +			<binding name='x'>
  11.200 +				<uri>http://example.org#B</uri>
  11.201 +			</binding>
  11.202 +		</result>
  11.203 +		<result>
  11.204 +			<binding name='y'>
  11.205 +				<uri>http://example.org#G</uri>
  11.206 +			</binding>
  11.207 +			<binding name='x'>
  11.208 +				<uri>http://example.org#C</uri>
  11.209 +			</binding>
  11.210 +		</result>
  11.211 +		<result>
  11.212 +			<binding name='y'>
  11.213 +				<uri>http://example.org#H</uri>
  11.214 +			</binding>
  11.215 +			<binding name='x'>
  11.216 +				<uri>http://example.org#C</uri>
  11.217 +			</binding>
  11.218 +		</result>
  11.219 +	</results>
  11.220 +</sparql>
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/OverlapsTest.rq	Mon Jul 15 18:25:51 2013 +0300
    12.3 @@ -0,0 +1,7 @@
    12.4 +SELECT ?x ?y
    12.5 +WHERE
    12.6 +{
    12.7 +?x ex:hasGeometry ?g1.
    12.8 +?y ex:hasGeometry ?g2.
    12.9 +
   12.10 +FILTER((strdf:overlaps(?g1, ?g2)))}
   12.11 \ No newline at end of file
    13.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.2 +++ b/testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/OverlapsTest.srx	Mon Jul 15 18:25:51 2013 +0300
    13.3 @@ -0,0 +1,25 @@
    13.4 +<?xml version='1.0' encoding='UTF-8'?>
    13.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
    13.6 +	<head>
    13.7 +		<variable name='x'/>
    13.8 +		<variable name='y'/>
    13.9 +	</head>
   13.10 +	<results>
   13.11 +		<result>
   13.12 +			<binding name='y'>
   13.13 +				<uri>http://example.org#B</uri>
   13.14 +			</binding>
   13.15 +			<binding name='x'>
   13.16 +				<uri>http://example.org#C</uri>
   13.17 +			</binding>
   13.18 +		</result>
   13.19 +		<result>
   13.20 +			<binding name='y'>
   13.21 +				<uri>http://example.org#C</uri>
   13.22 +			</binding>
   13.23 +			<binding name='x'>
   13.24 +				<uri>http://example.org#B</uri>
   13.25 +			</binding>
   13.26 +		</result>
   13.27 +	</results>
   13.28 +</sparql>
    14.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.2 +++ b/testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/RelateTest.rq	Mon Jul 15 18:25:51 2013 +0300
    14.3 @@ -0,0 +1,7 @@
    14.4 +SELECT ?x ?y
    14.5 +WHERE
    14.6 +{
    14.7 +?x ex:hasGeometry ?g1.
    14.8 +?y ex:hasGeometry ?g2.
    14.9 +
   14.10 +FILTER((?x != ?y) && (strdf:relate(?g1, ?g2, "TFFFTFFFT"^^xsd:String)))}
   14.11 \ No newline at end of file
    15.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.2 +++ b/testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/RelateTest.srx	Mon Jul 15 18:25:51 2013 +0300
    15.3 @@ -0,0 +1,25 @@
    15.4 +<?xml version='1.0' encoding='UTF-8'?>
    15.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
    15.6 +	<head>
    15.7 +		<variable name='x'/>
    15.8 +		<variable name='y'/>
    15.9 +	</head>
   15.10 +	<results>
   15.11 +		<result>
   15.12 +			<binding name='y'>
   15.13 +				<uri>http://example.org#E</uri>
   15.14 +			</binding>
   15.15 +			<binding name='x'>
   15.16 +				<uri>http://example.org#D</uri>
   15.17 +			</binding>
   15.18 +		</result>
   15.19 +		<result>
   15.20 +			<binding name='y'>
   15.21 +				<uri>http://example.org#D</uri>
   15.22 +			</binding>
   15.23 +			<binding name='x'>
   15.24 +				<uri>http://example.org#E</uri>
   15.25 +			</binding>
   15.26 +		</result>
   15.27 +	</results>
   15.28 +</sparql>
   15.29 \ No newline at end of file
    16.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.2 +++ b/testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/TopologicalRelationsTest.nt	Mon Jul 15 18:25:51 2013 +0300
    16.3 @@ -0,0 +1,8 @@
    16.4 +<http://example.org#A> <http://example.org#hasGeometry> "Polygon((0 0, 1 0, 1 1, 0 1, 0 0))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
    16.5 +<http://example.org#B> <http://example.org#hasGeometry> "Polygon((0 0, 2 0, 2 2, 0 2 , 0 0))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
    16.6 +<http://example.org#C> <http://example.org#hasGeometry> "Polygon((1 1, 3 1, 3 2, 1 2, 1 1))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
    16.7 +<http://example.org#D> <http://example.org#hasGeometry> "Polygon((3 1, 4 1, 4 2, 3 2, 3 1))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
    16.8 +<http://example.org#E> <http://example.org#hasGeometry> "Polygon((3 1, 4 1, 4 2, 3 2, 3 1))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
    16.9 +<http://example.org#F> <http://example.org#hasGeometry> "Linestring(3 2, 4 0)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   16.10 +<http://example.org#G> <http://example.org#hasGeometry> "Point(1 1)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   16.11 +<http://example.org#H> <http://example.org#hasGeometry> "Polygon((2.1 1.1, 2.9 1.1, 2.9 1.9, 2.1 1.9, 2.1 1.1))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
    17.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.2 +++ b/testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/TouchesTest.rq	Mon Jul 15 18:25:51 2013 +0300
    17.3 @@ -0,0 +1,7 @@
    17.4 +SELECT ?x ?y
    17.5 +WHERE
    17.6 +{
    17.7 +?x ex:hasGeometry ?g1.
    17.8 +?y ex:hasGeometry ?g2.
    17.9 +
   17.10 +FILTER((strdf:touches(?g1, ?g2)))}
   17.11 \ No newline at end of file
    18.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.2 +++ b/testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/TouchesTest.srx	Mon Jul 15 18:25:51 2013 +0300
    18.3 @@ -0,0 +1,105 @@
    18.4 +<?xml version='1.0' encoding='UTF-8'?>
    18.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
    18.6 +	<head>
    18.7 +		<variable name='x'/>
    18.8 +		<variable name='y'/>
    18.9 +	</head>
   18.10 +	<results>
   18.11 +		<result>
   18.12 +			<binding name='y'>
   18.13 +				<uri>http://example.org#A</uri>
   18.14 +			</binding>
   18.15 +			<binding name='x'>
   18.16 +				<uri>http://example.org#C</uri>
   18.17 +			</binding>
   18.18 +		</result>
   18.19 +		<result>
   18.20 +			<binding name='y'>
   18.21 +				<uri>http://example.org#A</uri>
   18.22 +			</binding>
   18.23 +			<binding name='x'>
   18.24 +				<uri>http://example.org#G</uri>
   18.25 +			</binding>
   18.26 +		</result>
   18.27 +		<result>
   18.28 +			<binding name='y'>
   18.29 +				<uri>http://example.org#C</uri>
   18.30 +			</binding>
   18.31 +			<binding name='x'>
   18.32 +				<uri>http://example.org#A</uri>
   18.33 +			</binding>
   18.34 +		</result>
   18.35 +		<result>
   18.36 +			<binding name='y'>
   18.37 +				<uri>http://example.org#C</uri>
   18.38 +			</binding>
   18.39 +			<binding name='x'>
   18.40 +				<uri>http://example.org#G</uri>
   18.41 +			</binding>
   18.42 +		</result>
   18.43 +		<result>
   18.44 +			<binding name='y'>
   18.45 +				<uri>http://example.org#C</uri>
   18.46 +			</binding>
   18.47 +			<binding name='x'>
   18.48 +				<uri>http://example.org#D</uri>
   18.49 +			</binding>
   18.50 +		</result>
   18.51 +		<result>
   18.52 +			<binding name='y'>
   18.53 +				<uri>http://example.org#C</uri>
   18.54 +			</binding>
   18.55 +			<binding name='x'>
   18.56 +				<uri>http://example.org#E</uri>
   18.57 +			</binding>
   18.58 +		</result>
   18.59 +		<result>
   18.60 +			<binding name='y'>
   18.61 +				<uri>http://example.org#C</uri>
   18.62 +			</binding>
   18.63 +			<binding name='x'>
   18.64 +				<uri>http://example.org#F</uri>
   18.65 +			</binding>
   18.66 +		</result>
   18.67 +		<result>
   18.68 +			<binding name='y'>
   18.69 +				<uri>http://example.org#G</uri>
   18.70 +			</binding>
   18.71 +			<binding name='x'>
   18.72 +				<uri>http://example.org#A</uri>
   18.73 +			</binding>
   18.74 +		</result>
   18.75 +		<result>
   18.76 +			<binding name='y'>
   18.77 +				<uri>http://example.org#G</uri>
   18.78 +			</binding>
   18.79 +			<binding name='x'>
   18.80 +				<uri>http://example.org#C</uri>
   18.81 +			</binding>
   18.82 +		</result>
   18.83 +		<result>
   18.84 +			<binding name='y'>
   18.85 +				<uri>http://example.org#E</uri>
   18.86 +			</binding>
   18.87 +			<binding name='x'>
   18.88 +				<uri>http://example.org#C</uri>
   18.89 +			</binding>
   18.90 +		</result>
   18.91 +		<result>
   18.92 +			<binding name='y'>
   18.93 +				<uri>http://example.org#D</uri>
   18.94 +			</binding>
   18.95 +			<binding name='x'>
   18.96 +				<uri>http://example.org#C</uri>
   18.97 +			</binding>
   18.98 +		</result>
   18.99 +		<result>
  18.100 +			<binding name='y'>
  18.101 +				<uri>http://example.org#F</uri>
  18.102 +			</binding>
  18.103 +			<binding name='x'>
  18.104 +				<uri>http://example.org#C</uri>
  18.105 +			</binding>
  18.106 +		</result>
  18.107 +	</results>
  18.108 +</sparql>
  18.109 \ No newline at end of file
    19.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    19.2 +++ b/testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/WithinTest.rq	Mon Jul 15 18:25:51 2013 +0300
    19.3 @@ -0,0 +1,7 @@
    19.4 +SELECT ?x ?y
    19.5 +WHERE
    19.6 +{
    19.7 +?x ex:hasGeometry ?g1.
    19.8 +?y ex:hasGeometry ?g2.
    19.9 +
   19.10 +FILTER((?x != ?y) && (strdf:within(?g1, ?g2)))}
   19.11 \ No newline at end of file
    20.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    20.2 +++ b/testsuite/src/test/resources/stSPARQL/TopologicalRelationsTest/WithinTest.srx	Mon Jul 15 18:25:51 2013 +0300
    20.3 @@ -0,0 +1,49 @@
    20.4 +<?xml version='1.0' encoding='UTF-8'?>
    20.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
    20.6 +	<head>
    20.7 +		<variable name='x'/>
    20.8 +		<variable name='y'/>
    20.9 +	</head>
   20.10 +	<results>
   20.11 +		<result>
   20.12 +			<binding name='y'>
   20.13 +				<uri>http://example.org#B</uri>
   20.14 +			</binding>
   20.15 +			<binding name='x'>
   20.16 +				<uri>http://example.org#A</uri>
   20.17 +			</binding>
   20.18 +		</result>
   20.19 +		<result>
   20.20 +			<binding name='y'>
   20.21 +				<uri>http://example.org#B</uri>
   20.22 +			</binding>
   20.23 +			<binding name='x'>
   20.24 +				<uri>http://example.org#G</uri>
   20.25 +			</binding>
   20.26 +		</result>
   20.27 +		<result>
   20.28 +			<binding name='y'>
   20.29 +				<uri>http://example.org#C</uri>
   20.30 +			</binding>
   20.31 +			<binding name='x'>
   20.32 +				<uri>http://example.org#H</uri>
   20.33 +			</binding>
   20.34 +		</result>
   20.35 +		<result>
   20.36 +			<binding name='y'>
   20.37 +				<uri>http://example.org#E</uri>
   20.38 +			</binding>
   20.39 +			<binding name='x'>
   20.40 +				<uri>http://example.org#D</uri>
   20.41 +			</binding>
   20.42 +		</result>
   20.43 +		<result>
   20.44 +			<binding name='y'>
   20.45 +				<uri>http://example.org#D</uri>
   20.46 +			</binding>
   20.47 +			<binding name='x'>
   20.48 +				<uri>http://example.org#E</uri>
   20.49 +			</binding>
   20.50 +		</result>
   20.51 +	</results>
   20.52 +</sparql>
   20.53 \ No newline at end of file