Strabon

changeset 1132:6daf1d96e6f2

Added Feature Properties Test.
author Panayiotis Smeros <psmeros@di.uoa.gr>
date Mon Apr 29 13:54:01 2013 +0300 (2013-04-29)
parents c2f1ec7daa05
children 8c6fa2735ec9
files testsuite/src/test/java/eu/earthobservatory/testsuite/geoSPARQL/FeaturePropertiesTest.java testsuite/src/test/resources/geoSPARQL/FeaturePropertiesTest/FeaturePropertiesTest.nt testsuite/src/test/resources/geoSPARQL/FeaturePropertiesTest/FeaturePropertiesTest.rq testsuite/src/test/resources/geoSPARQL/FeaturePropertiesTest/FeaturePropertiesTest.srx testsuite/src/test/resources/geoSPARQL/GeometryClassTest/GeometryClassTest.rq
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/FeaturePropertiesTest.java	Mon Apr 29 13:54:01 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 Feature Properties test.
    1.20 + * 
    1.21 + * @author Panayiotis Smeros <psmeros@di.uoa.gr
    1.22 + */
    1.23 +public class FeaturePropertiesTest 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/FeaturePropertiesTest/FeaturePropertiesTest.nt	Mon Apr 29 13:54:01 2013 +0300
     2.3 @@ -0,0 +1,2 @@
     2.4 +<http://example.org#A> <http://www.opengis.net/ont/geosparql#hasGeometry> <http://example.org#geom>.
     2.5 +<http://example.org#A> <http://www.opengis.net/ont/geosparql#hasDefaultGeometry> <http://example.org#defGeom>.
     2.6 \ 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/FeaturePropertiesTest/FeaturePropertiesTest.rq	Mon Apr 29 13:54:01 2013 +0300
     3.3 @@ -0,0 +1,4 @@
     3.4 +SELECT ?geom ?defGeom
     3.5 +WHERE 
     3.6 +{?g geo:hasGeometry ?geom.
     3.7 +?g geo:hasDefaultGeometry ?defGeom}
     3.8 \ 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/FeaturePropertiesTest/FeaturePropertiesTest.srx	Mon Apr 29 13:54:01 2013 +0300
     4.3 @@ -0,0 +1,17 @@
     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='defGeom'/>
     4.9 +	</head>
    4.10 +	<results>
    4.11 +		<result>
    4.12 +			<binding name='geom'>
    4.13 +				<uri>http://example.org#geom</uri>
    4.14 +			</binding>
    4.15 +			<binding name='defGeom'>
    4.16 +				<uri>http://example.org#defGeom</uri>
    4.17 +			</binding>
    4.18 +		</result>
    4.19 +	</results>
    4.20 +</sparql>
    4.21 \ No newline at end of file
     5.1 --- a/testsuite/src/test/resources/geoSPARQL/GeometryClassTest/GeometryClassTest.rq	Mon Apr 29 13:22:18 2013 +0300
     5.2 +++ b/testsuite/src/test/resources/geoSPARQL/GeometryClassTest/GeometryClassTest.rq	Mon Apr 29 13:54:01 2013 +0300
     5.3 @@ -1,3 +1,3 @@
     5.4  SELECT ?geo 
     5.5  WHERE 
     5.6 -{?geo <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.opengis.net/ont/geosparql#Geometry>}
     5.7 \ No newline at end of file
     5.8 +{?geo rdf:type geo:Geometry}
     5.9 \ No newline at end of file