Strabon

changeset 1129:40fe983c1488

one more test for strdf:distance
author Stella Giannakopoulou <sgian@di.uoa.gr>
date Mon Apr 29 18:05:34 2013 +0300 (2013-04-29)
parents b297e773ff56
children 1bf09942bfec edf25917969d
files testsuite/src/test/resources/stSPARQL/DistanceTest/DistanceTestFilter.rq testsuite/src/test/resources/stSPARQL/DistanceTest/DistanceTestFilter.srx
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/testsuite/src/test/resources/stSPARQL/DistanceTest/DistanceTestFilter.rq	Mon Apr 29 18:05:34 2013 +0300
     1.3 @@ -0,0 +1,7 @@
     1.4 +select ?x ?y
     1.5 +where
     1.6 +{
     1.7 +	?x <http://example.org/ontology/hasGeometry> ?g1 .
     1.8 +	?y <http://example.org/ontology/hasGeometry> ?g2 .
     1.9 +	FILTER(strdf:distance(?g1, ?g2, ogc:metre) < 5)
    1.10 +}
    1.11 \ 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/stSPARQL/DistanceTest/DistanceTestFilter.srx	Mon Apr 29 18:05:34 2013 +0300
     2.3 @@ -0,0 +1,33 @@
     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/id/Point/5531</uri>
    2.14 +			</binding>
    2.15 +			<binding name='x'>
    2.16 +				<uri>http://example.org/id/Point/5531</uri>
    2.17 +			</binding>
    2.18 +		</result>
    2.19 +		<result>
    2.20 +			<binding name='y'>
    2.21 +				<uri>http://example.org/id/Point/5532</uri>
    2.22 +			</binding>
    2.23 +			<binding name='x'>
    2.24 +				<uri>http://example.org/id/Point/5532</uri>
    2.25 +			</binding>
    2.26 +		</result>
    2.27 +		<result>
    2.28 +			<binding name='y'>
    2.29 +				<uri>http://example.org/id/Point/5533</uri>
    2.30 +			</binding>
    2.31 +			<binding name='x'>
    2.32 +				<uri>http://example.org/id/Point/5533</uri>
    2.33 +			</binding>
    2.34 +		</result>
    2.35 +	</results>
    2.36 +</sparql>
    2.37 \ No newline at end of file