Strabon
changeset 1131:c2f1ec7daa05
Added Geometry Class test.
author | Panayiotis Smeros <psmeros@di.uoa.gr> |
---|---|
date | Mon Apr 29 13:22:18 2013 +0300 (2013-04-29) |
parents | 22d502a6ee1d |
children | 6daf1d96e6f2 |
files | testsuite/src/test/java/eu/earthobservatory/testsuite/geoSPARQL/GeometryClassTest.java testsuite/src/test/resources/geoSPARQL/GeometryClassTest/GeometryClassTest.nt testsuite/src/test/resources/geoSPARQL/GeometryClassTest/GeometryClassTest.rq testsuite/src/test/resources/geoSPARQL/GeometryClassTest/GeometryClassTest.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/GeometryClassTest.java Mon Apr 29 13:22:18 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 Class test. 1.20 + * 1.21 + * @author Panayiotis Smeros <psmeros@di.uoa.gr 1.22 + */ 1.23 +public class GeometryClassTest 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/GeometryClassTest/GeometryClassTest.nt Mon Apr 29 13:22:18 2013 +0300 2.3 @@ -0,0 +1,1 @@ 2.4 +<http://example.org#geom> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.opengis.net/ont/geosparql#Geometry>. 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/GeometryClassTest/GeometryClassTest.rq Mon Apr 29 13:22:18 2013 +0300 3.3 @@ -0,0 +1,3 @@ 3.4 +SELECT ?geo 3.5 +WHERE 3.6 +{?geo <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.opengis.net/ont/geosparql#Geometry>} 3.7 \ 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/GeometryClassTest/GeometryClassTest.srx Mon Apr 29 13:22:18 2013 +0300 4.3 @@ -0,0 +1,13 @@ 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='geo'/> 4.8 + </head> 4.9 + <results> 4.10 + <result> 4.11 + <binding name='geo'> 4.12 + <uri>http://example.org#geom</uri> 4.13 + </binding> 4.14 + </result> 4.15 + </results> 4.16 +</sparql> 4.17 \ No newline at end of file