Strabon

changeset 1214:18768de271fb

Added MBB Relations Test for stSPARQL.
author Panayiotis Smeros <psmeros@di.uoa.gr>
date Mon Jul 15 19:55:42 2013 +0300 (2013-07-15)
parents 352c8ca3064e
children 80f27758ce3f
files testsuite/src/test/java/eu/earthobservatory/testsuite/stSPARQL/MBBRelationsTest.java testsuite/src/test/resources/stSPARQL/MBBRelationsTest/AboveTest.rq testsuite/src/test/resources/stSPARQL/MBBRelationsTest/AboveTest.srx testsuite/src/test/resources/stSPARQL/MBBRelationsTest/BelowTest.rq testsuite/src/test/resources/stSPARQL/MBBRelationsTest/BelowTest.srx testsuite/src/test/resources/stSPARQL/MBBRelationsTest/LeftTest.rq testsuite/src/test/resources/stSPARQL/MBBRelationsTest/LeftTest.srx testsuite/src/test/resources/stSPARQL/MBBRelationsTest/MBBContainsTest.rq testsuite/src/test/resources/stSPARQL/MBBRelationsTest/MBBContainsTest.srx testsuite/src/test/resources/stSPARQL/MBBRelationsTest/MBBEqualsTest.rq testsuite/src/test/resources/stSPARQL/MBBRelationsTest/MBBEqualsTest.srx testsuite/src/test/resources/stSPARQL/MBBRelationsTest/MBBIntersectsTest.rq testsuite/src/test/resources/stSPARQL/MBBRelationsTest/MBBIntersectsTest.srx testsuite/src/test/resources/stSPARQL/MBBRelationsTest/MBBRelationsTest.nt testsuite/src/test/resources/stSPARQL/MBBRelationsTest/MBBWithinTest.rq testsuite/src/test/resources/stSPARQL/MBBRelationsTest/MBBWithinTest.srx testsuite/src/test/resources/stSPARQL/MBBRelationsTest/RightTest.rq testsuite/src/test/resources/stSPARQL/MBBRelationsTest/RightTest.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/MBBRelationsTest.java	Mon Jul 15 19:55:42 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 mbb relations of stSPARQL.
    1.19 + * 
    1.20 + * @author Panayiotis Smeros <psmeros@di.uoa.gr>
    1.21 + */
    1.22 +
    1.23 +public class MBBRelationsTest extends TemplateTest {}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/testsuite/src/test/resources/stSPARQL/MBBRelationsTest/AboveTest.rq	Mon Jul 15 19:55:42 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:above(?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/MBBRelationsTest/AboveTest.srx	Mon Jul 15 19:55:42 2013 +0300
     3.3 @@ -0,0 +1,25 @@
     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#H</uri> 
    3.17 +				</binding> 
    3.18 +			</result> 
    3.19 +			<result> 
    3.20 +				<binding name='y'> 
    3.21 +					<uri>http://example.org#G</uri> 
    3.22 +				</binding> 
    3.23 +				<binding name='x'> 
    3.24 +					<uri>http://example.org#H</uri> 
    3.25 +				</binding> 
    3.26 +			</result> 
    3.27 +		</results> 
    3.28 +	</sparql> 
    3.29 \ 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/MBBRelationsTest/BelowTest.rq	Mon Jul 15 19:55:42 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((?x != ?y) && (strdf:below(?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/MBBRelationsTest/BelowTest.srx	Mon Jul 15 19:55:42 2013 +0300
     5.3 @@ -0,0 +1,25 @@
     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#H</uri> 
    5.14 +				</binding> 
    5.15 +				<binding name='x'> 
    5.16 +					<uri>http://example.org#A</uri> 
    5.17 +				</binding> 
    5.18 +			</result> 
    5.19 +			<result> 
    5.20 +				<binding name='y'> 
    5.21 +					<uri>http://example.org#H</uri> 
    5.22 +				</binding> 
    5.23 +				<binding name='x'> 
    5.24 +					<uri>http://example.org#G</uri> 
    5.25 +				</binding> 
    5.26 +			</result> 
    5.27 +		</results> 
    5.28 +	</sparql> 
    5.29 \ 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/stSPARQL/MBBRelationsTest/LeftTest.rq	Mon Jul 15 19:55:42 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((?x != ?y) && (strdf:left(?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/MBBRelationsTest/LeftTest.srx	Mon Jul 15 19:55:42 2013 +0300
     7.3 @@ -0,0 +1,129 @@
     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#E</uri> 
    7.14 +				</binding> 
    7.15 +				<binding name='x'> 
    7.16 +					<uri>http://example.org#A</uri> 
    7.17 +				</binding> 
    7.18 +			</result> 
    7.19 +			<result> 
    7.20 +				<binding name='y'> 
    7.21 +					<uri>http://example.org#D</uri> 
    7.22 +				</binding> 
    7.23 +					<binding name='x'> 
    7.24 +						<uri>http://example.org#A</uri> 
    7.25 +					</binding> 
    7.26 +			</result> 
    7.27 +			<result> 
    7.28 +				<binding name='y'> 
    7.29 +					<uri>http://example.org#F</uri> 
    7.30 +				</binding> 
    7.31 +				<binding name='x'> 
    7.32 +					<uri>http://example.org#A</uri> 
    7.33 +				</binding> 
    7.34 +			</result> 
    7.35 +			<result> 
    7.36 +				<binding name='y'> 
    7.37 +					<uri>http://example.org#H</uri> 
    7.38 +				</binding> 
    7.39 +				<binding name='x'> 
    7.40 +					<uri>http://example.org#A</uri> 
    7.41 +				</binding> 
    7.42 +			</result> 
    7.43 +			<result> 
    7.44 +				<binding name='y'> 
    7.45 +					<uri>http://example.org#E</uri> 
    7.46 +				</binding> 
    7.47 +				<binding name='x'> 
    7.48 +					<uri>http://example.org#B</uri> 
    7.49 +				</binding> 
    7.50 +			</result> 
    7.51 +			<result> 
    7.52 +				<binding name='y'> 
    7.53 +					<uri>http://example.org#D</uri> 
    7.54 +				</binding> 
    7.55 +				<binding name='x'> 
    7.56 +					<uri>http://example.org#B</uri> 
    7.57 +				</binding> 
    7.58 +			</result> 
    7.59 +			<result> 
    7.60 +				<binding name='y'> 
    7.61 +					<uri>http://example.org#F</uri> 
    7.62 +				</binding> 
    7.63 +				<binding name='x'> 
    7.64 +					<uri>http://example.org#B</uri> 
    7.65 +				</binding> 
    7.66 +			</result> 
    7.67 +			<result> 
    7.68 +				<binding name='y'> 
    7.69 +					<uri>http://example.org#H</uri> 
    7.70 +				</binding> 
    7.71 +				<binding name='x'> 
    7.72 +					<uri>http://example.org#B</uri> 
    7.73 +				</binding> 
    7.74 +			</result> 
    7.75 +			<result> 
    7.76 +				<binding name='y'> 
    7.77 +					<uri>http://example.org#E</uri> 
    7.78 +				</binding> 
    7.79 +				<binding name='x'> 
    7.80 +					<uri>http://example.org#G</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#G</uri> 
    7.89 +				</binding> 
    7.90 +			</result> 
    7.91 +			<result> 
    7.92 +				<binding name='y'> 
    7.93 +					<uri>http://example.org#F</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#H</uri> 
   7.102 +				</binding> 
   7.103 +				<binding name='x'> 
   7.104 +					<uri>http://example.org#G</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#H</uri> 
   7.113 +				</binding> 
   7.114 +			</result> 
   7.115 +			<result> 
   7.116 +				<binding name='y'> 
   7.117 +					<uri>http://example.org#D</uri> 
   7.118 +				</binding> 
   7.119 +				<binding name='x'> 
   7.120 +					<uri>http://example.org#H</uri> 
   7.121 +				</binding> 
   7.122 +			</result> 
   7.123 +			<result> 
   7.124 +				<binding name='y'> 
   7.125 +					<uri>http://example.org#F</uri> 
   7.126 +				</binding> 
   7.127 +				<binding name='x'> 
   7.128 +					<uri>http://example.org#H</uri> 
   7.129 +				</binding> 
   7.130 +			</result> 
   7.131 +		</results> 
   7.132 +	</sparql>
   7.133 \ 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/MBBRelationsTest/MBBContainsTest.rq	Mon Jul 15 19:55:42 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:mbbContains(?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/MBBRelationsTest/MBBContainsTest.srx	Mon Jul 15 19:55:42 2013 +0300
     9.3 @@ -0,0 +1,81 @@
     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#G</uri> 
    9.14 +				</binding> 
    9.15 +				<binding name='x'> 
    9.16 +					<uri>http://example.org#A</uri> 
    9.17 +				</binding> 
    9.18 +			</result> 
    9.19 +			<result> 
    9.20 +				<binding name='y'> 
    9.21 +					<uri>http://example.org#A</uri> 
    9.22 +				</binding> 
    9.23 +				<binding name='x'> 
    9.24 +					<uri>http://example.org#B</uri> 
    9.25 +				</binding> 
    9.26 +			</result> 
    9.27 +			<result> 
    9.28 +				<binding name='y'> 
    9.29 +					<uri>http://example.org#G</uri> 
    9.30 +				</binding> 
    9.31 +				<binding name='x'> 
    9.32 +					<uri>http://example.org#B</uri> 
    9.33 +				</binding> 
    9.34 +			</result> 
    9.35 +			<result> 
    9.36 +				<binding name='y'> 
    9.37 +					<uri>http://example.org#G</uri> 
    9.38 +				</binding> 
    9.39 +				<binding name='x'> 
    9.40 +					<uri>http://example.org#C</uri> 
    9.41 +				</binding> 
    9.42 +			</result> 
    9.43 +			<result> 
    9.44 +				<binding name='y'> 
    9.45 +					<uri>http://example.org#H</uri> 
    9.46 +				</binding> 
    9.47 +				<binding name='x'> 
    9.48 +					<uri>http://example.org#C</uri> 
    9.49 +				</binding> 
    9.50 +			</result> 
    9.51 +			<result> 
    9.52 +				<binding name='y'> 
    9.53 +					<uri>http://example.org#D</uri> 
    9.54 +				</binding> 
    9.55 +				<binding name='x'> 
    9.56 +					<uri>http://example.org#E</uri> 
    9.57 +				</binding> 
    9.58 +			</result> 
    9.59 +			<result> 
    9.60 +				<binding name='y'> 
    9.61 +					<uri>http://example.org#E</uri> 
    9.62 +				</binding> 
    9.63 +				<binding name='x'> 
    9.64 +					<uri>http://example.org#D</uri> 
    9.65 +				</binding> 
    9.66 +			</result> 
    9.67 +			<result> 
    9.68 +				<binding name='y'> 
    9.69 +					<uri>http://example.org#E</uri> 
    9.70 +				</binding> 
    9.71 +				<binding name='x'> 
    9.72 +					<uri>http://example.org#F</uri> 
    9.73 +				</binding> 
    9.74 +			</result> 
    9.75 +			<result> 
    9.76 +				<binding name='y'> 
    9.77 +					<uri>http://example.org#D</uri> 
    9.78 +				</binding> 
    9.79 +				<binding name='x'> 
    9.80 +					<uri>http://example.org#F</uri> 
    9.81 +				</binding> 
    9.82 +			</result> 
    9.83 +		</results> 
    9.84 +	</sparql> 
    9.85 \ 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/MBBRelationsTest/MBBEqualsTest.rq	Mon Jul 15 19:55:42 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:mbbEquals(?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/MBBRelationsTest/MBBEqualsTest.srx	Mon Jul 15 19:55:42 2013 +0300
    11.3 @@ -0,0 +1,25 @@
    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#E</uri>
   11.14 +			</binding>
   11.15 +			<binding name='x'>
   11.16 +				<uri>http://example.org#D</uri>
   11.17 +			</binding>
   11.18 +		</result>
   11.19 +		<result>
   11.20 +			<binding name='y'>
   11.21 +				<uri>http://example.org#D</uri>
   11.22 +			</binding>
   11.23 +			<binding name='x'>
   11.24 +				<uri>http://example.org#E</uri>
   11.25 +			</binding>
   11.26 +		</result>
   11.27 +	</results>
   11.28 +</sparql>
   11.29 \ 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/stSPARQL/MBBRelationsTest/MBBIntersectsTest.rq	Mon Jul 15 19:55:42 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((?x != ?y) && (strdf:mbbIntersects(?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/MBBRelationsTest/MBBIntersectsTest.srx	Mon Jul 15 19:55:42 2013 +0300
    13.3 @@ -0,0 +1,217 @@
    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#A</uri>
   13.14 +			</binding>
   13.15 +			<binding name='x'>
   13.16 +				<uri>http://example.org#B</uri>
   13.17 +			</binding>
   13.18 +		</result>
   13.19 +		<result>
   13.20 +			<binding name='y'>
   13.21 +				<uri>http://example.org#A</uri>
   13.22 +			</binding>
   13.23 +			<binding name='x'>
   13.24 +				<uri>http://example.org#C</uri>
   13.25 +			</binding>
   13.26 +		</result>
   13.27 +		<result>
   13.28 +			<binding name='y'>
   13.29 +				<uri>http://example.org#A</uri>
   13.30 +			</binding>
   13.31 +			<binding name='x'>
   13.32 +				<uri>http://example.org#G</uri>
   13.33 +			</binding>
   13.34 +		</result>
   13.35 +		<result>
   13.36 +			<binding name='y'>
   13.37 +				<uri>http://example.org#B</uri>
   13.38 +			</binding>
   13.39 +			<binding name='x'>
   13.40 +				<uri>http://example.org#A</uri>
   13.41 +			</binding>
   13.42 +		</result>
   13.43 +		<result>
   13.44 +			<binding name='y'>
   13.45 +				<uri>http://example.org#B</uri>
   13.46 +			</binding>
   13.47 +			<binding name='x'>
   13.48 +				<uri>http://example.org#C</uri>
   13.49 +			</binding>
   13.50 +		</result>
   13.51 +		<result>
   13.52 +			<binding name='y'>
   13.53 +				<uri>http://example.org#B</uri>
   13.54 +			</binding>
   13.55 +			<binding name='x'>
   13.56 +				<uri>http://example.org#G</uri>
   13.57 +			</binding>
   13.58 +		</result>
   13.59 +		<result>
   13.60 +			<binding name='y'>
   13.61 +				<uri>http://example.org#C</uri>
   13.62 +			</binding>
   13.63 +			<binding name='x'>
   13.64 +				<uri>http://example.org#A</uri>
   13.65 +			</binding>
   13.66 +		</result>
   13.67 +		<result>
   13.68 +			<binding name='y'>
   13.69 +				<uri>http://example.org#C</uri>
   13.70 +			</binding>
   13.71 +			<binding name='x'>
   13.72 +				<uri>http://example.org#B</uri>
   13.73 +			</binding>
   13.74 +		</result>
   13.75 +		<result>
   13.76 +			<binding name='y'>
   13.77 +				<uri>http://example.org#C</uri>
   13.78 +			</binding>
   13.79 +			<binding name='x'>
   13.80 +				<uri>http://example.org#D</uri>
   13.81 +			</binding>
   13.82 +		</result>
   13.83 +		<result>
   13.84 +			<binding name='y'>
   13.85 +				<uri>http://example.org#C</uri>
   13.86 +			</binding>
   13.87 +			<binding name='x'>
   13.88 +				<uri>http://example.org#E</uri>
   13.89 +			</binding>
   13.90 +		</result>
   13.91 +		<result>
   13.92 +			<binding name='y'>
   13.93 +				<uri>http://example.org#C</uri>
   13.94 +			</binding>
   13.95 +			<binding name='x'>
   13.96 +				<uri>http://example.org#F</uri>
   13.97 +			</binding>
   13.98 +		</result>
   13.99 +		<result>
  13.100 +			<binding name='y'>
  13.101 +				<uri>http://example.org#C</uri>
  13.102 +			</binding>
  13.103 +			<binding name='x'>
  13.104 +				<uri>http://example.org#G</uri>
  13.105 +			</binding>
  13.106 +		</result>
  13.107 +		<result>
  13.108 +			<binding name='y'>
  13.109 +				<uri>http://example.org#C</uri>
  13.110 +			</binding>
  13.111 +			<binding name='x'>
  13.112 +				<uri>http://example.org#H</uri>
  13.113 +			</binding>
  13.114 +		</result>
  13.115 +		<result>
  13.116 +			<binding name='y'>
  13.117 +				<uri>http://example.org#E</uri>
  13.118 +			</binding>
  13.119 +			<binding name='x'>
  13.120 +				<uri>http://example.org#C</uri>
  13.121 +			</binding>
  13.122 +		</result>
  13.123 +		<result>
  13.124 +			<binding name='y'>
  13.125 +				<uri>http://example.org#E</uri>
  13.126 +			</binding>
  13.127 +			<binding name='x'>
  13.128 +				<uri>http://example.org#D</uri>
  13.129 +			</binding>
  13.130 +		</result>
  13.131 +		<result>
  13.132 +			<binding name='y'>
  13.133 +				<uri>http://example.org#E</uri>
  13.134 +			</binding>
  13.135 +			<binding name='x'>
  13.136 +				<uri>http://example.org#F</uri>
  13.137 +			</binding>
  13.138 +		</result>
  13.139 +		<result>
  13.140 +			<binding name='y'>
  13.141 +				<uri>http://example.org#D</uri>
  13.142 +			</binding>
  13.143 +			<binding name='x'>
  13.144 +				<uri>http://example.org#C</uri>
  13.145 +			</binding>
  13.146 +		</result>
  13.147 +		<result>
  13.148 +			<binding name='y'>
  13.149 +				<uri>http://example.org#D</uri>
  13.150 +			</binding>
  13.151 +			<binding name='x'>
  13.152 +				<uri>http://example.org#E</uri>
  13.153 +			</binding>
  13.154 +		</result>
  13.155 +		<result>
  13.156 +			<binding name='y'>
  13.157 +				<uri>http://example.org#D</uri>
  13.158 +			</binding>
  13.159 +			<binding name='x'>
  13.160 +				<uri>http://example.org#F</uri>
  13.161 +			</binding>
  13.162 +		</result>
  13.163 +		<result>
  13.164 +			<binding name='y'>
  13.165 +				<uri>http://example.org#F</uri>
  13.166 +			</binding>
  13.167 +			<binding name='x'>
  13.168 +				<uri>http://example.org#C</uri>
  13.169 +			</binding>
  13.170 +		</result>
  13.171 +		<result>
  13.172 +			<binding name='y'>
  13.173 +				<uri>http://example.org#F</uri>
  13.174 +			</binding>
  13.175 +			<binding name='x'>
  13.176 +				<uri>http://example.org#D</uri>
  13.177 +			</binding>
  13.178 +		</result>
  13.179 +		<result>
  13.180 +			<binding name='y'>
  13.181 +				<uri>http://example.org#F</uri>
  13.182 +			</binding>
  13.183 +			<binding name='x'>
  13.184 +				<uri>http://example.org#E</uri>
  13.185 +			</binding>
  13.186 +		</result>
  13.187 +		<result>
  13.188 +			<binding name='y'>
  13.189 +				<uri>http://example.org#G</uri>
  13.190 +			</binding>
  13.191 +			<binding name='x'>
  13.192 +				<uri>http://example.org#A</uri>
  13.193 +			</binding>
  13.194 +		</result>
  13.195 +		<result>
  13.196 +			<binding name='y'>
  13.197 +				<uri>http://example.org#G</uri>
  13.198 +			</binding>
  13.199 +			<binding name='x'>
  13.200 +				<uri>http://example.org#B</uri>
  13.201 +			</binding>
  13.202 +		</result>
  13.203 +		<result>
  13.204 +			<binding name='y'>
  13.205 +				<uri>http://example.org#G</uri>
  13.206 +			</binding>
  13.207 +			<binding name='x'>
  13.208 +				<uri>http://example.org#C</uri>
  13.209 +			</binding>
  13.210 +		</result>
  13.211 +		<result>
  13.212 +			<binding name='y'>
  13.213 +				<uri>http://example.org#H</uri>
  13.214 +			</binding>
  13.215 +			<binding name='x'>
  13.216 +				<uri>http://example.org#C</uri>
  13.217 +			</binding>
  13.218 +		</result>
  13.219 +	</results>
  13.220 +</sparql>
    14.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.2 +++ b/testsuite/src/test/resources/stSPARQL/MBBRelationsTest/MBBRelationsTest.nt	Mon Jul 15 19:55:42 2013 +0300
    14.3 @@ -0,0 +1,8 @@
    14.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>.
    14.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>.
    14.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>.
    14.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>.
    14.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>.
    14.9 +<http://example.org#F> <http://example.org#hasGeometry> "Linestring(3 2, 4 0)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   14.10 +<http://example.org#G> <http://example.org#hasGeometry> "Point(1 1)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   14.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>.
    15.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.2 +++ b/testsuite/src/test/resources/stSPARQL/MBBRelationsTest/MBBWithinTest.rq	Mon Jul 15 19:55:42 2013 +0300
    15.3 @@ -0,0 +1,7 @@
    15.4 +SELECT ?x ?y
    15.5 +WHERE
    15.6 +{
    15.7 +?x ex:hasGeometry ?g1.
    15.8 +?y ex:hasGeometry ?g2.
    15.9 +
   15.10 +FILTER((?x != ?y) && (strdf:mbbWithin(?g1, ?g2)))}
   15.11 \ 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/MBBRelationsTest/MBBWithinTest.srx	Mon Jul 15 19:55:42 2013 +0300
    16.3 @@ -0,0 +1,81 @@
    16.4 +<?xml version='1.0' encoding='UTF-8'?> 
    16.5 +	<sparql xmlns='http://www.w3.org/2005/sparql-results#'> 
    16.6 +		<head> 
    16.7 +			<variable name='x'/> 
    16.8 +			<variable name='y'/> 
    16.9 +		</head> 
   16.10 +		<results> 
   16.11 +			<result> 
   16.12 +				<binding name='y'> 
   16.13 +					<uri>http://example.org#B</uri> 
   16.14 +				</binding> 
   16.15 +				<binding name='x'> 
   16.16 +					<uri>http://example.org#A</uri> 
   16.17 +				</binding> 
   16.18 +			</result> 
   16.19 +			<result> 
   16.20 +				<binding name='y'> 
   16.21 +					<uri>http://example.org#D</uri> 
   16.22 +				</binding> 
   16.23 +				<binding name='x'> 
   16.24 +					<uri>http://example.org#E</uri> 
   16.25 +				</binding> 
   16.26 +			</result> 
   16.27 +			<result> 
   16.28 +				<binding name='y'> 
   16.29 +					<uri>http://example.org#F</uri> 
   16.30 +				</binding> 
   16.31 +				<binding name='x'> 
   16.32 +					<uri>http://example.org#E</uri> 
   16.33 +				</binding> 
   16.34 +			</result> 
   16.35 +			<result> 
   16.36 +				<binding name='y'> 
   16.37 +					<uri>http://example.org#E</uri> 
   16.38 +				</binding> 
   16.39 +				<binding name='x'> 
   16.40 +					<uri>http://example.org#D</uri> 
   16.41 +				</binding> 
   16.42 +			</result> 
   16.43 +			<result> 
   16.44 +				<binding name='y'> 
   16.45 +					<uri>http://example.org#F</uri> 
   16.46 +				</binding> 
   16.47 +				<binding name='x'> 
   16.48 +					<uri>http://example.org#D</uri> 
   16.49 +				</binding> 
   16.50 +			</result> 
   16.51 +			<result> 
   16.52 +				<binding name='y'> 
   16.53 +					<uri>http://example.org#A</uri> 
   16.54 +				</binding> 
   16.55 +				<binding name='x'> 
   16.56 +					<uri>http://example.org#G</uri> 
   16.57 +				</binding> 
   16.58 +			</result> 
   16.59 +			<result> 
   16.60 +				<binding name='y'> 
   16.61 +					<uri>http://example.org#B</uri> 
   16.62 +				</binding> 
   16.63 +				<binding name='x'> 
   16.64 +					<uri>http://example.org#G</uri> 
   16.65 +				</binding> 
   16.66 +			</result> 
   16.67 +			<result> 
   16.68 +				<binding name='y'> 
   16.69 +					<uri>http://example.org#C</uri> 
   16.70 +				</binding> 
   16.71 +				<binding name='x'> 
   16.72 +					<uri>http://example.org#G</uri> 
   16.73 +				</binding> 
   16.74 +			</result> 
   16.75 +			<result> 
   16.76 +				<binding name='y'> 
   16.77 +					<uri>http://example.org#C</uri> 
   16.78 +				</binding> 
   16.79 +				<binding name='x'> 
   16.80 +					<uri>http://example.org#H</uri> 
   16.81 +				</binding> 
   16.82 +			</result> 
   16.83 +		</results> 
   16.84 +	</sparql> 
   16.85 \ No newline at end of file
    17.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.2 +++ b/testsuite/src/test/resources/stSPARQL/MBBRelationsTest/RightTest.rq	Mon Jul 15 19:55:42 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((?x != ?y) && (strdf:right(?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/MBBRelationsTest/RightTest.srx	Mon Jul 15 19:55:42 2013 +0300
    18.3 @@ -0,0 +1,129 @@
    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#E</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#D</uri> 
   18.25 +				</binding> 
   18.26 +			</result> 
   18.27 +			<result> 
   18.28 +				<binding name='y'> 
   18.29 +					<uri>http://example.org#A</uri> 
   18.30 +				</binding> 
   18.31 +				<binding name='x'> 
   18.32 +					<uri>http://example.org#F</uri> 
   18.33 +				</binding> 
   18.34 +			</result> 
   18.35 +			<result> 
   18.36 +				<binding name='y'> 
   18.37 +					<uri>http://example.org#A</uri> 
   18.38 +				</binding> 
   18.39 +				<binding name='x'> 
   18.40 +					<uri>http://example.org#H</uri> 
   18.41 +				</binding> 
   18.42 +			</result> 
   18.43 +			<result> 
   18.44 +				<binding name='y'> 
   18.45 +					<uri>http://example.org#B</uri> 
   18.46 +				</binding> 
   18.47 +				<binding name='x'> 
   18.48 +					<uri>http://example.org#E</uri> 
   18.49 +				</binding> 
   18.50 +			</result> 
   18.51 +			<result> 
   18.52 +				<binding name='y'> 
   18.53 +					<uri>http://example.org#B</uri> 
   18.54 +				</binding> 
   18.55 +				<binding name='x'> 
   18.56 +					<uri>http://example.org#D</uri> 
   18.57 +				</binding> 
   18.58 +			</result> 
   18.59 +			<result> 
   18.60 +				<binding name='y'> 
   18.61 +					<uri>http://example.org#B</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#B</uri> 
   18.70 +				</binding> 
   18.71 +				<binding name='x'> 
   18.72 +					<uri>http://example.org#H</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#E</uri> 
   18.81 +				</binding> 
   18.82 +			</result> 
   18.83 +			<result> 
   18.84 +				<binding name='y'> 
   18.85 +					<uri>http://example.org#G</uri> 
   18.86 +				</binding> 
   18.87 +				<binding name='x'> 
   18.88 +					<uri>http://example.org#D</uri> 
   18.89 +				</binding> 
   18.90 +			</result> 
   18.91 +			<result> 
   18.92 +				<binding name='y'> 
   18.93 +					<uri>http://example.org#G</uri> 
   18.94 +				</binding> 
   18.95 +				<binding name='x'> 
   18.96 +					<uri>http://example.org#F</uri> 
   18.97 +				</binding> 
   18.98 +			</result> 
   18.99 +			<result> 
  18.100 +				<binding name='y'> 
  18.101 +					<uri>http://example.org#G</uri> 
  18.102 +				</binding> 
  18.103 +				<binding name='x'> 
  18.104 +					<uri>http://example.org#H</uri> 
  18.105 +				</binding> 
  18.106 +			</result> 
  18.107 +			<result> 
  18.108 +				<binding name='y'> 
  18.109 +					<uri>http://example.org#H</uri> 
  18.110 +				</binding> 
  18.111 +				<binding name='x'> 
  18.112 +					<uri>http://example.org#E</uri> 
  18.113 +				</binding> 
  18.114 +			</result> 
  18.115 +			<result> 
  18.116 +				<binding name='y'> 
  18.117 +					<uri>http://example.org#H</uri> 
  18.118 +				</binding> 
  18.119 +				<binding name='x'> 
  18.120 +					<uri>http://example.org#D</uri> 
  18.121 +				</binding> 
  18.122 +			</result> 
  18.123 +			<result> 
  18.124 +				<binding name='y'> 
  18.125 +					<uri>http://example.org#H</uri> 
  18.126 +				</binding> 
  18.127 +				<binding name='x'> 
  18.128 +					<uri>http://example.org#F</uri> 
  18.129 +				</binding> 
  18.130 +			</result> 
  18.131 +		</results> 
  18.132 +	</sparql>
  18.133 \ No newline at end of file