Strabon

changeset 1085:c19ab8cba094

Added sfEquals test.
author Panayiotis Smeros <psmeros@di.uoa.gr>
date Fri Apr 26 12:21:41 2013 +0300 (2013-04-26)
parents fb73954c4f91
children 7ae5cf379571
files testsuite/src/test/resources/geoSPARQL/SfSpatialRelationsTest/SfEqualsTest.rq testsuite/src/test/resources/geoSPARQL/SfSpatialRelationsTest/SfEqualsTest.srx testsuite/src/test/resources/prefixes
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/testsuite/src/test/resources/geoSPARQL/SfSpatialRelationsTest/SfEqualsTest.rq	Fri Apr 26 12:21:41 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:sfEquals(?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/SfEqualsTest.srx	Fri Apr 26 12:21:41 2013 +0300
     2.3 @@ -0,0 +1,25 @@
     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#F</uri>
    2.14 +			</binding>
    2.15 +			<binding name='x'>
    2.16 +				<uri>http://example.org#E</uri>
    2.17 +			</binding>
    2.18 +		</result>
    2.19 +		<result>
    2.20 +			<binding name='y'>
    2.21 +				<uri>http://example.org#E</uri>
    2.22 +			</binding>
    2.23 +			<binding name='x'>
    2.24 +				<uri>http://example.org#F</uri>
    2.25 +			</binding>
    2.26 +		</result>
    2.27 +	</results>
    2.28 +</sparql>
    2.29 \ No newline at end of file
     3.1 --- a/testsuite/src/test/resources/prefixes	Thu Apr 25 19:43:40 2013 +0300
     3.2 +++ b/testsuite/src/test/resources/prefixes	Fri Apr 26 12:21:41 2013 +0300
     3.3 @@ -10,4 +10,5 @@
     3.4  PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
     3.5  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
     3.6  PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
     3.7 -PREFIX geo: <http://www.opengis.net/ont/geosparql#>
     3.8 \ No newline at end of file
     3.9 +PREFIX geo: <http://www.opengis.net/ont/geosparql#>
    3.10 +PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
    3.11 \ No newline at end of file