Strabon

changeset 1135:977335334f9a

Added Distance Test.
author Panayiotis Smeros <psmeros@di.uoa.gr>
date Mon Apr 29 17:49:25 2013 +0300 (2013-04-29)
parents 00cca9d880dc
children 1bf09942bfec
files testsuite/src/test/resources/geoSPARQL/QueryFunctionsTest/DistanceDegreeTest.rq testsuite/src/test/resources/geoSPARQL/QueryFunctionsTest/DistanceDegreeTest.srx testsuite/src/test/resources/geoSPARQL/QueryFunctionsTest/DistanceMetreTest.rq testsuite/src/test/resources/geoSPARQL/QueryFunctionsTest/DistanceMetreTest.srx
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/testsuite/src/test/resources/geoSPARQL/QueryFunctionsTest/DistanceDegreeTest.rq	Mon Apr 29 17:49:25 2013 +0300
     1.3 @@ -0,0 +1,8 @@
     1.4 +SELECT (geof:distance(?g1, ?g2, <http://www.opengis.net/def/uom/OGC/1.0/degree>) as ?dist)
     1.5 +WHERE
     1.6 +{
     1.7 +<http://example.org#A> geo:hasGeometry ?geom1.
     1.8 +?geom1 geo:asWKT ?g1.
     1.9 +
    1.10 +<http://example.org#E> geo:hasGeometry ?geom2.
    1.11 +?geom2 geo:asWKT ?g2.}
    1.12 \ 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/QueryFunctionsTest/DistanceDegreeTest.srx	Mon Apr 29 17:49:25 2013 +0300
     2.3 @@ -0,0 +1,14 @@
     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='dist'/>
     2.8 +	</head>
     2.9 +	<results>
    2.10 +		<result>
    2.11 +			<binding name='dist'>
    2.12 +				<literal datatype='http://www.w3.org/2001/XMLSchema#double'>1.796630567696411E-5</literal>
    2.13 +			</binding>
    2.14 +		</result>
    2.15 +	</results>
    2.16 +</sparql>
    2.17 +
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/testsuite/src/test/resources/geoSPARQL/QueryFunctionsTest/DistanceMetreTest.rq	Mon Apr 29 17:49:25 2013 +0300
     3.3 @@ -0,0 +1,8 @@
     3.4 +SELECT (geof:distance(?g1, ?g2, <http://www.opengis.net/def/uom/OGC/1.0/metre>) as ?dist)
     3.5 +WHERE
     3.6 +{
     3.7 +<http://example.org#A> geo:hasGeometry ?geom1.
     3.8 +?geom1 geo:asWKT ?g1.
     3.9 +
    3.10 +<http://example.org#E> geo:hasGeometry ?geom2.
    3.11 +?geom2 geo:asWKT ?g2.}
    3.12 \ 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/geoSPARQL/QueryFunctionsTest/DistanceMetreTest.srx	Mon Apr 29 17:49:25 2013 +0300
     4.3 @@ -0,0 +1,13 @@
     4.4 +<?xml version='1.0' encoding='UTF-8'?>
     4.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
     4.6 +	<head>
     4.7 +		<variable name='dist'/>
     4.8 +	</head>
     4.9 +	<results>
    4.10 +		<result>
    4.11 +			<binding name='dist'>
    4.12 +				<literal datatype='http://www.w3.org/2001/XMLSchema#double'>2.0</literal>
    4.13 +			</binding>
    4.14 +		</result>
    4.15 +	</results>
    4.16 +</sparql>
    4.17 \ No newline at end of file