Strabon
changeset 1133:8c6fa2735ec9
Added Geometry Properties Test.
author | Panayiotis Smeros <psmeros@di.uoa.gr> |
---|---|
date | Mon Apr 29 15:57:47 2013 +0300 (2013-04-29) |
parents | 6daf1d96e6f2 |
children | 00cca9d880dc |
files | testsuite/src/test/java/eu/earthobservatory/testsuite/geoSPARQL/GeometryPropertiesTest.java testsuite/src/test/resources/geoSPARQL/GeometryPropertiesTest/GeometryPropertiesTest.nt testsuite/src/test/resources/geoSPARQL/GeometryPropertiesTest/GeometryPropertiesTest.rq testsuite/src/test/resources/geoSPARQL/GeometryPropertiesTest/GeometryPropertiesTest.srx |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/testsuite/src/test/java/eu/earthobservatory/testsuite/geoSPARQL/GeometryPropertiesTest.java Mon Apr 29 15:57:47 2013 +0300 1.3 @@ -0,0 +1,20 @@ 1.4 +/** 1.5 + * This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + * 1.9 + * Copyright (C) 2010, 2011, 2012, 2013 Pyravlos Team 1.10 + * 1.11 + * http://www.strabon.di.uoa.gr/ 1.12 + */ 1.13 +package eu.earthobservatory.testsuite.geoSPARQL; 1.14 + 1.15 +import eu.earthobservatory.testsuite.utils.TemplateTest; 1.16 + 1.17 + 1.18 +/** 1.19 + * GeoSPARQL Geometry Properties test. 1.20 + * 1.21 + * @author Panayiotis Smeros <psmeros@di.uoa.gr 1.22 + */ 1.23 +public class GeometryPropertiesTest extends TemplateTest{} 1.24 \ 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/GeometryPropertiesTest/GeometryPropertiesTest.nt Mon Apr 29 15:57:47 2013 +0300 2.3 @@ -0,0 +1,6 @@ 2.4 +<http://example.org#geom> <http://www.opengis.net/ont/geosparql#dimension> "2"^^<http://www.w3.org/2001/XMLSchema#integer>. 2.5 +<http://example.org#geom> <http://www.opengis.net/ont/geosparql#coordinateDimension> "2"^^<http://www.w3.org/2001/XMLSchema#integer>. 2.6 +<http://example.org#geom> <http://www.opengis.net/ont/geosparql#spatialDimension> "2"^^<http://www.w3.org/2001/XMLSchema#integer>. 2.7 +<http://example.org#geom> <http://www.opengis.net/ont/geosparql#isEmpty> "false"^^<http://www.w3.org/2001/XMLSchema#boolean>. 2.8 +<http://example.org#geom> <http://www.opengis.net/ont/geosparql#isSimple> "false"^^<http://www.w3.org/2001/XMLSchema#boolean>. 2.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>. 2.10 \ No newline at end of file
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/testsuite/src/test/resources/geoSPARQL/GeometryPropertiesTest/GeometryPropertiesTest.rq Mon Apr 29 15:57:47 2013 +0300 3.3 @@ -0,0 +1,8 @@ 3.4 +SELECT * 3.5 +WHERE 3.6 +{?geom geo:dimension ?dim. 3.7 +?geom geo:coordinateDimension ?coorDim. 3.8 +?geom geo:spatialDimension ?spatDim. 3.9 +?geom geo:isEmpty ?empty. 3.10 +?geom geo:isSimple ?simple. 3.11 +?geom geo:hasSerialization ?serialization.} 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/GeometryPropertiesTest/GeometryPropertiesTest.srx Mon Apr 29 15:57:47 2013 +0300 4.3 @@ -0,0 +1,37 @@ 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='geom'/> 4.8 + <variable name='dim'/> 4.9 + <variable name='coorDim'/> 4.10 + <variable name='spatDim'/> 4.11 + <variable name='empty'/> 4.12 + <variable name='simple'/> 4.13 + <variable name='serialization'/> 4.14 + </head> 4.15 + <results> 4.16 + <result> 4.17 + <binding name='dim'> 4.18 + <literal datatype='http://www.w3.org/2001/XMLSchema#integer'>2</literal> 4.19 + </binding> 4.20 + <binding name='simple'> 4.21 + <literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal> 4.22 + </binding> 4.23 + <binding name='serialization'> 4.24 + <literal datatype='http://www.opengis.net/ont/geosparql#wktLiteral'> <http://www.opengis.net/def/crs/OGC/1.3/CRS84> Polygon((0 0, 1 0, 1 1, 0 1, 0 0)) </literal> 4.25 + </binding> 4.26 + <binding name='empty'> 4.27 + <literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal> 4.28 + </binding> 4.29 + <binding name='coorDim'> 4.30 + <literal datatype='http://www.w3.org/2001/XMLSchema#integer'>2</literal> 4.31 + </binding> 4.32 + <binding name='geom'> 4.33 + <uri>http://example.org#geom</uri> 4.34 + </binding> 4.35 + <binding name='spatDim'> 4.36 + <literal datatype='http://www.w3.org/2001/XMLSchema#integer'>2</literal> 4.37 + </binding> 4.38 + </result> 4.39 + </results> 4.40 +</sparql> 4.41 \ No newline at end of file