Strabon

changeset 1081:930ffef21daf

Added Geosparql Feature test.
author Panayiotis Smeros <psmeros@di.uoa.gr>
date Thu Apr 25 19:39:52 2013 +0300 (2013-04-25)
parents 74b13188f8b2
children fb73954c4f91
files testsuite/src/test/java/eu/earthobservatory/testsuite/geoSPARQL/FeatureClassTest.java testsuite/src/test/resources/geoSPARQL/FeatureClassTest/FeatureClassTest.nt testsuite/src/test/resources/geoSPARQL/FeatureClassTest/FeatureClassTest.rq testsuite/src/test/resources/geoSPARQL/FeatureClassTest/FeatureClassTest.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/FeatureClassTest.java	Thu Apr 25 19:39:52 2013 +0300
     1.3 @@ -0,0 +1,27 @@
     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 Class test. Something that has a geometry is a Feature. 
    1.20 + * 
    1.21 + * @author Panayiotis Smeros <psmeros@di.uoa.gr
    1.22 + */
    1.23 +public class FeatureClassTest extends TemplateTest
    1.24 +{
    1.25 +	public FeatureClassTest() 
    1.26 +	{
    1.27 +		super();
    1.28 +		this.inference=true;
    1.29 +	}
    1.30 +}
    1.31 \ 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/FeatureClassTest/FeatureClassTest.nt	Thu Apr 25 19:39:52 2013 +0300
     2.3 @@ -0,0 +1,1 @@
     2.4 +<http://example.org#item> <http://www.opengis.net/ont/geosparql#hasGeometry> <http://example.org#geom>.
     2.5 \ 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/FeatureClassTest/FeatureClassTest.rq	Thu Apr 25 19:39:52 2013 +0300
     3.3 @@ -0,0 +1,4 @@
     3.4 +SELECT ?type
     3.5 +WHERE
     3.6 +{?x geo:hasGeometry ?geo.
     3.7 +?x rdf:type ?type.}
     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/FeatureClassTest/FeatureClassTest.srx	Thu Apr 25 19:39:52 2013 +0300
     4.3 @@ -0,0 +1,18 @@
     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='type'/>
     4.8 +	</head>
     4.9 +	<results>
    4.10 +		<result>
    4.11 +			<binding name='type'>
    4.12 +				<uri>http://www.opengis.net/ont/geosparql#SpatialObject</uri>
    4.13 +			</binding>
    4.14 +		</result>
    4.15 +		<result>
    4.16 +			<binding name='type'>
    4.17 +				<uri>http://www.opengis.net/ont/geosparql#Feature</uri>
    4.18 +			</binding>
    4.19 +		</result>
    4.20 +	</results>
    4.21 +</sparql>
    4.22 \ No newline at end of file