Strabon

changeset 1401:7b5fe3164aab

added another test for geof:getSRID (see bug #32) that looks in geometries stored in the database
author Babis Nikolaou <charnik@di.uoa.gr>
date Fri Sep 19 14:54:54 2014 +0300 (2014-09-19)
parents 59c935dc81e4
children 1f2f22747854
files testsuite/src/test/resources/geoSPARQL/BasicFunctionsTest/getSRIDFromDBTest.rq testsuite/src/test/resources/geoSPARQL/BasicFunctionsTest/getSRIDFromDBTest.srx
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/testsuite/src/test/resources/geoSPARQL/BasicFunctionsTest/getSRIDFromDBTest.rq	Fri Sep 19 14:54:54 2014 +0300
     1.3 @@ -0,0 +1,14 @@
     1.4 +SELECT (geof:getSRID(?g1) as ?strdf_2100) 
     1.5 +       (geof:getSRID(?g2) as ?strdf_crs84)
     1.6 +       (geof:getSRID(?g3) as ?strdf_4326)
     1.7 +       (geof:getSRID(?g4) as ?geo_4326) 
     1.8 +       (geof:getSRID(?g5) as ?geo_crs84)
     1.9 +       (geof:getSRID(?g6) as ?geo_2100)
    1.10 +WHERE {
    1.11 +   <http://ex.org/strdf_2100>       ?p ?g1 .
    1.12 +   <http://ex.org/strdf_crs84>      ?p ?g2 .
    1.13 +   <http://ex.org/strdf_4326>       ?p ?g3 .
    1.14 +   <http://ex.org/geosparql_4326>   ?p ?g4 .
    1.15 +   <http://ex.org/geosparql_crs84>  ?p ?g5 .
    1.16 +   <http://ex.org/geosparql_2100>   ?p ?g6 .
    1.17 +}
    1.18 \ 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/BasicFunctionsTest/getSRIDFromDBTest.srx	Fri Sep 19 14:54:54 2014 +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='strdf_2100'/>
     2.8 +			<variable name='strdf_crs84'/>
     2.9 +			<variable name='strdf_4326'/>
    2.10 +			<variable name='geo_4326'/>
    2.11 +			<variable name='geo_crs84'/>
    2.12 +			<variable name='geo_2100'/>
    2.13 +		</head> 
    2.14 +		<results> 
    2.15 +			<result>
    2.16 +				<binding name='strdf_2100'> 
    2.17 +					<uri>http://www.opengis.net/def/crs/EPSG/0/2100</uri> 
    2.18 +				</binding>
    2.19 +				<binding name='strdf_crs84'> 
    2.20 +					<uri>http://www.opengis.net/def/crs/OGC/1.3/CRS84</uri> 
    2.21 +				</binding>
    2.22 +				<binding name='strdf_4326'> 
    2.23 +					<uri>http://www.opengis.net/def/crs/EPSG/0/4326</uri> 
    2.24 +				</binding>
    2.25 +				<binding name='geo_4326'> 
    2.26 +					<uri>http://www.opengis.net/def/crs/EPSG/0/4326</uri> 
    2.27 +				</binding>
    2.28 +				<binding name='geo_crs84'> 
    2.29 +					<uri>http://www.opengis.net/def/crs/OGC/1.3/CRS84</uri> 
    2.30 +				</binding>
    2.31 +				<binding name='geo_2100'> 
    2.32 +					<uri>http://www.opengis.net/def/crs/EPSG/0/2100</uri> 
    2.33 +				</binding>
    2.34 +			</result> 
    2.35 +		</results> 
    2.36 +	</sparql> 
    2.37 \ No newline at end of file