Strabon

changeset 1369:fcc4457833bf

added test for bug #53
author Babis Nikolaou <charnik@di.uoa.gr>
date Sat Sep 20 00:34:21 2014 +0300 (2014-09-20)
parents da0922e39968
children d0f7134cc715
files testsuite/src/test/java/eu/earthobservatory/testsuite/bugs/UnionAndProjectionBug53.java testsuite/src/test/resources/bugs/UnionAndProjectionBug53/UnionAndProjectionBug53.nt testsuite/src/test/resources/bugs/UnionAndProjectionBug53/UnionAndProjectionBug53.rq testsuite/src/test/resources/bugs/UnionAndProjectionBug53/UnionAndProjectionBug53.srx testsuite/src/test/resources/prefixes
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/testsuite/src/test/java/eu/earthobservatory/testsuite/bugs/UnionAndProjectionBug53.java	Sat Sep 20 00:34:21 2014 +0300
     1.3 @@ -0,0 +1,18 @@
     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) 2012, 2013, 2014 Pyravlos Team
    1.10 + * 
    1.11 + * http://www.sextant.di.uoa.gr/
    1.12 + */
    1.13 +package eu.earthobservatory.testsuite.bugs;
    1.14 +
    1.15 +import eu.earthobservatory.testsuite.utils.TemplateTest;
    1.16 +
    1.17 +/**
    1.18 + * Test for Bug 53 (http://bug.strabon.di.uoa.gr/ticket/53)
    1.19 + * @author Charalampos Nikolaou <charnik@di.uoa.gr>
    1.20 + */
    1.21 +public class UnionAndProjectionBug53 extends TemplateTest{ }
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/testsuite/src/test/resources/bugs/UnionAndProjectionBug53/UnionAndProjectionBug53.nt	Sat Sep 20 00:34:21 2014 +0300
     2.3 @@ -0,0 +1,6 @@
     2.4 +<http://www.eionet.europa.eu/gemet/concept/11> <http://www.w3.org/2004/02/skos/core#broader> <http://www.eionet.europa.eu/gemet/concept/2457> .
     2.5 +<http://www.eionet.europa.eu/gemet/concept/11> <http://www.w3.org/2004/02/skos/core#prefLabel> "abiotic factor"@en .
     2.6 +<http://www.eionet.europa.eu/gemet/concept/20> <http://www.w3.org/2004/02/skos/core#broader> <http://www.eionet.europa.eu/gemet/concept/6033> .
     2.7 +<http://www.eionet.europa.eu/gemet/concept/20> <http://www.w3.org/2004/02/skos/core#prefLabel> "acceptable risk level"@en .
     2.8 +<http://www.eionet.europa.eu/gemet/concept/72> <http://www.w3.org/2004/02/skos/core#broader> <http://www.eionet.europa.eu/gemet/concept/11813> .
     2.9 +<http://www.eionet.europa.eu/gemet/concept/72> <http://www.w3.org/2004/02/skos/core#prefLabel> "activated carbon"@en .
    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/bugs/UnionAndProjectionBug53/UnionAndProjectionBug53.rq	Sat Sep 20 00:34:21 2014 +0300
     3.3 @@ -0,0 +1,11 @@
     3.4 +SELECT ?term (skos:broader as ?b) ?related
     3.5 +WHERE
     3.6 +{
     3.7 +
     3.8 +    { ?term skos:prefLabel ?label . ?term skos:broader ?related }
     3.9 +
    3.10 +UNION
    3.11 +
    3.12 +    { ?term rdfs:label ?label . ?term skos:broader ?related }
    3.13 +
    3.14 +}
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/testsuite/src/test/resources/bugs/UnionAndProjectionBug53/UnionAndProjectionBug53.srx	Sat Sep 20 00:34:21 2014 +0300
     4.3 @@ -0,0 +1,43 @@
     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='term'/>
     4.8 +		<variable name='b'/>
     4.9 +		<variable name='related'/>
    4.10 +	</head>
    4.11 +	<results>
    4.12 +		<result>
    4.13 +			<binding name='term'>
    4.14 +				<uri>http://www.eionet.europa.eu/gemet/concept/11</uri>
    4.15 +			</binding>
    4.16 +			<binding name='b'>
    4.17 +				<uri>http://www.w3.org/2004/02/skos/core#broader</uri>
    4.18 +			</binding>
    4.19 +			<binding name='related'>
    4.20 +				<uri>http://www.eionet.europa.eu/gemet/concept/2457</uri>
    4.21 +			</binding>
    4.22 +		</result>
    4.23 +		<result>
    4.24 +			<binding name='term'>
    4.25 +				<uri>http://www.eionet.europa.eu/gemet/concept/20</uri>
    4.26 +			</binding>
    4.27 +			<binding name='b'>
    4.28 +				<uri>http://www.w3.org/2004/02/skos/core#broader</uri>
    4.29 +			</binding>
    4.30 +			<binding name='related'>
    4.31 +				<uri>http://www.eionet.europa.eu/gemet/concept/6033</uri>
    4.32 +			</binding>
    4.33 +		</result>
    4.34 +		<result>
    4.35 +			<binding name='term'>
    4.36 +				<uri>http://www.eionet.europa.eu/gemet/concept/72</uri>
    4.37 +			</binding>
    4.38 +			<binding name='b'>
    4.39 +				<uri>http://www.w3.org/2004/02/skos/core#broader</uri>
    4.40 +			</binding>
    4.41 +			<binding name='related'>
    4.42 +				<uri>http://www.eionet.europa.eu/gemet/concept/11813</uri>
    4.43 +			</binding>
    4.44 +		</result>				
    4.45 +	</results>
    4.46 +</sparql>
     5.1 --- a/testsuite/src/test/resources/prefixes	Fri Sep 19 23:11:21 2014 +0300
     5.2 +++ b/testsuite/src/test/resources/prefixes	Sat Sep 20 00:34:21 2014 +0300
     5.3 @@ -13,4 +13,6 @@
     5.4  PREFIX geo: <http://www.opengis.net/ont/geosparql#>
     5.5  PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
     5.6  PREFIX ogc: <http://www.opengis.net/def/uom/OGC/1.0/>
     5.7 -PREFIX ex: <http://example.org#>
     5.8 \ No newline at end of file
     5.9 +PREFIX ex: <http://example.org#>
    5.10 +PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
    5.11 +