Strabon

changeset 1138:148e7194be4b

merge
author Stella Giannakopoulou <sgian@di.uoa.gr>
date Tue Apr 30 14:12:00 2013 +0300 (2013-04-30)
parents edf25917969d 1bf09942bfec
children a44d927e8070
files
line diff
     1.1 --- a/README	Tue Apr 30 14:04:56 2013 +0300
     1.2 +++ b/README	Tue Apr 30 14:12:00 2013 +0300
     1.3 @@ -339,7 +339,7 @@
     1.4  	If you want to run all the tests:
     1.5  	
     1.6  	1. Go to Strabon directory (root directory of all the subprojects).
     1.7 -	2. Run "mvn test".
     1.8 +	2. Run "mvn test -DskipTests=false".
     1.9  	3. Optionally you can pass an environment variable with "-DvariableName=variableValue".
    1.10  
    1.11  
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/testsuite/src/test/java/eu/earthobservatory/testsuite/geoSPARQL/FeaturePropertiesTest.java	Tue Apr 30 14:12:00 2013 +0300
     2.3 @@ -0,0 +1,20 @@
     2.4 +/**
     2.5 + * This Source Code Form is subject to the terms of the Mozilla Public
     2.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     2.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/.
     2.8 + * 
     2.9 + * Copyright (C) 2010, 2011, 2012, 2013 Pyravlos Team
    2.10 + * 
    2.11 + * http://www.strabon.di.uoa.gr/
    2.12 + */
    2.13 +package eu.earthobservatory.testsuite.geoSPARQL;
    2.14 +
    2.15 +import eu.earthobservatory.testsuite.utils.TemplateTest;
    2.16 +
    2.17 +
    2.18 +/**
    2.19 + * GeoSPARQL Feature Properties test.
    2.20 + * 
    2.21 + * @author Panayiotis Smeros <psmeros@di.uoa.gr
    2.22 + */
    2.23 +public class FeaturePropertiesTest extends TemplateTest{}
    2.24 \ No newline at end of file
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/testsuite/src/test/java/eu/earthobservatory/testsuite/geoSPARQL/GeometryClassTest.java	Tue Apr 30 14:12:00 2013 +0300
     3.3 @@ -0,0 +1,20 @@
     3.4 +/**
     3.5 + * This Source Code Form is subject to the terms of the Mozilla Public
     3.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     3.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/.
     3.8 + * 
     3.9 + * Copyright (C) 2010, 2011, 2012, 2013 Pyravlos Team
    3.10 + * 
    3.11 + * http://www.strabon.di.uoa.gr/
    3.12 + */
    3.13 +package eu.earthobservatory.testsuite.geoSPARQL;
    3.14 +
    3.15 +import eu.earthobservatory.testsuite.utils.TemplateTest;
    3.16 +
    3.17 +
    3.18 +/**
    3.19 + * GeoSPARQL Geometry Class test.
    3.20 + * 
    3.21 + * @author Panayiotis Smeros <psmeros@di.uoa.gr
    3.22 + */
    3.23 +public class GeometryClassTest extends TemplateTest{}
    3.24 \ No newline at end of file
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/testsuite/src/test/java/eu/earthobservatory/testsuite/geoSPARQL/GeometryPropertiesTest.java	Tue Apr 30 14:12:00 2013 +0300
     4.3 @@ -0,0 +1,20 @@
     4.4 +/**
     4.5 + * This Source Code Form is subject to the terms of the Mozilla Public
     4.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     4.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/.
     4.8 + * 
     4.9 + * Copyright (C) 2010, 2011, 2012, 2013 Pyravlos Team
    4.10 + * 
    4.11 + * http://www.strabon.di.uoa.gr/
    4.12 + */
    4.13 +package eu.earthobservatory.testsuite.geoSPARQL;
    4.14 +
    4.15 +import eu.earthobservatory.testsuite.utils.TemplateTest;
    4.16 +
    4.17 +
    4.18 +/**
    4.19 + * GeoSPARQL Geometry Properties test.
    4.20 + * 
    4.21 + * @author Panayiotis Smeros <psmeros@di.uoa.gr
    4.22 + */
    4.23 +public class GeometryPropertiesTest extends TemplateTest{}
    4.24 \ No newline at end of file
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/testsuite/src/test/java/eu/earthobservatory/testsuite/geoSPARQL/QueryFunctionsTest.java	Tue Apr 30 14:12:00 2013 +0300
     5.3 @@ -0,0 +1,20 @@
     5.4 +/**
     5.5 + * This Source Code Form is subject to the terms of the Mozilla Public
     5.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     5.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/.
     5.8 + * 
     5.9 + * Copyright (C) 2010, 2011, 2012, 2013 Pyravlos Team
    5.10 + * 
    5.11 + * http://www.strabon.di.uoa.gr/
    5.12 + */
    5.13 +package eu.earthobservatory.testsuite.geoSPARQL;
    5.14 +
    5.15 +import eu.earthobservatory.testsuite.utils.TemplateTest;
    5.16 +
    5.17 +
    5.18 +/**
    5.19 + * GeoSPARQL Query Functions test.
    5.20 + * 
    5.21 + * @author Panayiotis Smeros <psmeros@di.uoa.gr
    5.22 + */
    5.23 +public class QueryFunctionsTest extends TemplateTest{}
    5.24 \ No newline at end of file
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/testsuite/src/test/resources/geoSPARQL/FeaturePropertiesTest/FeaturePropertiesTest.nt	Tue Apr 30 14:12:00 2013 +0300
     6.3 @@ -0,0 +1,2 @@
     6.4 +<http://example.org#A> <http://www.opengis.net/ont/geosparql#hasGeometry> <http://example.org#geom>.
     6.5 +<http://example.org#A> <http://www.opengis.net/ont/geosparql#hasDefaultGeometry> <http://example.org#defGeom>.
     6.6 \ No newline at end of file
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/testsuite/src/test/resources/geoSPARQL/FeaturePropertiesTest/FeaturePropertiesTest.rq	Tue Apr 30 14:12:00 2013 +0300
     7.3 @@ -0,0 +1,4 @@
     7.4 +SELECT ?geom ?defGeom
     7.5 +WHERE 
     7.6 +{?g geo:hasGeometry ?geom.
     7.7 +?g geo:hasDefaultGeometry ?defGeom}
     7.8 \ No newline at end of file
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/testsuite/src/test/resources/geoSPARQL/FeaturePropertiesTest/FeaturePropertiesTest.srx	Tue Apr 30 14:12:00 2013 +0300
     8.3 @@ -0,0 +1,17 @@
     8.4 +<?xml version='1.0' encoding='UTF-8'?>
     8.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
     8.6 +	<head>
     8.7 +		<variable name='geom'/>
     8.8 +		<variable name='defGeom'/>
     8.9 +	</head>
    8.10 +	<results>
    8.11 +		<result>
    8.12 +			<binding name='geom'>
    8.13 +				<uri>http://example.org#geom</uri>
    8.14 +			</binding>
    8.15 +			<binding name='defGeom'>
    8.16 +				<uri>http://example.org#defGeom</uri>
    8.17 +			</binding>
    8.18 +		</result>
    8.19 +	</results>
    8.20 +</sparql>
    8.21 \ No newline at end of file
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/testsuite/src/test/resources/geoSPARQL/GeometryClassTest/GeometryClassTest.nt	Tue Apr 30 14:12:00 2013 +0300
     9.3 @@ -0,0 +1,1 @@
     9.4 +<http://example.org#geom> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.opengis.net/ont/geosparql#Geometry>.
     9.5 \ No newline at end of file
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/testsuite/src/test/resources/geoSPARQL/GeometryClassTest/GeometryClassTest.rq	Tue Apr 30 14:12:00 2013 +0300
    10.3 @@ -0,0 +1,3 @@
    10.4 +SELECT ?geo 
    10.5 +WHERE 
    10.6 +{?geo rdf:type geo:Geometry}
    10.7 \ No newline at end of file
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/testsuite/src/test/resources/geoSPARQL/GeometryClassTest/GeometryClassTest.srx	Tue Apr 30 14:12:00 2013 +0300
    11.3 @@ -0,0 +1,13 @@
    11.4 +<?xml version='1.0' encoding='UTF-8'?>
    11.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
    11.6 +	<head>
    11.7 +		<variable name='geo'/>
    11.8 +	</head>
    11.9 +	<results>
   11.10 +		<result>
   11.11 +			<binding name='geo'>
   11.12 +				<uri>http://example.org#geom</uri>
   11.13 +			</binding>
   11.14 +		</result>
   11.15 +	</results>
   11.16 +</sparql>
   11.17 \ No newline at end of file
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/testsuite/src/test/resources/geoSPARQL/GeometryPropertiesTest/GeometryPropertiesTest.nt	Tue Apr 30 14:12:00 2013 +0300
    12.3 @@ -0,0 +1,6 @@
    12.4 +<http://example.org#geom> <http://www.opengis.net/ont/geosparql#dimension> "2"^^<http://www.w3.org/2001/XMLSchema#integer>.
    12.5 +<http://example.org#geom> <http://www.opengis.net/ont/geosparql#coordinateDimension> "2"^^<http://www.w3.org/2001/XMLSchema#integer>.
    12.6 +<http://example.org#geom> <http://www.opengis.net/ont/geosparql#spatialDimension> "2"^^<http://www.w3.org/2001/XMLSchema#integer>.
    12.7 +<http://example.org#geom> <http://www.opengis.net/ont/geosparql#isEmpty> "false"^^<http://www.w3.org/2001/XMLSchema#boolean>.
    12.8 +<http://example.org#geom> <http://www.opengis.net/ont/geosparql#isSimple> "false"^^<http://www.w3.org/2001/XMLSchema#boolean>.
    12.9 +<http://example.org#geom> <http://www.opengis.net/ont/geosparql#hasSerialization> "  <http://www.opengis.net/def/crs/OGC/1.3/CRS84> Polygon((0 0, 1 0, 1 1, 0 1, 0 0))  "^^<http://www.opengis.net/ont/geosparql#wktLiteral>.
   12.10 \ No newline at end of file
    13.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.2 +++ b/testsuite/src/test/resources/geoSPARQL/GeometryPropertiesTest/GeometryPropertiesTest.rq	Tue Apr 30 14:12:00 2013 +0300
    13.3 @@ -0,0 +1,8 @@
    13.4 +SELECT *
    13.5 +WHERE 
    13.6 +{?geom geo:dimension ?dim.
    13.7 +?geom geo:coordinateDimension ?coorDim.
    13.8 +?geom geo:spatialDimension ?spatDim.
    13.9 +?geom geo:isEmpty ?empty.
   13.10 +?geom geo:isSimple ?simple.
   13.11 +?geom geo:hasSerialization ?serialization.}
   13.12 \ No newline at end of file
    14.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.2 +++ b/testsuite/src/test/resources/geoSPARQL/GeometryPropertiesTest/GeometryPropertiesTest.srx	Tue Apr 30 14:12:00 2013 +0300
    14.3 @@ -0,0 +1,37 @@
    14.4 +<?xml version='1.0' encoding='UTF-8'?>
    14.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
    14.6 +	<head>
    14.7 +		<variable name='geom'/>
    14.8 +		<variable name='dim'/>
    14.9 +		<variable name='coorDim'/>
   14.10 +		<variable name='spatDim'/>
   14.11 +		<variable name='empty'/>
   14.12 +		<variable name='simple'/>
   14.13 +		<variable name='serialization'/>
   14.14 +	</head>
   14.15 +	<results>
   14.16 +		<result>
   14.17 +			<binding name='dim'>
   14.18 +				<literal datatype='http://www.w3.org/2001/XMLSchema#integer'>2</literal>
   14.19 +			</binding>
   14.20 +			<binding name='simple'>
   14.21 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   14.22 +			</binding>
   14.23 +			<binding name='serialization'>
   14.24 +				<literal datatype='http://www.opengis.net/ont/geosparql#wktLiteral'>  &lt;http://www.opengis.net/def/crs/OGC/1.3/CRS84&gt; Polygon((0 0, 1 0, 1 1, 0 1, 0 0))  </literal>
   14.25 +			</binding>
   14.26 +			<binding name='empty'>
   14.27 +				<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal>
   14.28 +			</binding>
   14.29 +			<binding name='coorDim'>
   14.30 +				<literal datatype='http://www.w3.org/2001/XMLSchema#integer'>2</literal>
   14.31 +			</binding>
   14.32 +			<binding name='geom'>
   14.33 +				<uri>http://example.org#geom</uri>
   14.34 +			</binding>
   14.35 +			<binding name='spatDim'>
   14.36 +				<literal datatype='http://www.w3.org/2001/XMLSchema#integer'>2</literal>
   14.37 +			</binding>
   14.38 +		</result>
   14.39 +	</results>
   14.40 +</sparql>
   14.41 \ No newline at end of file
    15.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.2 +++ b/testsuite/src/test/resources/geoSPARQL/QueryFunctionsTest/DistanceDegreeTest.rq	Tue Apr 30 14:12:00 2013 +0300
    15.3 @@ -0,0 +1,8 @@
    15.4 +SELECT (geof:distance(?g1, ?g2, <http://www.opengis.net/def/uom/OGC/1.0/degree>) as ?dist)
    15.5 +WHERE
    15.6 +{
    15.7 +<http://example.org#A> geo:hasGeometry ?geom1.
    15.8 +?geom1 geo:asWKT ?g1.
    15.9 +
   15.10 +<http://example.org#E> geo:hasGeometry ?geom2.
   15.11 +?geom2 geo:asWKT ?g2.}
   15.12 \ No newline at end of file
    16.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.2 +++ b/testsuite/src/test/resources/geoSPARQL/QueryFunctionsTest/DistanceDegreeTest.srx	Tue Apr 30 14:12:00 2013 +0300
    16.3 @@ -0,0 +1,14 @@
    16.4 +<?xml version='1.0' encoding='UTF-8'?>
    16.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
    16.6 +	<head>
    16.7 +		<variable name='dist'/>
    16.8 +	</head>
    16.9 +	<results>
   16.10 +		<result>
   16.11 +			<binding name='dist'>
   16.12 +				<literal datatype='http://www.w3.org/2001/XMLSchema#double'>1.796630567696411E-5</literal>
   16.13 +			</binding>
   16.14 +		</result>
   16.15 +	</results>
   16.16 +</sparql>
   16.17 +
    17.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.2 +++ b/testsuite/src/test/resources/geoSPARQL/QueryFunctionsTest/DistanceMetreTest.rq	Tue Apr 30 14:12:00 2013 +0300
    17.3 @@ -0,0 +1,8 @@
    17.4 +SELECT (geof:distance(?g1, ?g2, <http://www.opengis.net/def/uom/OGC/1.0/metre>) as ?dist)
    17.5 +WHERE
    17.6 +{
    17.7 +<http://example.org#A> geo:hasGeometry ?geom1.
    17.8 +?geom1 geo:asWKT ?g1.
    17.9 +
   17.10 +<http://example.org#E> geo:hasGeometry ?geom2.
   17.11 +?geom2 geo:asWKT ?g2.}
   17.12 \ No newline at end of file
    18.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.2 +++ b/testsuite/src/test/resources/geoSPARQL/QueryFunctionsTest/DistanceMetreTest.srx	Tue Apr 30 14:12:00 2013 +0300
    18.3 @@ -0,0 +1,13 @@
    18.4 +<?xml version='1.0' encoding='UTF-8'?>
    18.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
    18.6 +	<head>
    18.7 +		<variable name='dist'/>
    18.8 +	</head>
    18.9 +	<results>
   18.10 +		<result>
   18.11 +			<binding name='dist'>
   18.12 +				<literal datatype='http://www.w3.org/2001/XMLSchema#double'>2.0</literal>
   18.13 +			</binding>
   18.14 +		</result>
   18.15 +	</results>
   18.16 +</sparql>
   18.17 \ No newline at end of file
    19.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    19.2 +++ b/testsuite/src/test/resources/geoSPARQL/QueryFunctionsTest/QueryFunctionsTest.nt	Tue Apr 30 14:12:00 2013 +0300
    19.3 @@ -0,0 +1,16 @@
    19.4 +<http://example.org#A> <http://www.opengis.net/ont/geosparql#hasGeometry> <http://example.org#geomA>.
    19.5 +<http://example.org#B> <http://www.opengis.net/ont/geosparql#hasGeometry> <http://example.org#geomB>.
    19.6 +<http://example.org#C> <http://www.opengis.net/ont/geosparql#hasGeometry> <http://example.org#geomC>.
    19.7 +<http://example.org#D> <http://www.opengis.net/ont/geosparql#hasGeometry> <http://example.org#geomD>.
    19.8 +<http://example.org#E> <http://www.opengis.net/ont/geosparql#hasGeometry> <http://example.org#geomE>.
    19.9 +<http://example.org#F> <http://www.opengis.net/ont/geosparql#hasGeometry> <http://example.org#geomF>.
   19.10 +<http://example.org#G> <http://www.opengis.net/ont/geosparql#hasGeometry> <http://example.org#geomG>.
   19.11 +<http://example.org#H> <http://www.opengis.net/ont/geosparql#hasGeometry> <http://example.org#geomH>.
   19.12 +<http://example.org#geomA> <http://www.opengis.net/ont/geosparql#asWKT> "  <http://www.opengis.net/def/crs/OGC/1.3/CRS84> Polygon((0 0, 1 0, 1 1, 0 1, 0 0))  "^^<http://www.opengis.net/ont/geosparql#wktLiteral>.
   19.13 +<http://example.org#geomB> <http://www.opengis.net/ont/geosparql#asWKT> "  <http://www.opengis.net/def/crs/OGC/1.3/CRS84> Polygon((0 0, 2 0, 2 2, 0 2 , 0 0))  "^^<http://www.opengis.net/ont/geosparql#wktLiteral>.
   19.14 +<http://example.org#geomC> <http://www.opengis.net/ont/geosparql#asWKT> "  <http://www.opengis.net/def/crs/OGC/1.3/CRS84> Polygon((1 1, 3 1, 3 2, 1 2, 1 1))  "^^<http://www.opengis.net/ont/geosparql#wktLiteral>.
   19.15 +<http://example.org#geomD> <http://www.opengis.net/ont/geosparql#asWKT> "  <http://www.opengis.net/def/crs/OGC/1.3/CRS84> Polygon((3 1, 4 1, 4 2, 3 2, 3 1))  "^^<http://www.opengis.net/ont/geosparql#wktLiteral>.
   19.16 +<http://example.org#geomE> <http://www.opengis.net/ont/geosparql#asWKT> "  <http://www.opengis.net/def/crs/OGC/1.3/CRS84> Polygon((3 1, 4 1, 4 2, 3 2, 3 1))  "^^<http://www.opengis.net/ont/geosparql#wktLiteral>.
   19.17 +<http://example.org#geomF> <http://www.opengis.net/ont/geosparql#asWKT> "  <http://www.opengis.net/def/crs/OGC/1.3/CRS84> Linestring(3 2, 4 0)  "^^<http://www.opengis.net/ont/geosparql#wktLiteral>.
   19.18 +<http://example.org#geomG> <http://www.opengis.net/ont/geosparql#asWKT> "  <http://www.opengis.net/def/crs/OGC/1.3/CRS84> Point(1 1)  "^^<http://www.opengis.net/ont/geosparql#wktLiteral>.
   19.19 +<http://example.org#geomH> <http://www.opengis.net/ont/geosparql#asWKT> "  <http://www.opengis.net/def/crs/OGC/1.3/CRS84> Polygon((2.1 1.1, 2.9 1.1, 2.9 1.9, 2.1 1.9, 2.1 1.1))  "^^<http://www.opengis.net/ont/geosparql#wktLiteral>.