Strabon

changeset 1344:168b89aaa51b

Test for bug #34
author Dimitrianos Savva <dimis@di.uoa.gr>
date Fri Jun 27 18:55:57 2014 +0300 (2014-06-27)
parents 12c3bba2c8a5
children 4b7dbc54ae9d
files testsuite/src/test/java/eu/earthobservatory/testsuite/bugs/RelationalFunctionInSelectTest.java testsuite/src/test/resources/bugs/RelationalFunctionInSelectTest/Crosses_GEOSPARQL_Test.rq testsuite/src/test/resources/bugs/RelationalFunctionInSelectTest/Crosses_GEOSPARQL_Test.srx testsuite/src/test/resources/bugs/RelationalFunctionInSelectTest/Crosses_stRDF_Test.rq testsuite/src/test/resources/bugs/RelationalFunctionInSelectTest/Crosses_stRDF_Test.srx testsuite/src/test/resources/bugs/RelationalFunctionInSelectTest/Intersects_GEOSPARQL_Test.rq testsuite/src/test/resources/bugs/RelationalFunctionInSelectTest/Intersects_GEOSPARQL_Test.srx testsuite/src/test/resources/bugs/RelationalFunctionInSelectTest/Intersects_stRDF_Test.rq testsuite/src/test/resources/bugs/RelationalFunctionInSelectTest/Intersects_stRDF_Test.srx testsuite/src/test/resources/bugs/RelationalFunctionInSelectTest/Overlaps_GEOSPARQL_Test.rq testsuite/src/test/resources/bugs/RelationalFunctionInSelectTest/Overlaps_GEOSPARQL_Test.srx testsuite/src/test/resources/bugs/RelationalFunctionInSelectTest/Overlaps_stRDF_Test.rq testsuite/src/test/resources/bugs/RelationalFunctionInSelectTest/Overlaps_stRDF_Test.srx testsuite/src/test/resources/bugs/RelationalFunctionInSelectTest/RelationalFunctionInSelectTest.nt
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/RelationalFunctionInSelectTest.java	Fri Jun 27 18:55:57 2014 +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, 2014 Pyravlos Team
    1.10 + * 
    1.11 + * http://www.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 +/**
    1.19 + * Test for Bug #34 (http://bug.strabon.di.uoa.gr/ticket/34).
    1.20 + * 
    1.21 + * @author Dimitrianos Savva <dimis@di.uoa.gr
    1.22 + */
    1.23 +public class RelationalFunctionInSelectTest extends TemplateTest{}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/testsuite/src/test/resources/bugs/RelationalFunctionInSelectTest/Crosses_GEOSPARQL_Test.rq	Fri Jun 27 18:55:57 2014 +0300
     2.3 @@ -0,0 +1,11 @@
     2.4 +SELECT ?x ?y (geof:sfCrosses(?g1, ?g2) as ?overlaps)
     2.5 +WHERE
     2.6 +{
     2.7 +?x geo:hasGeometry ?geom1.
     2.8 +?geom1 geo:asWKT ?g1.
     2.9 +
    2.10 +?y geo:hasGeometry ?geom2.
    2.11 +?geom2 geo:asWKT ?g2.
    2.12 +
    2.13 +FILTER(str(?x)  < str(?y))
    2.14 +}
    2.15 \ 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/bugs/RelationalFunctionInSelectTest/Crosses_GEOSPARQL_Test.srx	Fri Jun 27 18:55:57 2014 +0300
     3.3 @@ -0,0 +1,365 @@
     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 +		<variable name='overlaps'/>
    3.10 +	</head>
    3.11 +	<results>
    3.12 +		<result>
    3.13 +			<binding name='x'>
    3.14 +				<uri>http://example.org#A</uri>
    3.15 +			</binding>
    3.16 +			<binding name='y'>
    3.17 +				<uri>http://example.org#B</uri>
    3.18 +			</binding>
    3.19 +			<binding name='overlaps'>
    3.20 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
    3.21 +			</binding>
    3.22 +		</result>
    3.23 +		
    3.24 +		<result>
    3.25 +			<binding name='x'>
    3.26 +				<uri>http://example.org#A</uri>
    3.27 +			</binding>
    3.28 +			<binding name='y'>
    3.29 +				<uri>http://example.org#C</uri>
    3.30 +			</binding>
    3.31 +			<binding name='overlaps'>
    3.32 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
    3.33 +			</binding>
    3.34 +		</result>
    3.35 +		
    3.36 +		<result>
    3.37 +			<binding name='x'>
    3.38 +				<uri>http://example.org#A</uri>
    3.39 +			</binding>
    3.40 +			<binding name='y'>
    3.41 +				<uri>http://example.org#D</uri>
    3.42 +			</binding>
    3.43 +			<binding name='overlaps'>
    3.44 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
    3.45 +			</binding>
    3.46 +		</result>
    3.47 +		
    3.48 +		<result>
    3.49 +			<binding name='x'>
    3.50 +				<uri>http://example.org#A</uri>
    3.51 +			</binding>
    3.52 +			<binding name='y'>
    3.53 +				<uri>http://example.org#E</uri>
    3.54 +			</binding>
    3.55 +			<binding name='overlaps'>
    3.56 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
    3.57 +			</binding>
    3.58 +		</result>
    3.59 +		
    3.60 +		<result>
    3.61 +			<binding name='x'>
    3.62 +				<uri>http://example.org#A</uri>
    3.63 +			</binding>
    3.64 +			<binding name='y'>
    3.65 +				<uri>http://example.org#F</uri>
    3.66 +			</binding>
    3.67 +			<binding name='overlaps'>
    3.68 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
    3.69 +			</binding>
    3.70 +		</result>
    3.71 +		
    3.72 +		<result>
    3.73 +			<binding name='x'>
    3.74 +				<uri>http://example.org#A</uri>
    3.75 +			</binding>
    3.76 +			<binding name='y'>
    3.77 +				<uri>http://example.org#G</uri>
    3.78 +			</binding>
    3.79 +			<binding name='overlaps'>
    3.80 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
    3.81 +			</binding>
    3.82 +		</result>
    3.83 +		
    3.84 +		
    3.85 +		
    3.86 +		<result>
    3.87 +			<binding name='x'>
    3.88 +				<uri>http://example.org#A</uri>
    3.89 +			</binding>
    3.90 +			<binding name='y'>
    3.91 +				<uri>http://example.org#H</uri>
    3.92 +			</binding>
    3.93 +			<binding name='overlaps'>
    3.94 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
    3.95 +			</binding>
    3.96 +		</result>
    3.97 +		
    3.98 +		
    3.99 +		
   3.100 +		
   3.101 +		
   3.102 +		
   3.103 +		
   3.104 +		<!-- B -->
   3.105 +		
   3.106 +		<result>
   3.107 +			<binding name='x'>
   3.108 +				<uri>http://example.org#B</uri>
   3.109 +			</binding>
   3.110 +			<binding name='y'>
   3.111 +				<uri>http://example.org#C</uri>
   3.112 +			</binding>
   3.113 +			<binding name='overlaps'>
   3.114 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   3.115 +			</binding>
   3.116 +		</result>
   3.117 +		
   3.118 +		<result>
   3.119 +			<binding name='x'>
   3.120 +				<uri>http://example.org#B</uri>
   3.121 +			</binding>
   3.122 +			<binding name='y'>
   3.123 +				<uri>http://example.org#D</uri>
   3.124 +			</binding>
   3.125 +			<binding name='overlaps'>
   3.126 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   3.127 +			</binding>
   3.128 +		</result>
   3.129 +		
   3.130 +		<result>
   3.131 +			<binding name='x'>
   3.132 +				<uri>http://example.org#B</uri>
   3.133 +			</binding>
   3.134 +			<binding name='y'>
   3.135 +				<uri>http://example.org#E</uri>
   3.136 +			</binding>
   3.137 +			<binding name='overlaps'>
   3.138 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   3.139 +			</binding>
   3.140 +		</result>
   3.141 +		
   3.142 +		<result>
   3.143 +			<binding name='x'>
   3.144 +				<uri>http://example.org#B</uri>
   3.145 +			</binding>
   3.146 +			<binding name='y'>
   3.147 +				<uri>http://example.org#F</uri>
   3.148 +			</binding>
   3.149 +			<binding name='overlaps'>
   3.150 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   3.151 +			</binding>
   3.152 +		</result>
   3.153 +		
   3.154 +		<result>
   3.155 +			<binding name='x'>
   3.156 +				<uri>http://example.org#B</uri>
   3.157 +			</binding>
   3.158 +			<binding name='y'>
   3.159 +				<uri>http://example.org#G</uri>
   3.160 +			</binding>
   3.161 +			<binding name='overlaps'>
   3.162 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   3.163 +			</binding>
   3.164 +		</result>
   3.165 +		
   3.166 +		<result>
   3.167 +			<binding name='x'>
   3.168 +				<uri>http://example.org#B</uri>
   3.169 +			</binding>
   3.170 +			<binding name='y'>
   3.171 +				<uri>http://example.org#H</uri>
   3.172 +			</binding>
   3.173 +			<binding name='overlaps'>
   3.174 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   3.175 +			</binding>
   3.176 +		</result>
   3.177 +		
   3.178 +		<!-- C -->
   3.179 +		
   3.180 +		<result>
   3.181 +			<binding name='x'>
   3.182 +				<uri>http://example.org#C</uri>
   3.183 +			</binding>
   3.184 +			<binding name='y'>
   3.185 +				<uri>http://example.org#D</uri>
   3.186 +			</binding>
   3.187 +			<binding name='overlaps'>
   3.188 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   3.189 +			</binding>
   3.190 +		</result>
   3.191 +		
   3.192 +		<result>
   3.193 +			<binding name='x'>
   3.194 +				<uri>http://example.org#C</uri>
   3.195 +			</binding>
   3.196 +			<binding name='y'>
   3.197 +				<uri>http://example.org#E</uri>
   3.198 +			</binding>
   3.199 +			<binding name='overlaps'>
   3.200 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   3.201 +			</binding>
   3.202 +		</result>
   3.203 +		
   3.204 +		<result>
   3.205 +			<binding name='x'>
   3.206 +				<uri>http://example.org#C</uri>
   3.207 +			</binding>
   3.208 +			<binding name='y'>
   3.209 +				<uri>http://example.org#F</uri>
   3.210 +			</binding>
   3.211 +			<binding name='overlaps'>
   3.212 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   3.213 +			</binding>
   3.214 +		</result>
   3.215 +		
   3.216 +		<result>
   3.217 +			<binding name='x'>
   3.218 +				<uri>http://example.org#C</uri>
   3.219 +			</binding>
   3.220 +			<binding name='y'>
   3.221 +				<uri>http://example.org#G</uri>
   3.222 +			</binding>
   3.223 +			<binding name='overlaps'>
   3.224 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   3.225 +			</binding>
   3.226 +		</result>
   3.227 +		
   3.228 +		<result>
   3.229 +			<binding name='x'>
   3.230 +				<uri>http://example.org#C</uri>
   3.231 +			</binding>
   3.232 +			<binding name='y'>
   3.233 +				<uri>http://example.org#H</uri>
   3.234 +			</binding>
   3.235 +			<binding name='overlaps'>
   3.236 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   3.237 +			</binding>
   3.238 +		</result>
   3.239 +		
   3.240 +		<!-- D -->
   3.241 +		
   3.242 +		<result>
   3.243 +			<binding name='x'>
   3.244 +				<uri>http://example.org#D</uri>
   3.245 +			</binding>
   3.246 +			<binding name='y'>
   3.247 +				<uri>http://example.org#E</uri>
   3.248 +			</binding>
   3.249 +			<binding name='overlaps'>
   3.250 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   3.251 +			</binding>
   3.252 +		</result>
   3.253 +		
   3.254 +		<result>
   3.255 +			<binding name='x'>
   3.256 +				<uri>http://example.org#D</uri>
   3.257 +			</binding>
   3.258 +			<binding name='y'>
   3.259 +				<uri>http://example.org#F</uri>
   3.260 +			</binding>
   3.261 +			<binding name='overlaps'>
   3.262 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
   3.263 +			</binding>
   3.264 +		</result>
   3.265 +		
   3.266 +		<result>
   3.267 +			<binding name='x'>
   3.268 +				<uri>http://example.org#D</uri>
   3.269 +			</binding>
   3.270 +			<binding name='y'>
   3.271 +				<uri>http://example.org#G</uri>
   3.272 +			</binding>
   3.273 +			<binding name='overlaps'>
   3.274 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   3.275 +			</binding>
   3.276 +		</result>
   3.277 +		
   3.278 +		<result>
   3.279 +			<binding name='x'>
   3.280 +				<uri>http://example.org#D</uri>
   3.281 +			</binding>
   3.282 +			<binding name='y'>
   3.283 +				<uri>http://example.org#H</uri>
   3.284 +			</binding>
   3.285 +			<binding name='overlaps'>
   3.286 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   3.287 +			</binding>
   3.288 +		</result>
   3.289 +		
   3.290 +		<!-- E -->
   3.291 +		
   3.292 +		<result>
   3.293 +			<binding name='x'>
   3.294 +				<uri>http://example.org#E</uri>
   3.295 +			</binding>
   3.296 +			<binding name='y'>
   3.297 +				<uri>http://example.org#F</uri>
   3.298 +			</binding>
   3.299 +			<binding name='overlaps'>
   3.300 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
   3.301 +			</binding>
   3.302 +		</result>
   3.303 +		
   3.304 +		<result>
   3.305 +			<binding name='x'>
   3.306 +				<uri>http://example.org#E</uri>
   3.307 +			</binding>
   3.308 +			<binding name='y'>
   3.309 +				<uri>http://example.org#G</uri>
   3.310 +			</binding>
   3.311 +			<binding name='overlaps'>
   3.312 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   3.313 +			</binding>
   3.314 +		</result>
   3.315 +		
   3.316 +		<result>
   3.317 +			<binding name='x'>
   3.318 +				<uri>http://example.org#E</uri>
   3.319 +			</binding>
   3.320 +			<binding name='y'>
   3.321 +				<uri>http://example.org#H</uri>
   3.322 +			</binding>
   3.323 +			<binding name='overlaps'>
   3.324 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   3.325 +			</binding>
   3.326 +		</result>
   3.327 +		
   3.328 +		<!-- F -->
   3.329 +
   3.330 +		<result>
   3.331 +			<binding name='x'>
   3.332 +				<uri>http://example.org#F</uri>
   3.333 +			</binding>
   3.334 +			<binding name='y'>
   3.335 +				<uri>http://example.org#G</uri>
   3.336 +			</binding>
   3.337 +			<binding name='overlaps'>
   3.338 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   3.339 +			</binding>
   3.340 +		</result>
   3.341 +		
   3.342 +		<result>
   3.343 +			<binding name='x'>
   3.344 +				<uri>http://example.org#F</uri>
   3.345 +			</binding>
   3.346 +			<binding name='y'>
   3.347 +				<uri>http://example.org#H</uri>
   3.348 +			</binding>
   3.349 +			<binding name='overlaps'>
   3.350 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   3.351 +			</binding>
   3.352 +		</result>
   3.353 +		
   3.354 +		<!-- G -->
   3.355 +		
   3.356 +		<result>
   3.357 +			<binding name='x'>
   3.358 +				<uri>http://example.org#G</uri>
   3.359 +			</binding>
   3.360 +			<binding name='y'>
   3.361 +				<uri>http://example.org#H</uri>
   3.362 +			</binding>
   3.363 +			<binding name='overlaps'>
   3.364 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   3.365 +			</binding>
   3.366 +		</result>
   3.367 +	</results>
   3.368 +</sparql>
   3.369 \ 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/RelationalFunctionInSelectTest/Crosses_stRDF_Test.rq	Fri Jun 27 18:55:57 2014 +0300
     4.3 @@ -0,0 +1,11 @@
     4.4 +SELECT ?x ?y (strdf:crosses(?g1, ?g2) as ?overlaps)
     4.5 +WHERE
     4.6 +{
     4.7 +?x geo:hasGeometry ?geom1.
     4.8 +?geom1 geo:asWKT ?g1.
     4.9 +
    4.10 +?y geo:hasGeometry ?geom2.
    4.11 +?geom2 geo:asWKT ?g2.
    4.12 +
    4.13 +FILTER(str(?x)  < str(?y))
    4.14 +}
    4.15 \ 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/bugs/RelationalFunctionInSelectTest/Crosses_stRDF_Test.srx	Fri Jun 27 18:55:57 2014 +0300
     5.3 @@ -0,0 +1,365 @@
     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 +		<variable name='overlaps'/>
    5.10 +	</head>
    5.11 +	<results>
    5.12 +		<result>
    5.13 +			<binding name='x'>
    5.14 +				<uri>http://example.org#A</uri>
    5.15 +			</binding>
    5.16 +			<binding name='y'>
    5.17 +				<uri>http://example.org#B</uri>
    5.18 +			</binding>
    5.19 +			<binding name='overlaps'>
    5.20 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
    5.21 +			</binding>
    5.22 +		</result>
    5.23 +		
    5.24 +		<result>
    5.25 +			<binding name='x'>
    5.26 +				<uri>http://example.org#A</uri>
    5.27 +			</binding>
    5.28 +			<binding name='y'>
    5.29 +				<uri>http://example.org#C</uri>
    5.30 +			</binding>
    5.31 +			<binding name='overlaps'>
    5.32 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
    5.33 +			</binding>
    5.34 +		</result>
    5.35 +		
    5.36 +		<result>
    5.37 +			<binding name='x'>
    5.38 +				<uri>http://example.org#A</uri>
    5.39 +			</binding>
    5.40 +			<binding name='y'>
    5.41 +				<uri>http://example.org#D</uri>
    5.42 +			</binding>
    5.43 +			<binding name='overlaps'>
    5.44 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
    5.45 +			</binding>
    5.46 +		</result>
    5.47 +		
    5.48 +		<result>
    5.49 +			<binding name='x'>
    5.50 +				<uri>http://example.org#A</uri>
    5.51 +			</binding>
    5.52 +			<binding name='y'>
    5.53 +				<uri>http://example.org#E</uri>
    5.54 +			</binding>
    5.55 +			<binding name='overlaps'>
    5.56 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
    5.57 +			</binding>
    5.58 +		</result>
    5.59 +		
    5.60 +		<result>
    5.61 +			<binding name='x'>
    5.62 +				<uri>http://example.org#A</uri>
    5.63 +			</binding>
    5.64 +			<binding name='y'>
    5.65 +				<uri>http://example.org#F</uri>
    5.66 +			</binding>
    5.67 +			<binding name='overlaps'>
    5.68 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
    5.69 +			</binding>
    5.70 +		</result>
    5.71 +		
    5.72 +		<result>
    5.73 +			<binding name='x'>
    5.74 +				<uri>http://example.org#A</uri>
    5.75 +			</binding>
    5.76 +			<binding name='y'>
    5.77 +				<uri>http://example.org#G</uri>
    5.78 +			</binding>
    5.79 +			<binding name='overlaps'>
    5.80 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
    5.81 +			</binding>
    5.82 +		</result>
    5.83 +		
    5.84 +		
    5.85 +		
    5.86 +		<result>
    5.87 +			<binding name='x'>
    5.88 +				<uri>http://example.org#A</uri>
    5.89 +			</binding>
    5.90 +			<binding name='y'>
    5.91 +				<uri>http://example.org#H</uri>
    5.92 +			</binding>
    5.93 +			<binding name='overlaps'>
    5.94 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
    5.95 +			</binding>
    5.96 +		</result>
    5.97 +		
    5.98 +		
    5.99 +		
   5.100 +		
   5.101 +		
   5.102 +		
   5.103 +		
   5.104 +		<!-- B -->
   5.105 +		
   5.106 +		<result>
   5.107 +			<binding name='x'>
   5.108 +				<uri>http://example.org#B</uri>
   5.109 +			</binding>
   5.110 +			<binding name='y'>
   5.111 +				<uri>http://example.org#C</uri>
   5.112 +			</binding>
   5.113 +			<binding name='overlaps'>
   5.114 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   5.115 +			</binding>
   5.116 +		</result>
   5.117 +		
   5.118 +		<result>
   5.119 +			<binding name='x'>
   5.120 +				<uri>http://example.org#B</uri>
   5.121 +			</binding>
   5.122 +			<binding name='y'>
   5.123 +				<uri>http://example.org#D</uri>
   5.124 +			</binding>
   5.125 +			<binding name='overlaps'>
   5.126 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   5.127 +			</binding>
   5.128 +		</result>
   5.129 +		
   5.130 +		<result>
   5.131 +			<binding name='x'>
   5.132 +				<uri>http://example.org#B</uri>
   5.133 +			</binding>
   5.134 +			<binding name='y'>
   5.135 +				<uri>http://example.org#E</uri>
   5.136 +			</binding>
   5.137 +			<binding name='overlaps'>
   5.138 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   5.139 +			</binding>
   5.140 +		</result>
   5.141 +		
   5.142 +		<result>
   5.143 +			<binding name='x'>
   5.144 +				<uri>http://example.org#B</uri>
   5.145 +			</binding>
   5.146 +			<binding name='y'>
   5.147 +				<uri>http://example.org#F</uri>
   5.148 +			</binding>
   5.149 +			<binding name='overlaps'>
   5.150 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   5.151 +			</binding>
   5.152 +		</result>
   5.153 +		
   5.154 +		<result>
   5.155 +			<binding name='x'>
   5.156 +				<uri>http://example.org#B</uri>
   5.157 +			</binding>
   5.158 +			<binding name='y'>
   5.159 +				<uri>http://example.org#G</uri>
   5.160 +			</binding>
   5.161 +			<binding name='overlaps'>
   5.162 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   5.163 +			</binding>
   5.164 +		</result>
   5.165 +		
   5.166 +		<result>
   5.167 +			<binding name='x'>
   5.168 +				<uri>http://example.org#B</uri>
   5.169 +			</binding>
   5.170 +			<binding name='y'>
   5.171 +				<uri>http://example.org#H</uri>
   5.172 +			</binding>
   5.173 +			<binding name='overlaps'>
   5.174 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   5.175 +			</binding>
   5.176 +		</result>
   5.177 +		
   5.178 +		<!-- C -->
   5.179 +		
   5.180 +		<result>
   5.181 +			<binding name='x'>
   5.182 +				<uri>http://example.org#C</uri>
   5.183 +			</binding>
   5.184 +			<binding name='y'>
   5.185 +				<uri>http://example.org#D</uri>
   5.186 +			</binding>
   5.187 +			<binding name='overlaps'>
   5.188 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   5.189 +			</binding>
   5.190 +		</result>
   5.191 +		
   5.192 +		<result>
   5.193 +			<binding name='x'>
   5.194 +				<uri>http://example.org#C</uri>
   5.195 +			</binding>
   5.196 +			<binding name='y'>
   5.197 +				<uri>http://example.org#E</uri>
   5.198 +			</binding>
   5.199 +			<binding name='overlaps'>
   5.200 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   5.201 +			</binding>
   5.202 +		</result>
   5.203 +		
   5.204 +		<result>
   5.205 +			<binding name='x'>
   5.206 +				<uri>http://example.org#C</uri>
   5.207 +			</binding>
   5.208 +			<binding name='y'>
   5.209 +				<uri>http://example.org#F</uri>
   5.210 +			</binding>
   5.211 +			<binding name='overlaps'>
   5.212 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   5.213 +			</binding>
   5.214 +		</result>
   5.215 +		
   5.216 +		<result>
   5.217 +			<binding name='x'>
   5.218 +				<uri>http://example.org#C</uri>
   5.219 +			</binding>
   5.220 +			<binding name='y'>
   5.221 +				<uri>http://example.org#G</uri>
   5.222 +			</binding>
   5.223 +			<binding name='overlaps'>
   5.224 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   5.225 +			</binding>
   5.226 +		</result>
   5.227 +		
   5.228 +		<result>
   5.229 +			<binding name='x'>
   5.230 +				<uri>http://example.org#C</uri>
   5.231 +			</binding>
   5.232 +			<binding name='y'>
   5.233 +				<uri>http://example.org#H</uri>
   5.234 +			</binding>
   5.235 +			<binding name='overlaps'>
   5.236 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   5.237 +			</binding>
   5.238 +		</result>
   5.239 +		
   5.240 +		<!-- D -->
   5.241 +		
   5.242 +		<result>
   5.243 +			<binding name='x'>
   5.244 +				<uri>http://example.org#D</uri>
   5.245 +			</binding>
   5.246 +			<binding name='y'>
   5.247 +				<uri>http://example.org#E</uri>
   5.248 +			</binding>
   5.249 +			<binding name='overlaps'>
   5.250 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   5.251 +			</binding>
   5.252 +		</result>
   5.253 +		
   5.254 +		<result>
   5.255 +			<binding name='x'>
   5.256 +				<uri>http://example.org#D</uri>
   5.257 +			</binding>
   5.258 +			<binding name='y'>
   5.259 +				<uri>http://example.org#F</uri>
   5.260 +			</binding>
   5.261 +			<binding name='overlaps'>
   5.262 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
   5.263 +			</binding>
   5.264 +		</result>
   5.265 +		
   5.266 +		<result>
   5.267 +			<binding name='x'>
   5.268 +				<uri>http://example.org#D</uri>
   5.269 +			</binding>
   5.270 +			<binding name='y'>
   5.271 +				<uri>http://example.org#G</uri>
   5.272 +			</binding>
   5.273 +			<binding name='overlaps'>
   5.274 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   5.275 +			</binding>
   5.276 +		</result>
   5.277 +		
   5.278 +		<result>
   5.279 +			<binding name='x'>
   5.280 +				<uri>http://example.org#D</uri>
   5.281 +			</binding>
   5.282 +			<binding name='y'>
   5.283 +				<uri>http://example.org#H</uri>
   5.284 +			</binding>
   5.285 +			<binding name='overlaps'>
   5.286 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   5.287 +			</binding>
   5.288 +		</result>
   5.289 +		
   5.290 +		<!-- E -->
   5.291 +		
   5.292 +		<result>
   5.293 +			<binding name='x'>
   5.294 +				<uri>http://example.org#E</uri>
   5.295 +			</binding>
   5.296 +			<binding name='y'>
   5.297 +				<uri>http://example.org#F</uri>
   5.298 +			</binding>
   5.299 +			<binding name='overlaps'>
   5.300 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
   5.301 +			</binding>
   5.302 +		</result>
   5.303 +		
   5.304 +		<result>
   5.305 +			<binding name='x'>
   5.306 +				<uri>http://example.org#E</uri>
   5.307 +			</binding>
   5.308 +			<binding name='y'>
   5.309 +				<uri>http://example.org#G</uri>
   5.310 +			</binding>
   5.311 +			<binding name='overlaps'>
   5.312 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   5.313 +			</binding>
   5.314 +		</result>
   5.315 +		
   5.316 +		<result>
   5.317 +			<binding name='x'>
   5.318 +				<uri>http://example.org#E</uri>
   5.319 +			</binding>
   5.320 +			<binding name='y'>
   5.321 +				<uri>http://example.org#H</uri>
   5.322 +			</binding>
   5.323 +			<binding name='overlaps'>
   5.324 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   5.325 +			</binding>
   5.326 +		</result>
   5.327 +		
   5.328 +		<!-- F -->
   5.329 +
   5.330 +		<result>
   5.331 +			<binding name='x'>
   5.332 +				<uri>http://example.org#F</uri>
   5.333 +			</binding>
   5.334 +			<binding name='y'>
   5.335 +				<uri>http://example.org#G</uri>
   5.336 +			</binding>
   5.337 +			<binding name='overlaps'>
   5.338 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   5.339 +			</binding>
   5.340 +		</result>
   5.341 +		
   5.342 +		<result>
   5.343 +			<binding name='x'>
   5.344 +				<uri>http://example.org#F</uri>
   5.345 +			</binding>
   5.346 +			<binding name='y'>
   5.347 +				<uri>http://example.org#H</uri>
   5.348 +			</binding>
   5.349 +			<binding name='overlaps'>
   5.350 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   5.351 +			</binding>
   5.352 +		</result>
   5.353 +		
   5.354 +		<!-- G -->
   5.355 +		
   5.356 +		<result>
   5.357 +			<binding name='x'>
   5.358 +				<uri>http://example.org#G</uri>
   5.359 +			</binding>
   5.360 +			<binding name='y'>
   5.361 +				<uri>http://example.org#H</uri>
   5.362 +			</binding>
   5.363 +			<binding name='overlaps'>
   5.364 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   5.365 +			</binding>
   5.366 +		</result>
   5.367 +	</results>
   5.368 +</sparql>
   5.369 \ 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/RelationalFunctionInSelectTest/Intersects_GEOSPARQL_Test.rq	Fri Jun 27 18:55:57 2014 +0300
     6.3 @@ -0,0 +1,11 @@
     6.4 +SELECT ?x ?y (geof:sfIntersects(?g1, ?g2) as ?intersects)
     6.5 +WHERE
     6.6 +{
     6.7 +?x geo:hasGeometry ?geom1.
     6.8 +?geom1 geo:asWKT ?g1.
     6.9 +
    6.10 +?y geo:hasGeometry ?geom2.
    6.11 +?geom2 geo:asWKT ?g2.
    6.12 +
    6.13 +FILTER(str(?x)  < str(?y))
    6.14 +}
    6.15 \ 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/bugs/RelationalFunctionInSelectTest/Intersects_GEOSPARQL_Test.srx	Fri Jun 27 18:55:57 2014 +0300
     7.3 @@ -0,0 +1,365 @@
     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 +		<variable name='intersects'/>
    7.10 +	</head>
    7.11 +	<results>
    7.12 +		<result>
    7.13 +			<binding name='x'>
    7.14 +				<uri>http://example.org#A</uri>
    7.15 +			</binding>
    7.16 +			<binding name='y'>
    7.17 +				<uri>http://example.org#B</uri>
    7.18 +			</binding>
    7.19 +			<binding name='intersects'>
    7.20 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
    7.21 +			</binding>
    7.22 +		</result>
    7.23 +		
    7.24 +		<result>
    7.25 +			<binding name='x'>
    7.26 +				<uri>http://example.org#A</uri>
    7.27 +			</binding>
    7.28 +			<binding name='y'>
    7.29 +				<uri>http://example.org#C</uri>
    7.30 +			</binding>
    7.31 +			<binding name='intersects'>
    7.32 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
    7.33 +			</binding>
    7.34 +		</result>
    7.35 +		
    7.36 +		<result>
    7.37 +			<binding name='x'>
    7.38 +				<uri>http://example.org#A</uri>
    7.39 +			</binding>
    7.40 +			<binding name='y'>
    7.41 +				<uri>http://example.org#D</uri>
    7.42 +			</binding>
    7.43 +			<binding name='intersects'>
    7.44 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
    7.45 +			</binding>
    7.46 +		</result>
    7.47 +		
    7.48 +		<result>
    7.49 +			<binding name='x'>
    7.50 +				<uri>http://example.org#A</uri>
    7.51 +			</binding>
    7.52 +			<binding name='y'>
    7.53 +				<uri>http://example.org#E</uri>
    7.54 +			</binding>
    7.55 +			<binding name='intersects'>
    7.56 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
    7.57 +			</binding>
    7.58 +		</result>
    7.59 +		
    7.60 +		<result>
    7.61 +			<binding name='x'>
    7.62 +				<uri>http://example.org#A</uri>
    7.63 +			</binding>
    7.64 +			<binding name='y'>
    7.65 +				<uri>http://example.org#F</uri>
    7.66 +			</binding>
    7.67 +			<binding name='intersects'>
    7.68 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
    7.69 +			</binding>
    7.70 +		</result>
    7.71 +		
    7.72 +		<result>
    7.73 +			<binding name='x'>
    7.74 +				<uri>http://example.org#A</uri>
    7.75 +			</binding>
    7.76 +			<binding name='y'>
    7.77 +				<uri>http://example.org#G</uri>
    7.78 +			</binding>
    7.79 +			<binding name='intersects'>
    7.80 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
    7.81 +			</binding>
    7.82 +		</result>
    7.83 +		
    7.84 +		
    7.85 +		
    7.86 +		<result>
    7.87 +			<binding name='x'>
    7.88 +				<uri>http://example.org#A</uri>
    7.89 +			</binding>
    7.90 +			<binding name='y'>
    7.91 +				<uri>http://example.org#H</uri>
    7.92 +			</binding>
    7.93 +			<binding name='intersects'>
    7.94 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
    7.95 +			</binding>
    7.96 +		</result>
    7.97 +		
    7.98 +		
    7.99 +		
   7.100 +		
   7.101 +		
   7.102 +		
   7.103 +		
   7.104 +		<!-- B -->
   7.105 +		
   7.106 +		<result>
   7.107 +			<binding name='x'>
   7.108 +				<uri>http://example.org#B</uri>
   7.109 +			</binding>
   7.110 +			<binding name='y'>
   7.111 +				<uri>http://example.org#C</uri>
   7.112 +			</binding>
   7.113 +			<binding name='intersects'>
   7.114 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
   7.115 +			</binding>
   7.116 +		</result>
   7.117 +		
   7.118 +		<result>
   7.119 +			<binding name='x'>
   7.120 +				<uri>http://example.org#B</uri>
   7.121 +			</binding>
   7.122 +			<binding name='y'>
   7.123 +				<uri>http://example.org#D</uri>
   7.124 +			</binding>
   7.125 +			<binding name='intersects'>
   7.126 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   7.127 +			</binding>
   7.128 +		</result>
   7.129 +		
   7.130 +		<result>
   7.131 +			<binding name='x'>
   7.132 +				<uri>http://example.org#B</uri>
   7.133 +			</binding>
   7.134 +			<binding name='y'>
   7.135 +				<uri>http://example.org#E</uri>
   7.136 +			</binding>
   7.137 +			<binding name='intersects'>
   7.138 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   7.139 +			</binding>
   7.140 +		</result>
   7.141 +		
   7.142 +		<result>
   7.143 +			<binding name='x'>
   7.144 +				<uri>http://example.org#B</uri>
   7.145 +			</binding>
   7.146 +			<binding name='y'>
   7.147 +				<uri>http://example.org#F</uri>
   7.148 +			</binding>
   7.149 +			<binding name='intersects'>
   7.150 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   7.151 +			</binding>
   7.152 +		</result>
   7.153 +		
   7.154 +		<result>
   7.155 +			<binding name='x'>
   7.156 +				<uri>http://example.org#B</uri>
   7.157 +			</binding>
   7.158 +			<binding name='y'>
   7.159 +				<uri>http://example.org#G</uri>
   7.160 +			</binding>
   7.161 +			<binding name='intersects'>
   7.162 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
   7.163 +			</binding>
   7.164 +		</result>
   7.165 +		
   7.166 +		<result>
   7.167 +			<binding name='x'>
   7.168 +				<uri>http://example.org#B</uri>
   7.169 +			</binding>
   7.170 +			<binding name='y'>
   7.171 +				<uri>http://example.org#H</uri>
   7.172 +			</binding>
   7.173 +			<binding name='intersects'>
   7.174 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   7.175 +			</binding>
   7.176 +		</result>
   7.177 +		
   7.178 +		<!-- C -->
   7.179 +		
   7.180 +		<result>
   7.181 +			<binding name='x'>
   7.182 +				<uri>http://example.org#C</uri>
   7.183 +			</binding>
   7.184 +			<binding name='y'>
   7.185 +				<uri>http://example.org#D</uri>
   7.186 +			</binding>
   7.187 +			<binding name='intersects'>
   7.188 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
   7.189 +			</binding>
   7.190 +		</result>
   7.191 +		
   7.192 +		<result>
   7.193 +			<binding name='x'>
   7.194 +				<uri>http://example.org#C</uri>
   7.195 +			</binding>
   7.196 +			<binding name='y'>
   7.197 +				<uri>http://example.org#E</uri>
   7.198 +			</binding>
   7.199 +			<binding name='intersects'>
   7.200 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
   7.201 +			</binding>
   7.202 +		</result>
   7.203 +		
   7.204 +		<result>
   7.205 +			<binding name='x'>
   7.206 +				<uri>http://example.org#C</uri>
   7.207 +			</binding>
   7.208 +			<binding name='y'>
   7.209 +				<uri>http://example.org#F</uri>
   7.210 +			</binding>
   7.211 +			<binding name='intersects'>
   7.212 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
   7.213 +			</binding>
   7.214 +		</result>
   7.215 +		
   7.216 +		<result>
   7.217 +			<binding name='x'>
   7.218 +				<uri>http://example.org#C</uri>
   7.219 +			</binding>
   7.220 +			<binding name='y'>
   7.221 +				<uri>http://example.org#G</uri>
   7.222 +			</binding>
   7.223 +			<binding name='intersects'>
   7.224 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
   7.225 +			</binding>
   7.226 +		</result>
   7.227 +		
   7.228 +		<result>
   7.229 +			<binding name='x'>
   7.230 +				<uri>http://example.org#C</uri>
   7.231 +			</binding>
   7.232 +			<binding name='y'>
   7.233 +				<uri>http://example.org#H</uri>
   7.234 +			</binding>
   7.235 +			<binding name='intersects'>
   7.236 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
   7.237 +			</binding>
   7.238 +		</result>
   7.239 +		
   7.240 +		<!-- D -->
   7.241 +		
   7.242 +		<result>
   7.243 +			<binding name='x'>
   7.244 +				<uri>http://example.org#D</uri>
   7.245 +			</binding>
   7.246 +			<binding name='y'>
   7.247 +				<uri>http://example.org#E</uri>
   7.248 +			</binding>
   7.249 +			<binding name='intersects'>
   7.250 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
   7.251 +			</binding>
   7.252 +		</result>
   7.253 +		
   7.254 +		<result>
   7.255 +			<binding name='x'>
   7.256 +				<uri>http://example.org#D</uri>
   7.257 +			</binding>
   7.258 +			<binding name='y'>
   7.259 +				<uri>http://example.org#F</uri>
   7.260 +			</binding>
   7.261 +			<binding name='intersects'>
   7.262 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
   7.263 +			</binding>
   7.264 +		</result>
   7.265 +		
   7.266 +		<result>
   7.267 +			<binding name='x'>
   7.268 +				<uri>http://example.org#D</uri>
   7.269 +			</binding>
   7.270 +			<binding name='y'>
   7.271 +				<uri>http://example.org#G</uri>
   7.272 +			</binding>
   7.273 +			<binding name='intersects'>
   7.274 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   7.275 +			</binding>
   7.276 +		</result>
   7.277 +		
   7.278 +		<result>
   7.279 +			<binding name='x'>
   7.280 +				<uri>http://example.org#D</uri>
   7.281 +			</binding>
   7.282 +			<binding name='y'>
   7.283 +				<uri>http://example.org#H</uri>
   7.284 +			</binding>
   7.285 +			<binding name='intersects'>
   7.286 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   7.287 +			</binding>
   7.288 +		</result>
   7.289 +		
   7.290 +		<!-- E -->
   7.291 +		
   7.292 +		<result>
   7.293 +			<binding name='x'>
   7.294 +				<uri>http://example.org#E</uri>
   7.295 +			</binding>
   7.296 +			<binding name='y'>
   7.297 +				<uri>http://example.org#F</uri>
   7.298 +			</binding>
   7.299 +			<binding name='intersects'>
   7.300 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
   7.301 +			</binding>
   7.302 +		</result>
   7.303 +		
   7.304 +		<result>
   7.305 +			<binding name='x'>
   7.306 +				<uri>http://example.org#E</uri>
   7.307 +			</binding>
   7.308 +			<binding name='y'>
   7.309 +				<uri>http://example.org#G</uri>
   7.310 +			</binding>
   7.311 +			<binding name='intersects'>
   7.312 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   7.313 +			</binding>
   7.314 +		</result>
   7.315 +		
   7.316 +		<result>
   7.317 +			<binding name='x'>
   7.318 +				<uri>http://example.org#E</uri>
   7.319 +			</binding>
   7.320 +			<binding name='y'>
   7.321 +				<uri>http://example.org#H</uri>
   7.322 +			</binding>
   7.323 +			<binding name='intersects'>
   7.324 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   7.325 +			</binding>
   7.326 +		</result>
   7.327 +		
   7.328 +		<!-- F -->
   7.329 +
   7.330 +		<result>
   7.331 +			<binding name='x'>
   7.332 +				<uri>http://example.org#F</uri>
   7.333 +			</binding>
   7.334 +			<binding name='y'>
   7.335 +				<uri>http://example.org#G</uri>
   7.336 +			</binding>
   7.337 +			<binding name='intersects'>
   7.338 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   7.339 +			</binding>
   7.340 +		</result>
   7.341 +		
   7.342 +		<result>
   7.343 +			<binding name='x'>
   7.344 +				<uri>http://example.org#F</uri>
   7.345 +			</binding>
   7.346 +			<binding name='y'>
   7.347 +				<uri>http://example.org#H</uri>
   7.348 +			</binding>
   7.349 +			<binding name='intersects'>
   7.350 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   7.351 +			</binding>
   7.352 +		</result>
   7.353 +		
   7.354 +		<!-- G -->
   7.355 +		
   7.356 +		<result>
   7.357 +			<binding name='x'>
   7.358 +				<uri>http://example.org#G</uri>
   7.359 +			</binding>
   7.360 +			<binding name='y'>
   7.361 +				<uri>http://example.org#H</uri>
   7.362 +			</binding>
   7.363 +			<binding name='intersects'>
   7.364 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   7.365 +			</binding>
   7.366 +		</result>
   7.367 +	</results>
   7.368 +</sparql>
   7.369 \ 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/bugs/RelationalFunctionInSelectTest/Intersects_stRDF_Test.rq	Fri Jun 27 18:55:57 2014 +0300
     8.3 @@ -0,0 +1,11 @@
     8.4 +SELECT ?x ?y (strdf:intersects(?g1, ?g2) as ?intersects)
     8.5 +WHERE
     8.6 +{
     8.7 +?x geo:hasGeometry ?geom1.
     8.8 +?geom1 geo:asWKT ?g1.
     8.9 +
    8.10 +?y geo:hasGeometry ?geom2.
    8.11 +?geom2 geo:asWKT ?g2.
    8.12 +
    8.13 +FILTER(str(?x)  < str(?y))
    8.14 +}
    8.15 \ 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/bugs/RelationalFunctionInSelectTest/Intersects_stRDF_Test.srx	Fri Jun 27 18:55:57 2014 +0300
     9.3 @@ -0,0 +1,365 @@
     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 +		<variable name='intersects'/>
    9.10 +	</head>
    9.11 +	<results>
    9.12 +		<result>
    9.13 +			<binding name='x'>
    9.14 +				<uri>http://example.org#A</uri>
    9.15 +			</binding>
    9.16 +			<binding name='y'>
    9.17 +				<uri>http://example.org#B</uri>
    9.18 +			</binding>
    9.19 +			<binding name='intersects'>
    9.20 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
    9.21 +			</binding>
    9.22 +		</result>
    9.23 +		
    9.24 +		<result>
    9.25 +			<binding name='x'>
    9.26 +				<uri>http://example.org#A</uri>
    9.27 +			</binding>
    9.28 +			<binding name='y'>
    9.29 +				<uri>http://example.org#C</uri>
    9.30 +			</binding>
    9.31 +			<binding name='intersects'>
    9.32 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
    9.33 +			</binding>
    9.34 +		</result>
    9.35 +		
    9.36 +		<result>
    9.37 +			<binding name='x'>
    9.38 +				<uri>http://example.org#A</uri>
    9.39 +			</binding>
    9.40 +			<binding name='y'>
    9.41 +				<uri>http://example.org#D</uri>
    9.42 +			</binding>
    9.43 +			<binding name='intersects'>
    9.44 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
    9.45 +			</binding>
    9.46 +		</result>
    9.47 +		
    9.48 +		<result>
    9.49 +			<binding name='x'>
    9.50 +				<uri>http://example.org#A</uri>
    9.51 +			</binding>
    9.52 +			<binding name='y'>
    9.53 +				<uri>http://example.org#E</uri>
    9.54 +			</binding>
    9.55 +			<binding name='intersects'>
    9.56 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
    9.57 +			</binding>
    9.58 +		</result>
    9.59 +		
    9.60 +		<result>
    9.61 +			<binding name='x'>
    9.62 +				<uri>http://example.org#A</uri>
    9.63 +			</binding>
    9.64 +			<binding name='y'>
    9.65 +				<uri>http://example.org#F</uri>
    9.66 +			</binding>
    9.67 +			<binding name='intersects'>
    9.68 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
    9.69 +			</binding>
    9.70 +		</result>
    9.71 +		
    9.72 +		<result>
    9.73 +			<binding name='x'>
    9.74 +				<uri>http://example.org#A</uri>
    9.75 +			</binding>
    9.76 +			<binding name='y'>
    9.77 +				<uri>http://example.org#G</uri>
    9.78 +			</binding>
    9.79 +			<binding name='intersects'>
    9.80 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
    9.81 +			</binding>
    9.82 +		</result>
    9.83 +		
    9.84 +		
    9.85 +		
    9.86 +		<result>
    9.87 +			<binding name='x'>
    9.88 +				<uri>http://example.org#A</uri>
    9.89 +			</binding>
    9.90 +			<binding name='y'>
    9.91 +				<uri>http://example.org#H</uri>
    9.92 +			</binding>
    9.93 +			<binding name='intersects'>
    9.94 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
    9.95 +			</binding>
    9.96 +		</result>
    9.97 +		
    9.98 +		
    9.99 +		
   9.100 +		
   9.101 +		
   9.102 +		
   9.103 +		
   9.104 +		<!-- B -->
   9.105 +		
   9.106 +		<result>
   9.107 +			<binding name='x'>
   9.108 +				<uri>http://example.org#B</uri>
   9.109 +			</binding>
   9.110 +			<binding name='y'>
   9.111 +				<uri>http://example.org#C</uri>
   9.112 +			</binding>
   9.113 +			<binding name='intersects'>
   9.114 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
   9.115 +			</binding>
   9.116 +		</result>
   9.117 +		
   9.118 +		<result>
   9.119 +			<binding name='x'>
   9.120 +				<uri>http://example.org#B</uri>
   9.121 +			</binding>
   9.122 +			<binding name='y'>
   9.123 +				<uri>http://example.org#D</uri>
   9.124 +			</binding>
   9.125 +			<binding name='intersects'>
   9.126 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   9.127 +			</binding>
   9.128 +		</result>
   9.129 +		
   9.130 +		<result>
   9.131 +			<binding name='x'>
   9.132 +				<uri>http://example.org#B</uri>
   9.133 +			</binding>
   9.134 +			<binding name='y'>
   9.135 +				<uri>http://example.org#E</uri>
   9.136 +			</binding>
   9.137 +			<binding name='intersects'>
   9.138 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   9.139 +			</binding>
   9.140 +		</result>
   9.141 +		
   9.142 +		<result>
   9.143 +			<binding name='x'>
   9.144 +				<uri>http://example.org#B</uri>
   9.145 +			</binding>
   9.146 +			<binding name='y'>
   9.147 +				<uri>http://example.org#F</uri>
   9.148 +			</binding>
   9.149 +			<binding name='intersects'>
   9.150 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   9.151 +			</binding>
   9.152 +		</result>
   9.153 +		
   9.154 +		<result>
   9.155 +			<binding name='x'>
   9.156 +				<uri>http://example.org#B</uri>
   9.157 +			</binding>
   9.158 +			<binding name='y'>
   9.159 +				<uri>http://example.org#G</uri>
   9.160 +			</binding>
   9.161 +			<binding name='intersects'>
   9.162 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
   9.163 +			</binding>
   9.164 +		</result>
   9.165 +		
   9.166 +		<result>
   9.167 +			<binding name='x'>
   9.168 +				<uri>http://example.org#B</uri>
   9.169 +			</binding>
   9.170 +			<binding name='y'>
   9.171 +				<uri>http://example.org#H</uri>
   9.172 +			</binding>
   9.173 +			<binding name='intersects'>
   9.174 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   9.175 +			</binding>
   9.176 +		</result>
   9.177 +		
   9.178 +		<!-- C -->
   9.179 +		
   9.180 +		<result>
   9.181 +			<binding name='x'>
   9.182 +				<uri>http://example.org#C</uri>
   9.183 +			</binding>
   9.184 +			<binding name='y'>
   9.185 +				<uri>http://example.org#D</uri>
   9.186 +			</binding>
   9.187 +			<binding name='intersects'>
   9.188 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
   9.189 +			</binding>
   9.190 +		</result>
   9.191 +		
   9.192 +		<result>
   9.193 +			<binding name='x'>
   9.194 +				<uri>http://example.org#C</uri>
   9.195 +			</binding>
   9.196 +			<binding name='y'>
   9.197 +				<uri>http://example.org#E</uri>
   9.198 +			</binding>
   9.199 +			<binding name='intersects'>
   9.200 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
   9.201 +			</binding>
   9.202 +		</result>
   9.203 +		
   9.204 +		<result>
   9.205 +			<binding name='x'>
   9.206 +				<uri>http://example.org#C</uri>
   9.207 +			</binding>
   9.208 +			<binding name='y'>
   9.209 +				<uri>http://example.org#F</uri>
   9.210 +			</binding>
   9.211 +			<binding name='intersects'>
   9.212 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
   9.213 +			</binding>
   9.214 +		</result>
   9.215 +		
   9.216 +		<result>
   9.217 +			<binding name='x'>
   9.218 +				<uri>http://example.org#C</uri>
   9.219 +			</binding>
   9.220 +			<binding name='y'>
   9.221 +				<uri>http://example.org#G</uri>
   9.222 +			</binding>
   9.223 +			<binding name='intersects'>
   9.224 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
   9.225 +			</binding>
   9.226 +		</result>
   9.227 +		
   9.228 +		<result>
   9.229 +			<binding name='x'>
   9.230 +				<uri>http://example.org#C</uri>
   9.231 +			</binding>
   9.232 +			<binding name='y'>
   9.233 +				<uri>http://example.org#H</uri>
   9.234 +			</binding>
   9.235 +			<binding name='intersects'>
   9.236 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
   9.237 +			</binding>
   9.238 +		</result>
   9.239 +		
   9.240 +		<!-- D -->
   9.241 +		
   9.242 +		<result>
   9.243 +			<binding name='x'>
   9.244 +				<uri>http://example.org#D</uri>
   9.245 +			</binding>
   9.246 +			<binding name='y'>
   9.247 +				<uri>http://example.org#E</uri>
   9.248 +			</binding>
   9.249 +			<binding name='intersects'>
   9.250 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
   9.251 +			</binding>
   9.252 +		</result>
   9.253 +		
   9.254 +		<result>
   9.255 +			<binding name='x'>
   9.256 +				<uri>http://example.org#D</uri>
   9.257 +			</binding>
   9.258 +			<binding name='y'>
   9.259 +				<uri>http://example.org#F</uri>
   9.260 +			</binding>
   9.261 +			<binding name='intersects'>
   9.262 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
   9.263 +			</binding>
   9.264 +		</result>
   9.265 +		
   9.266 +		<result>
   9.267 +			<binding name='x'>
   9.268 +				<uri>http://example.org#D</uri>
   9.269 +			</binding>
   9.270 +			<binding name='y'>
   9.271 +				<uri>http://example.org#G</uri>
   9.272 +			</binding>
   9.273 +			<binding name='intersects'>
   9.274 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   9.275 +			</binding>
   9.276 +		</result>
   9.277 +		
   9.278 +		<result>
   9.279 +			<binding name='x'>
   9.280 +				<uri>http://example.org#D</uri>
   9.281 +			</binding>
   9.282 +			<binding name='y'>
   9.283 +				<uri>http://example.org#H</uri>
   9.284 +			</binding>
   9.285 +			<binding name='intersects'>
   9.286 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   9.287 +			</binding>
   9.288 +		</result>
   9.289 +		
   9.290 +		<!-- E -->
   9.291 +		
   9.292 +		<result>
   9.293 +			<binding name='x'>
   9.294 +				<uri>http://example.org#E</uri>
   9.295 +			</binding>
   9.296 +			<binding name='y'>
   9.297 +				<uri>http://example.org#F</uri>
   9.298 +			</binding>
   9.299 +			<binding name='intersects'>
   9.300 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
   9.301 +			</binding>
   9.302 +		</result>
   9.303 +		
   9.304 +		<result>
   9.305 +			<binding name='x'>
   9.306 +				<uri>http://example.org#E</uri>
   9.307 +			</binding>
   9.308 +			<binding name='y'>
   9.309 +				<uri>http://example.org#G</uri>
   9.310 +			</binding>
   9.311 +			<binding name='intersects'>
   9.312 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   9.313 +			</binding>
   9.314 +		</result>
   9.315 +		
   9.316 +		<result>
   9.317 +			<binding name='x'>
   9.318 +				<uri>http://example.org#E</uri>
   9.319 +			</binding>
   9.320 +			<binding name='y'>
   9.321 +				<uri>http://example.org#H</uri>
   9.322 +			</binding>
   9.323 +			<binding name='intersects'>
   9.324 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   9.325 +			</binding>
   9.326 +		</result>
   9.327 +		
   9.328 +		<!-- F -->
   9.329 +
   9.330 +		<result>
   9.331 +			<binding name='x'>
   9.332 +				<uri>http://example.org#F</uri>
   9.333 +			</binding>
   9.334 +			<binding name='y'>
   9.335 +				<uri>http://example.org#G</uri>
   9.336 +			</binding>
   9.337 +			<binding name='intersects'>
   9.338 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   9.339 +			</binding>
   9.340 +		</result>
   9.341 +		
   9.342 +		<result>
   9.343 +			<binding name='x'>
   9.344 +				<uri>http://example.org#F</uri>
   9.345 +			</binding>
   9.346 +			<binding name='y'>
   9.347 +				<uri>http://example.org#H</uri>
   9.348 +			</binding>
   9.349 +			<binding name='intersects'>
   9.350 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   9.351 +			</binding>
   9.352 +		</result>
   9.353 +		
   9.354 +		<!-- G -->
   9.355 +		
   9.356 +		<result>
   9.357 +			<binding name='x'>
   9.358 +				<uri>http://example.org#G</uri>
   9.359 +			</binding>
   9.360 +			<binding name='y'>
   9.361 +				<uri>http://example.org#H</uri>
   9.362 +			</binding>
   9.363 +			<binding name='intersects'>
   9.364 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   9.365 +			</binding>
   9.366 +		</result>
   9.367 +	</results>
   9.368 +</sparql>
   9.369 \ 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/bugs/RelationalFunctionInSelectTest/Overlaps_GEOSPARQL_Test.rq	Fri Jun 27 18:55:57 2014 +0300
    10.3 @@ -0,0 +1,11 @@
    10.4 +SELECT ?x ?y (geof:sfOverlaps(?g1, ?g2) as ?overlaps)
    10.5 +WHERE
    10.6 +{
    10.7 +?x geo:hasGeometry ?geom1.
    10.8 +?geom1 geo:asWKT ?g1.
    10.9 +
   10.10 +?y geo:hasGeometry ?geom2.
   10.11 +?geom2 geo:asWKT ?g2.
   10.12 +
   10.13 +FILTER(str(?x)  < str(?y))
   10.14 +}
   10.15 \ 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/bugs/RelationalFunctionInSelectTest/Overlaps_GEOSPARQL_Test.srx	Fri Jun 27 18:55:57 2014 +0300
    11.3 @@ -0,0 +1,365 @@
    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 +		<variable name='overlaps'/>
   11.10 +	</head>
   11.11 +	<results>
   11.12 +		<result>
   11.13 +			<binding name='x'>
   11.14 +				<uri>http://example.org#A</uri>
   11.15 +			</binding>
   11.16 +			<binding name='y'>
   11.17 +				<uri>http://example.org#B</uri>
   11.18 +			</binding>
   11.19 +			<binding name='overlaps'>
   11.20 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   11.21 +			</binding>
   11.22 +		</result>
   11.23 +		
   11.24 +		<result>
   11.25 +			<binding name='x'>
   11.26 +				<uri>http://example.org#A</uri>
   11.27 +			</binding>
   11.28 +			<binding name='y'>
   11.29 +				<uri>http://example.org#C</uri>
   11.30 +			</binding>
   11.31 +			<binding name='overlaps'>
   11.32 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   11.33 +			</binding>
   11.34 +		</result>
   11.35 +		
   11.36 +		<result>
   11.37 +			<binding name='x'>
   11.38 +				<uri>http://example.org#A</uri>
   11.39 +			</binding>
   11.40 +			<binding name='y'>
   11.41 +				<uri>http://example.org#D</uri>
   11.42 +			</binding>
   11.43 +			<binding name='overlaps'>
   11.44 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   11.45 +			</binding>
   11.46 +		</result>
   11.47 +		
   11.48 +		<result>
   11.49 +			<binding name='x'>
   11.50 +				<uri>http://example.org#A</uri>
   11.51 +			</binding>
   11.52 +			<binding name='y'>
   11.53 +				<uri>http://example.org#E</uri>
   11.54 +			</binding>
   11.55 +			<binding name='overlaps'>
   11.56 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   11.57 +			</binding>
   11.58 +		</result>
   11.59 +		
   11.60 +		<result>
   11.61 +			<binding name='x'>
   11.62 +				<uri>http://example.org#A</uri>
   11.63 +			</binding>
   11.64 +			<binding name='y'>
   11.65 +				<uri>http://example.org#F</uri>
   11.66 +			</binding>
   11.67 +			<binding name='overlaps'>
   11.68 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   11.69 +			</binding>
   11.70 +		</result>
   11.71 +		
   11.72 +		<result>
   11.73 +			<binding name='x'>
   11.74 +				<uri>http://example.org#A</uri>
   11.75 +			</binding>
   11.76 +			<binding name='y'>
   11.77 +				<uri>http://example.org#G</uri>
   11.78 +			</binding>
   11.79 +			<binding name='overlaps'>
   11.80 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   11.81 +			</binding>
   11.82 +		</result>
   11.83 +		
   11.84 +		
   11.85 +		
   11.86 +		<result>
   11.87 +			<binding name='x'>
   11.88 +				<uri>http://example.org#A</uri>
   11.89 +			</binding>
   11.90 +			<binding name='y'>
   11.91 +				<uri>http://example.org#H</uri>
   11.92 +			</binding>
   11.93 +			<binding name='overlaps'>
   11.94 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   11.95 +			</binding>
   11.96 +		</result>
   11.97 +		
   11.98 +		
   11.99 +		
  11.100 +		
  11.101 +		
  11.102 +		
  11.103 +		
  11.104 +		<!-- B -->
  11.105 +		
  11.106 +		<result>
  11.107 +			<binding name='x'>
  11.108 +				<uri>http://example.org#B</uri>
  11.109 +			</binding>
  11.110 +			<binding name='y'>
  11.111 +				<uri>http://example.org#C</uri>
  11.112 +			</binding>
  11.113 +			<binding name='overlaps'>
  11.114 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
  11.115 +			</binding>
  11.116 +		</result>
  11.117 +		
  11.118 +		<result>
  11.119 +			<binding name='x'>
  11.120 +				<uri>http://example.org#B</uri>
  11.121 +			</binding>
  11.122 +			<binding name='y'>
  11.123 +				<uri>http://example.org#D</uri>
  11.124 +			</binding>
  11.125 +			<binding name='overlaps'>
  11.126 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  11.127 +			</binding>
  11.128 +		</result>
  11.129 +		
  11.130 +		<result>
  11.131 +			<binding name='x'>
  11.132 +				<uri>http://example.org#B</uri>
  11.133 +			</binding>
  11.134 +			<binding name='y'>
  11.135 +				<uri>http://example.org#E</uri>
  11.136 +			</binding>
  11.137 +			<binding name='overlaps'>
  11.138 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  11.139 +			</binding>
  11.140 +		</result>
  11.141 +		
  11.142 +		<result>
  11.143 +			<binding name='x'>
  11.144 +				<uri>http://example.org#B</uri>
  11.145 +			</binding>
  11.146 +			<binding name='y'>
  11.147 +				<uri>http://example.org#F</uri>
  11.148 +			</binding>
  11.149 +			<binding name='overlaps'>
  11.150 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  11.151 +			</binding>
  11.152 +		</result>
  11.153 +		
  11.154 +		<result>
  11.155 +			<binding name='x'>
  11.156 +				<uri>http://example.org#B</uri>
  11.157 +			</binding>
  11.158 +			<binding name='y'>
  11.159 +				<uri>http://example.org#G</uri>
  11.160 +			</binding>
  11.161 +			<binding name='overlaps'>
  11.162 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  11.163 +			</binding>
  11.164 +		</result>
  11.165 +		
  11.166 +		<result>
  11.167 +			<binding name='x'>
  11.168 +				<uri>http://example.org#B</uri>
  11.169 +			</binding>
  11.170 +			<binding name='y'>
  11.171 +				<uri>http://example.org#H</uri>
  11.172 +			</binding>
  11.173 +			<binding name='overlaps'>
  11.174 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  11.175 +			</binding>
  11.176 +		</result>
  11.177 +		
  11.178 +		<!-- C -->
  11.179 +		
  11.180 +		<result>
  11.181 +			<binding name='x'>
  11.182 +				<uri>http://example.org#C</uri>
  11.183 +			</binding>
  11.184 +			<binding name='y'>
  11.185 +				<uri>http://example.org#D</uri>
  11.186 +			</binding>
  11.187 +			<binding name='overlaps'>
  11.188 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  11.189 +			</binding>
  11.190 +		</result>
  11.191 +		
  11.192 +		<result>
  11.193 +			<binding name='x'>
  11.194 +				<uri>http://example.org#C</uri>
  11.195 +			</binding>
  11.196 +			<binding name='y'>
  11.197 +				<uri>http://example.org#E</uri>
  11.198 +			</binding>
  11.199 +			<binding name='overlaps'>
  11.200 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  11.201 +			</binding>
  11.202 +		</result>
  11.203 +		
  11.204 +		<result>
  11.205 +			<binding name='x'>
  11.206 +				<uri>http://example.org#C</uri>
  11.207 +			</binding>
  11.208 +			<binding name='y'>
  11.209 +				<uri>http://example.org#F</uri>
  11.210 +			</binding>
  11.211 +			<binding name='overlaps'>
  11.212 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  11.213 +			</binding>
  11.214 +		</result>
  11.215 +		
  11.216 +		<result>
  11.217 +			<binding name='x'>
  11.218 +				<uri>http://example.org#C</uri>
  11.219 +			</binding>
  11.220 +			<binding name='y'>
  11.221 +				<uri>http://example.org#G</uri>
  11.222 +			</binding>
  11.223 +			<binding name='overlaps'>
  11.224 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  11.225 +			</binding>
  11.226 +		</result>
  11.227 +		
  11.228 +		<result>
  11.229 +			<binding name='x'>
  11.230 +				<uri>http://example.org#C</uri>
  11.231 +			</binding>
  11.232 +			<binding name='y'>
  11.233 +				<uri>http://example.org#H</uri>
  11.234 +			</binding>
  11.235 +			<binding name='overlaps'>
  11.236 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  11.237 +			</binding>
  11.238 +		</result>
  11.239 +		
  11.240 +		<!-- D -->
  11.241 +		
  11.242 +		<result>
  11.243 +			<binding name='x'>
  11.244 +				<uri>http://example.org#D</uri>
  11.245 +			</binding>
  11.246 +			<binding name='y'>
  11.247 +				<uri>http://example.org#E</uri>
  11.248 +			</binding>
  11.249 +			<binding name='overlaps'>
  11.250 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  11.251 +			</binding>
  11.252 +		</result>
  11.253 +		
  11.254 +		<result>
  11.255 +			<binding name='x'>
  11.256 +				<uri>http://example.org#D</uri>
  11.257 +			</binding>
  11.258 +			<binding name='y'>
  11.259 +				<uri>http://example.org#F</uri>
  11.260 +			</binding>
  11.261 +			<binding name='overlaps'>
  11.262 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  11.263 +			</binding>
  11.264 +		</result>
  11.265 +		
  11.266 +		<result>
  11.267 +			<binding name='x'>
  11.268 +				<uri>http://example.org#D</uri>
  11.269 +			</binding>
  11.270 +			<binding name='y'>
  11.271 +				<uri>http://example.org#G</uri>
  11.272 +			</binding>
  11.273 +			<binding name='overlaps'>
  11.274 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  11.275 +			</binding>
  11.276 +		</result>
  11.277 +		
  11.278 +		<result>
  11.279 +			<binding name='x'>
  11.280 +				<uri>http://example.org#D</uri>
  11.281 +			</binding>
  11.282 +			<binding name='y'>
  11.283 +				<uri>http://example.org#H</uri>
  11.284 +			</binding>
  11.285 +			<binding name='overlaps'>
  11.286 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  11.287 +			</binding>
  11.288 +		</result>
  11.289 +		
  11.290 +		<!-- E -->
  11.291 +		
  11.292 +		<result>
  11.293 +			<binding name='x'>
  11.294 +				<uri>http://example.org#E</uri>
  11.295 +			</binding>
  11.296 +			<binding name='y'>
  11.297 +				<uri>http://example.org#F</uri>
  11.298 +			</binding>
  11.299 +			<binding name='overlaps'>
  11.300 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  11.301 +			</binding>
  11.302 +		</result>
  11.303 +		
  11.304 +		<result>
  11.305 +			<binding name='x'>
  11.306 +				<uri>http://example.org#E</uri>
  11.307 +			</binding>
  11.308 +			<binding name='y'>
  11.309 +				<uri>http://example.org#G</uri>
  11.310 +			</binding>
  11.311 +			<binding name='overlaps'>
  11.312 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  11.313 +			</binding>
  11.314 +		</result>
  11.315 +		
  11.316 +		<result>
  11.317 +			<binding name='x'>
  11.318 +				<uri>http://example.org#E</uri>
  11.319 +			</binding>
  11.320 +			<binding name='y'>
  11.321 +				<uri>http://example.org#H</uri>
  11.322 +			</binding>
  11.323 +			<binding name='overlaps'>
  11.324 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  11.325 +			</binding>
  11.326 +		</result>
  11.327 +		
  11.328 +		<!-- F -->
  11.329 +
  11.330 +		<result>
  11.331 +			<binding name='x'>
  11.332 +				<uri>http://example.org#F</uri>
  11.333 +			</binding>
  11.334 +			<binding name='y'>
  11.335 +				<uri>http://example.org#G</uri>
  11.336 +			</binding>
  11.337 +			<binding name='overlaps'>
  11.338 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  11.339 +			</binding>
  11.340 +		</result>
  11.341 +		
  11.342 +		<result>
  11.343 +			<binding name='x'>
  11.344 +				<uri>http://example.org#F</uri>
  11.345 +			</binding>
  11.346 +			<binding name='y'>
  11.347 +				<uri>http://example.org#H</uri>
  11.348 +			</binding>
  11.349 +			<binding name='overlaps'>
  11.350 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  11.351 +			</binding>
  11.352 +		</result>
  11.353 +		
  11.354 +		<!-- G -->
  11.355 +		
  11.356 +		<result>
  11.357 +			<binding name='x'>
  11.358 +				<uri>http://example.org#G</uri>
  11.359 +			</binding>
  11.360 +			<binding name='y'>
  11.361 +				<uri>http://example.org#H</uri>
  11.362 +			</binding>
  11.363 +			<binding name='overlaps'>
  11.364 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  11.365 +			</binding>
  11.366 +		</result>
  11.367 +	</results>
  11.368 +</sparql>
  11.369 \ No newline at end of file
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/testsuite/src/test/resources/bugs/RelationalFunctionInSelectTest/Overlaps_stRDF_Test.rq	Fri Jun 27 18:55:57 2014 +0300
    12.3 @@ -0,0 +1,11 @@
    12.4 +SELECT ?x ?y (strdf:overlaps(?g1, ?g2) as ?overlaps)
    12.5 +WHERE
    12.6 +{
    12.7 +?x geo:hasGeometry ?geom1.
    12.8 +?geom1 geo:asWKT ?g1.
    12.9 +
   12.10 +?y geo:hasGeometry ?geom2.
   12.11 +?geom2 geo:asWKT ?g2.
   12.12 +
   12.13 +FILTER(str(?x)  < str(?y))
   12.14 +}
   12.15 \ 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/bugs/RelationalFunctionInSelectTest/Overlaps_stRDF_Test.srx	Fri Jun 27 18:55:57 2014 +0300
    13.3 @@ -0,0 +1,365 @@
    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 +		<variable name='overlaps'/>
   13.10 +	</head>
   13.11 +	<results>
   13.12 +		<result>
   13.13 +			<binding name='x'>
   13.14 +				<uri>http://example.org#A</uri>
   13.15 +			</binding>
   13.16 +			<binding name='y'>
   13.17 +				<uri>http://example.org#B</uri>
   13.18 +			</binding>
   13.19 +			<binding name='overlaps'>
   13.20 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   13.21 +			</binding>
   13.22 +		</result>
   13.23 +		
   13.24 +		<result>
   13.25 +			<binding name='x'>
   13.26 +				<uri>http://example.org#A</uri>
   13.27 +			</binding>
   13.28 +			<binding name='y'>
   13.29 +				<uri>http://example.org#C</uri>
   13.30 +			</binding>
   13.31 +			<binding name='overlaps'>
   13.32 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   13.33 +			</binding>
   13.34 +		</result>
   13.35 +		
   13.36 +		<result>
   13.37 +			<binding name='x'>
   13.38 +				<uri>http://example.org#A</uri>
   13.39 +			</binding>
   13.40 +			<binding name='y'>
   13.41 +				<uri>http://example.org#D</uri>
   13.42 +			</binding>
   13.43 +			<binding name='overlaps'>
   13.44 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   13.45 +			</binding>
   13.46 +		</result>
   13.47 +		
   13.48 +		<result>
   13.49 +			<binding name='x'>
   13.50 +				<uri>http://example.org#A</uri>
   13.51 +			</binding>
   13.52 +			<binding name='y'>
   13.53 +				<uri>http://example.org#E</uri>
   13.54 +			</binding>
   13.55 +			<binding name='overlaps'>
   13.56 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   13.57 +			</binding>
   13.58 +		</result>
   13.59 +		
   13.60 +		<result>
   13.61 +			<binding name='x'>
   13.62 +				<uri>http://example.org#A</uri>
   13.63 +			</binding>
   13.64 +			<binding name='y'>
   13.65 +				<uri>http://example.org#F</uri>
   13.66 +			</binding>
   13.67 +			<binding name='overlaps'>
   13.68 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   13.69 +			</binding>
   13.70 +		</result>
   13.71 +		
   13.72 +		<result>
   13.73 +			<binding name='x'>
   13.74 +				<uri>http://example.org#A</uri>
   13.75 +			</binding>
   13.76 +			<binding name='y'>
   13.77 +				<uri>http://example.org#G</uri>
   13.78 +			</binding>
   13.79 +			<binding name='overlaps'>
   13.80 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   13.81 +			</binding>
   13.82 +		</result>
   13.83 +		
   13.84 +		
   13.85 +		
   13.86 +		<result>
   13.87 +			<binding name='x'>
   13.88 +				<uri>http://example.org#A</uri>
   13.89 +			</binding>
   13.90 +			<binding name='y'>
   13.91 +				<uri>http://example.org#H</uri>
   13.92 +			</binding>
   13.93 +			<binding name='overlaps'>
   13.94 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   13.95 +			</binding>
   13.96 +		</result>
   13.97 +		
   13.98 +		
   13.99 +		
  13.100 +		
  13.101 +		
  13.102 +		
  13.103 +		
  13.104 +		<!-- B -->
  13.105 +		
  13.106 +		<result>
  13.107 +			<binding name='x'>
  13.108 +				<uri>http://example.org#B</uri>
  13.109 +			</binding>
  13.110 +			<binding name='y'>
  13.111 +				<uri>http://example.org#C</uri>
  13.112 +			</binding>
  13.113 +			<binding name='overlaps'>
  13.114 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal>
  13.115 +			</binding>
  13.116 +		</result>
  13.117 +		
  13.118 +		<result>
  13.119 +			<binding name='x'>
  13.120 +				<uri>http://example.org#B</uri>
  13.121 +			</binding>
  13.122 +			<binding name='y'>
  13.123 +				<uri>http://example.org#D</uri>
  13.124 +			</binding>
  13.125 +			<binding name='overlaps'>
  13.126 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  13.127 +			</binding>
  13.128 +		</result>
  13.129 +		
  13.130 +		<result>
  13.131 +			<binding name='x'>
  13.132 +				<uri>http://example.org#B</uri>
  13.133 +			</binding>
  13.134 +			<binding name='y'>
  13.135 +				<uri>http://example.org#E</uri>
  13.136 +			</binding>
  13.137 +			<binding name='overlaps'>
  13.138 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  13.139 +			</binding>
  13.140 +		</result>
  13.141 +		
  13.142 +		<result>
  13.143 +			<binding name='x'>
  13.144 +				<uri>http://example.org#B</uri>
  13.145 +			</binding>
  13.146 +			<binding name='y'>
  13.147 +				<uri>http://example.org#F</uri>
  13.148 +			</binding>
  13.149 +			<binding name='overlaps'>
  13.150 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  13.151 +			</binding>
  13.152 +		</result>
  13.153 +		
  13.154 +		<result>
  13.155 +			<binding name='x'>
  13.156 +				<uri>http://example.org#B</uri>
  13.157 +			</binding>
  13.158 +			<binding name='y'>
  13.159 +				<uri>http://example.org#G</uri>
  13.160 +			</binding>
  13.161 +			<binding name='overlaps'>
  13.162 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  13.163 +			</binding>
  13.164 +		</result>
  13.165 +		
  13.166 +		<result>
  13.167 +			<binding name='x'>
  13.168 +				<uri>http://example.org#B</uri>
  13.169 +			</binding>
  13.170 +			<binding name='y'>
  13.171 +				<uri>http://example.org#H</uri>
  13.172 +			</binding>
  13.173 +			<binding name='overlaps'>
  13.174 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  13.175 +			</binding>
  13.176 +		</result>
  13.177 +		
  13.178 +		<!-- C -->
  13.179 +		
  13.180 +		<result>
  13.181 +			<binding name='x'>
  13.182 +				<uri>http://example.org#C</uri>
  13.183 +			</binding>
  13.184 +			<binding name='y'>
  13.185 +				<uri>http://example.org#D</uri>
  13.186 +			</binding>
  13.187 +			<binding name='overlaps'>
  13.188 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  13.189 +			</binding>
  13.190 +		</result>
  13.191 +		
  13.192 +		<result>
  13.193 +			<binding name='x'>
  13.194 +				<uri>http://example.org#C</uri>
  13.195 +			</binding>
  13.196 +			<binding name='y'>
  13.197 +				<uri>http://example.org#E</uri>
  13.198 +			</binding>
  13.199 +			<binding name='overlaps'>
  13.200 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  13.201 +			</binding>
  13.202 +		</result>
  13.203 +		
  13.204 +		<result>
  13.205 +			<binding name='x'>
  13.206 +				<uri>http://example.org#C</uri>
  13.207 +			</binding>
  13.208 +			<binding name='y'>
  13.209 +				<uri>http://example.org#F</uri>
  13.210 +			</binding>
  13.211 +			<binding name='overlaps'>
  13.212 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  13.213 +			</binding>
  13.214 +		</result>
  13.215 +		
  13.216 +		<result>
  13.217 +			<binding name='x'>
  13.218 +				<uri>http://example.org#C</uri>
  13.219 +			</binding>
  13.220 +			<binding name='y'>
  13.221 +				<uri>http://example.org#G</uri>
  13.222 +			</binding>
  13.223 +			<binding name='overlaps'>
  13.224 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  13.225 +			</binding>
  13.226 +		</result>
  13.227 +		
  13.228 +		<result>
  13.229 +			<binding name='x'>
  13.230 +				<uri>http://example.org#C</uri>
  13.231 +			</binding>
  13.232 +			<binding name='y'>
  13.233 +				<uri>http://example.org#H</uri>
  13.234 +			</binding>
  13.235 +			<binding name='overlaps'>
  13.236 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  13.237 +			</binding>
  13.238 +		</result>
  13.239 +		
  13.240 +		<!-- D -->
  13.241 +		
  13.242 +		<result>
  13.243 +			<binding name='x'>
  13.244 +				<uri>http://example.org#D</uri>
  13.245 +			</binding>
  13.246 +			<binding name='y'>
  13.247 +				<uri>http://example.org#E</uri>
  13.248 +			</binding>
  13.249 +			<binding name='overlaps'>
  13.250 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  13.251 +			</binding>
  13.252 +		</result>
  13.253 +		
  13.254 +		<result>
  13.255 +			<binding name='x'>
  13.256 +				<uri>http://example.org#D</uri>
  13.257 +			</binding>
  13.258 +			<binding name='y'>
  13.259 +				<uri>http://example.org#F</uri>
  13.260 +			</binding>
  13.261 +			<binding name='overlaps'>
  13.262 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  13.263 +			</binding>
  13.264 +		</result>
  13.265 +		
  13.266 +		<result>
  13.267 +			<binding name='x'>
  13.268 +				<uri>http://example.org#D</uri>
  13.269 +			</binding>
  13.270 +			<binding name='y'>
  13.271 +				<uri>http://example.org#G</uri>
  13.272 +			</binding>
  13.273 +			<binding name='overlaps'>
  13.274 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  13.275 +			</binding>
  13.276 +		</result>
  13.277 +		
  13.278 +		<result>
  13.279 +			<binding name='x'>
  13.280 +				<uri>http://example.org#D</uri>
  13.281 +			</binding>
  13.282 +			<binding name='y'>
  13.283 +				<uri>http://example.org#H</uri>
  13.284 +			</binding>
  13.285 +			<binding name='overlaps'>
  13.286 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  13.287 +			</binding>
  13.288 +		</result>
  13.289 +		
  13.290 +		<!-- E -->
  13.291 +		
  13.292 +		<result>
  13.293 +			<binding name='x'>
  13.294 +				<uri>http://example.org#E</uri>
  13.295 +			</binding>
  13.296 +			<binding name='y'>
  13.297 +				<uri>http://example.org#F</uri>
  13.298 +			</binding>
  13.299 +			<binding name='overlaps'>
  13.300 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  13.301 +			</binding>
  13.302 +		</result>
  13.303 +		
  13.304 +		<result>
  13.305 +			<binding name='x'>
  13.306 +				<uri>http://example.org#E</uri>
  13.307 +			</binding>
  13.308 +			<binding name='y'>
  13.309 +				<uri>http://example.org#G</uri>
  13.310 +			</binding>
  13.311 +			<binding name='overlaps'>
  13.312 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  13.313 +			</binding>
  13.314 +		</result>
  13.315 +		
  13.316 +		<result>
  13.317 +			<binding name='x'>
  13.318 +				<uri>http://example.org#E</uri>
  13.319 +			</binding>
  13.320 +			<binding name='y'>
  13.321 +				<uri>http://example.org#H</uri>
  13.322 +			</binding>
  13.323 +			<binding name='overlaps'>
  13.324 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  13.325 +			</binding>
  13.326 +		</result>
  13.327 +		
  13.328 +		<!-- F -->
  13.329 +
  13.330 +		<result>
  13.331 +			<binding name='x'>
  13.332 +				<uri>http://example.org#F</uri>
  13.333 +			</binding>
  13.334 +			<binding name='y'>
  13.335 +				<uri>http://example.org#G</uri>
  13.336 +			</binding>
  13.337 +			<binding name='overlaps'>
  13.338 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  13.339 +			</binding>
  13.340 +		</result>
  13.341 +		
  13.342 +		<result>
  13.343 +			<binding name='x'>
  13.344 +				<uri>http://example.org#F</uri>
  13.345 +			</binding>
  13.346 +			<binding name='y'>
  13.347 +				<uri>http://example.org#H</uri>
  13.348 +			</binding>
  13.349 +			<binding name='overlaps'>
  13.350 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  13.351 +			</binding>
  13.352 +		</result>
  13.353 +		
  13.354 +		<!-- G -->
  13.355 +		
  13.356 +		<result>
  13.357 +			<binding name='x'>
  13.358 +				<uri>http://example.org#G</uri>
  13.359 +			</binding>
  13.360 +			<binding name='y'>
  13.361 +				<uri>http://example.org#H</uri>
  13.362 +			</binding>
  13.363 +			<binding name='overlaps'>
  13.364 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
  13.365 +			</binding>
  13.366 +		</result>
  13.367 +	</results>
  13.368 +</sparql>
  13.369 \ No newline at end of file
    14.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.2 +++ b/testsuite/src/test/resources/bugs/RelationalFunctionInSelectTest/RelationalFunctionInSelectTest.nt	Fri Jun 27 18:55:57 2014 +0300
    14.3 @@ -0,0 +1,16 @@
    14.4 +<http://example.org#A> <http://www.opengis.net/ont/geosparql#hasGeometry> <http://example.org#geomA>.
    14.5 +<http://example.org#B> <http://www.opengis.net/ont/geosparql#hasGeometry> <http://example.org#geomB>.
    14.6 +<http://example.org#C> <http://www.opengis.net/ont/geosparql#hasGeometry> <http://example.org#geomC>.
    14.7 +<http://example.org#D> <http://www.opengis.net/ont/geosparql#hasGeometry> <http://example.org#geomD>.
    14.8 +<http://example.org#E> <http://www.opengis.net/ont/geosparql#hasGeometry> <http://example.org#geomE>.
    14.9 +<http://example.org#F> <http://www.opengis.net/ont/geosparql#hasGeometry> <http://example.org#geomF>.
   14.10 +<http://example.org#G> <http://www.opengis.net/ont/geosparql#hasGeometry> <http://example.org#geomG>.
   14.11 +<http://example.org#H> <http://www.opengis.net/ont/geosparql#hasGeometry> <http://example.org#geomH>.
   14.12 +<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>.
   14.13 +<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>.
   14.14 +<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>.
   14.15 +<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>.
   14.16 +<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>.
   14.17 +<http://example.org#geomF> <http://www.opengis.net/ont/geosparql#asWKT> "  <http://www.opengis.net/def/crs/OGC/1.3/CRS84> Linestring(3 2, 4 0)  "^^<http://www.opengis.net/ont/geosparql#wktLiteral>.
   14.18 +<http://example.org#geomG> <http://www.opengis.net/ont/geosparql#asWKT> "  <http://www.opengis.net/def/crs/OGC/1.3/CRS84> Point(1 1)  "^^<http://www.opengis.net/ont/geosparql#wktLiteral>.
   14.19 +<http://example.org#geomH> <http://www.opengis.net/ont/geosparql#asWKT> "  <http://www.opengis.net/def/crs/OGC/1.3/CRS84> Polygon((2.1 1.1, 2.9 1.1, 2.9 1.9, 2.1 1.9, 2.1 1.1))  "^^<http://www.opengis.net/ont/geosparql#wktLiteral>.