Strabon

changeset 1088:a460c0497dcd

Added sfIntersects test.
author Panayiotis Smeros <psmeros@di.uoa.gr>
date Fri Apr 26 15:04:24 2013 +0300 (2013-04-26)
parents d8fb1142494d
children 13f85e19af56
files testsuite/src/test/resources/geoSPARQL/SfSpatialRelationsTest/SfIntersectsTest.rq testsuite/src/test/resources/geoSPARQL/SfSpatialRelationsTest/SfIntersectsTest.srx
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/testsuite/src/test/resources/geoSPARQL/SfSpatialRelationsTest/SfIntersectsTest.rq	Fri Apr 26 15:04:24 2013 +0300
     1.3 @@ -0,0 +1,10 @@
     1.4 +SELECT ?x ?y
     1.5 +WHERE
     1.6 +{
     1.7 +?x geo:hasGeometry ?geom1.
     1.8 +?geom1 geo:asWKT ?g1.
     1.9 +
    1.10 +?y geo:hasGeometry ?geom2.
    1.11 +?geom2 geo:asWKT ?g2.
    1.12 +
    1.13 +FILTER((?x != ?y) && (geof:sfIntersects(?g1, ?g2)))}
    1.14 \ No newline at end of file
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/testsuite/src/test/resources/geoSPARQL/SfSpatialRelationsTest/SfIntersectsTest.srx	Fri Apr 26 15:04:24 2013 +0300
     2.3 @@ -0,0 +1,201 @@
     2.4 +<?xml version='1.0' encoding='UTF-8'?>
     2.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
     2.6 +	<head>
     2.7 +		<variable name='x'/>
     2.8 +		<variable name='y'/>
     2.9 +	</head>
    2.10 +	<results>
    2.11 +		<result>
    2.12 +			<binding name='y'>
    2.13 +				<uri>http://example.org#A</uri>
    2.14 +			</binding>
    2.15 +			<binding name='x'>
    2.16 +				<uri>http://example.org#B</uri>
    2.17 +			</binding>
    2.18 +		</result>
    2.19 +		<result>
    2.20 +			<binding name='y'>
    2.21 +				<uri>http://example.org#A</uri>
    2.22 +			</binding>
    2.23 +			<binding name='x'>
    2.24 +				<uri>http://example.org#C</uri>
    2.25 +			</binding>
    2.26 +		</result>
    2.27 +		<result>
    2.28 +			<binding name='y'>
    2.29 +				<uri>http://example.org#A</uri>
    2.30 +			</binding>
    2.31 +			<binding name='x'>
    2.32 +				<uri>http://example.org#G</uri>
    2.33 +			</binding>
    2.34 +		</result>
    2.35 +		<result>
    2.36 +			<binding name='y'>
    2.37 +				<uri>http://example.org#B</uri>
    2.38 +			</binding>
    2.39 +			<binding name='x'>
    2.40 +				<uri>http://example.org#A</uri>
    2.41 +			</binding>
    2.42 +		</result>
    2.43 +		<result>
    2.44 +			<binding name='y'>
    2.45 +				<uri>http://example.org#B</uri>
    2.46 +			</binding>
    2.47 +			<binding name='x'>
    2.48 +				<uri>http://example.org#C</uri>
    2.49 +			</binding>
    2.50 +		</result>
    2.51 +		<result>
    2.52 +			<binding name='y'>
    2.53 +				<uri>http://example.org#B</uri>
    2.54 +			</binding>
    2.55 +			<binding name='x'>
    2.56 +				<uri>http://example.org#G</uri>
    2.57 +			</binding>
    2.58 +		</result>
    2.59 +		<result>
    2.60 +			<binding name='y'>
    2.61 +				<uri>http://example.org#C</uri>
    2.62 +			</binding>
    2.63 +			<binding name='x'>
    2.64 +				<uri>http://example.org#A</uri>
    2.65 +			</binding>
    2.66 +		</result>
    2.67 +		<result>
    2.68 +			<binding name='y'>
    2.69 +				<uri>http://example.org#C</uri>
    2.70 +			</binding>
    2.71 +			<binding name='x'>
    2.72 +				<uri>http://example.org#B</uri>
    2.73 +			</binding>
    2.74 +		</result>
    2.75 +		<result>
    2.76 +			<binding name='y'>
    2.77 +				<uri>http://example.org#C</uri>
    2.78 +			</binding>
    2.79 +			<binding name='x'>
    2.80 +				<uri>http://example.org#G</uri>
    2.81 +			</binding>
    2.82 +		</result>
    2.83 +		<result>
    2.84 +			<binding name='y'>
    2.85 +				<uri>http://example.org#C</uri>
    2.86 +			</binding>
    2.87 +			<binding name='x'>
    2.88 +				<uri>http://example.org#D</uri>
    2.89 +			</binding>
    2.90 +		</result>
    2.91 +		<result>
    2.92 +			<binding name='y'>
    2.93 +				<uri>http://example.org#C</uri>
    2.94 +			</binding>
    2.95 +			<binding name='x'>
    2.96 +				<uri>http://example.org#E</uri>
    2.97 +			</binding>
    2.98 +		</result>
    2.99 +		<result>
   2.100 +			<binding name='y'>
   2.101 +				<uri>http://example.org#C</uri>
   2.102 +			</binding>
   2.103 +			<binding name='x'>
   2.104 +				<uri>http://example.org#F</uri>
   2.105 +			</binding>
   2.106 +		</result>
   2.107 +		<result>
   2.108 +			<binding name='y'>
   2.109 +				<uri>http://example.org#G</uri>
   2.110 +			</binding>
   2.111 +			<binding name='x'>
   2.112 +				<uri>http://example.org#A</uri>
   2.113 +			</binding>
   2.114 +		</result>
   2.115 +		<result>
   2.116 +			<binding name='y'>
   2.117 +				<uri>http://example.org#G</uri>
   2.118 +			</binding>
   2.119 +			<binding name='x'>
   2.120 +				<uri>http://example.org#B</uri>
   2.121 +			</binding>
   2.122 +		</result>
   2.123 +		<result>
   2.124 +			<binding name='y'>
   2.125 +				<uri>http://example.org#G</uri>
   2.126 +			</binding>
   2.127 +			<binding name='x'>
   2.128 +				<uri>http://example.org#C</uri>
   2.129 +			</binding>
   2.130 +		</result>
   2.131 +		<result>
   2.132 +			<binding name='y'>
   2.133 +				<uri>http://example.org#E</uri>
   2.134 +			</binding>
   2.135 +			<binding name='x'>
   2.136 +				<uri>http://example.org#C</uri>
   2.137 +			</binding>
   2.138 +		</result>
   2.139 +		<result>
   2.140 +			<binding name='y'>
   2.141 +				<uri>http://example.org#E</uri>
   2.142 +			</binding>
   2.143 +			<binding name='x'>
   2.144 +				<uri>http://example.org#D</uri>
   2.145 +			</binding>
   2.146 +		</result>
   2.147 +		<result>
   2.148 +			<binding name='y'>
   2.149 +				<uri>http://example.org#E</uri>
   2.150 +			</binding>
   2.151 +			<binding name='x'>
   2.152 +				<uri>http://example.org#F</uri>
   2.153 +			</binding>
   2.154 +		</result>
   2.155 +		<result>
   2.156 +			<binding name='y'>
   2.157 +				<uri>http://example.org#D</uri>
   2.158 +			</binding>
   2.159 +			<binding name='x'>
   2.160 +				<uri>http://example.org#C</uri>
   2.161 +			</binding>
   2.162 +		</result>
   2.163 +		<result>
   2.164 +			<binding name='y'>
   2.165 +				<uri>http://example.org#D</uri>
   2.166 +			</binding>
   2.167 +			<binding name='x'>
   2.168 +				<uri>http://example.org#E</uri>
   2.169 +			</binding>
   2.170 +		</result>
   2.171 +		<result>
   2.172 +			<binding name='y'>
   2.173 +				<uri>http://example.org#D</uri>
   2.174 +			</binding>
   2.175 +			<binding name='x'>
   2.176 +				<uri>http://example.org#F</uri>
   2.177 +			</binding>
   2.178 +		</result>
   2.179 +		<result>
   2.180 +			<binding name='y'>
   2.181 +				<uri>http://example.org#F</uri>
   2.182 +			</binding>
   2.183 +			<binding name='x'>
   2.184 +				<uri>http://example.org#C</uri>
   2.185 +			</binding>
   2.186 +		</result>
   2.187 +		<result>
   2.188 +			<binding name='y'>
   2.189 +				<uri>http://example.org#F</uri>
   2.190 +			</binding>
   2.191 +			<binding name='x'>
   2.192 +				<uri>http://example.org#D</uri>
   2.193 +			</binding>
   2.194 +		</result>
   2.195 +		<result>
   2.196 +			<binding name='y'>
   2.197 +				<uri>http://example.org#F</uri>
   2.198 +			</binding>
   2.199 +			<binding name='x'>
   2.200 +				<uri>http://example.org#E</uri>
   2.201 +			</binding>
   2.202 +		</result>
   2.203 +	</results>
   2.204 +</sparql>
   2.205 \ No newline at end of file