Strabon

changeset 1027:0faf06eeb77f

Changed resultsFile's format (now is XML).
author Panayiotis Smeros <psmeros@di.uoa.gr>
date Thu Apr 11 20:30:58 2013 +0300 (2013-04-11)
parents 4f594f5d8573
children e0f078b158b3
files testsuite/src/test/java/eu/earthobservatory/runtime/postgis/TemplateTest.java testsuite/src/test/resources/StoreTest/StoreTest.sr testsuite/src/test/resources/StoreTest/StoreTest.srx
line diff
     1.1 --- a/testsuite/src/test/java/eu/earthobservatory/runtime/postgis/TemplateTest.java	Thu Apr 11 13:56:44 2013 +0300
     1.2 +++ b/testsuite/src/test/java/eu/earthobservatory/runtime/postgis/TemplateTest.java	Thu Apr 11 20:30:58 2013 +0300
     1.3 @@ -42,7 +42,7 @@
     1.4  		
     1.5  		this.datasetFile="/"+testname+"/"+testname+".nt";
     1.6  		this.queryFile="/"+testname+"/"+testname+".rq";
     1.7 -		this.resultsFile="/"+testname+"/"+testname+".sr";
     1.8 +		this.resultsFile="/"+testname+"/"+testname+".srx";
     1.9  	}
    1.10  
    1.11  	@Before
     2.1 --- a/testsuite/src/test/resources/StoreTest/StoreTest.sr	Thu Apr 11 13:56:44 2013 +0300
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,9 +0,0 @@
     2.4 -[?=http://example.org/item1;?="1"^^<http://www.w3.org/2001/XMLSchema#int>;?=http://example.org/id]
     2.5 -[?=http://example.org/item1;?="10"^^<http://www.w3.org/2001/XMLSchema#int>;?=http://example.org/value]
     2.6 -[?=http://example.org/item1;?="POINT(1 0)"^^<http://strdf.di.uoa.gr/ontology#WKT>;?=http://teleios.di.uoa.gr/ontologies/noaOntology.owl#hasGeometry]
     2.7 -[?=http://example.org/item2;?="2"^^<http://www.w3.org/2001/XMLSchema#int>;?=http://example.org/id]
     2.8 -[?=http://example.org/item2;?="20"^^<http://www.w3.org/2001/XMLSchema#int>;?=http://example.org/value]
     2.9 -[?=http://example.org/item2;?="POINT(2 0)"^^<http://strdf.di.uoa.gr/ontology#WKT>;?=http://teleios.di.uoa.gr/ontologies/noaOntology.owl#hasGeometry]
    2.10 -[?=http://example.org/item3;?="3"^^<http://www.w3.org/2001/XMLSchema#int>;?=http://example.org/id]
    2.11 -[?=http://example.org/item3;?="30"^^<http://www.w3.org/2001/XMLSchema#int>;?=http://example.org/value]
    2.12 -[?=http://example.org/item3;?="POINT(3 0)"^^<http://strdf.di.uoa.gr/ontology#WKT>;?=http://teleios.di.uoa.gr/ontologies/noaOntology.owl#hasGeometry]
    2.13 \ 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/StoreTest/StoreTest.srx	Thu Apr 11 20:30:58 2013 +0300
     3.3 @@ -0,0 +1,109 @@
     3.4 +<?xml version='1.0' encoding='UTF-8'?>
     3.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
     3.6 +	<head>
     3.7 +		<variable name='s'/>
     3.8 +		<variable name='p'/>
     3.9 +		<variable name='o'/>
    3.10 +	</head>
    3.11 +	<results>
    3.12 +		<result>
    3.13 +			<binding name='s'>
    3.14 +				<uri>http://example.org/item1</uri>
    3.15 +			</binding>
    3.16 +			<binding name='o'>
    3.17 +				<literal datatype='http://www.w3.org/2001/XMLSchema#int'>1</literal>
    3.18 +			</binding>
    3.19 +			<binding name='p'>
    3.20 +				<uri>http://example.org/id</uri>
    3.21 +			</binding>
    3.22 +		</result>
    3.23 +		<result>
    3.24 +			<binding name='s'>
    3.25 +				<uri>http://example.org/item1</uri>
    3.26 +			</binding>
    3.27 +			<binding name='o'>
    3.28 +				<literal datatype='http://www.w3.org/2001/XMLSchema#int'>10</literal>
    3.29 +			</binding>
    3.30 +			<binding name='p'>
    3.31 +				<uri>http://example.org/value</uri>
    3.32 +			</binding>
    3.33 +		</result>
    3.34 +		<result>
    3.35 +			<binding name='s'>
    3.36 +				<uri>http://example.org/item1</uri>
    3.37 +			</binding>
    3.38 +			<binding name='o'>
    3.39 +				<literal datatype='http://strdf.di.uoa.gr/ontology#WKT'>POINT(1 0)</literal>
    3.40 +			</binding>
    3.41 +			<binding name='p'>
    3.42 +				<uri>http://teleios.di.uoa.gr/ontologies/noaOntology.owl#hasGeometry</uri>
    3.43 +			</binding>
    3.44 +		</result>
    3.45 +		<result>
    3.46 +			<binding name='s'>
    3.47 +				<uri>http://example.org/item2</uri>
    3.48 +			</binding>
    3.49 +			<binding name='o'>
    3.50 +				<literal datatype='http://www.w3.org/2001/XMLSchema#int'>2</literal>
    3.51 +			</binding>
    3.52 +			<binding name='p'>
    3.53 +				<uri>http://example.org/id</uri>
    3.54 +			</binding>
    3.55 +		</result>
    3.56 +		<result>
    3.57 +			<binding name='s'>
    3.58 +				<uri>http://example.org/item2</uri>
    3.59 +			</binding>
    3.60 +			<binding name='o'>
    3.61 +				<literal datatype='http://www.w3.org/2001/XMLSchema#int'>20</literal>
    3.62 +			</binding>
    3.63 +			<binding name='p'>
    3.64 +				<uri>http://example.org/value</uri>
    3.65 +			</binding>
    3.66 +		</result>
    3.67 +		<result>
    3.68 +			<binding name='s'>
    3.69 +				<uri>http://example.org/item2</uri>
    3.70 +			</binding>
    3.71 +			<binding name='o'>
    3.72 +				<literal datatype='http://strdf.di.uoa.gr/ontology#WKT'>POINT(2 0)</literal>
    3.73 +			</binding>
    3.74 +			<binding name='p'>
    3.75 +				<uri>http://teleios.di.uoa.gr/ontologies/noaOntology.owl#hasGeometry</uri>
    3.76 +			</binding>
    3.77 +		</result>
    3.78 +		<result>
    3.79 +			<binding name='s'>
    3.80 +				<uri>http://example.org/item3</uri>
    3.81 +			</binding>
    3.82 +			<binding name='o'>
    3.83 +				<literal datatype='http://www.w3.org/2001/XMLSchema#int'>3</literal>
    3.84 +			</binding>
    3.85 +			<binding name='p'>
    3.86 +				<uri>http://example.org/id</uri>
    3.87 +			</binding>
    3.88 +		</result>
    3.89 +		<result>
    3.90 +			<binding name='s'>
    3.91 +				<uri>http://example.org/item3</uri>
    3.92 +			</binding>
    3.93 +			<binding name='o'>
    3.94 +				<literal datatype='http://www.w3.org/2001/XMLSchema#int'>30</literal>
    3.95 +			</binding>
    3.96 +			<binding name='p'>
    3.97 +				<uri>http://example.org/value</uri>
    3.98 +			</binding>
    3.99 +		</result>
   3.100 +		<result>
   3.101 +			<binding name='s'>
   3.102 +				<uri>http://example.org/item3</uri>
   3.103 +			</binding>
   3.104 +			<binding name='o'>
   3.105 +				<literal datatype='http://strdf.di.uoa.gr/ontology#WKT'>POINT(3 0)</literal>
   3.106 +			</binding>
   3.107 +			<binding name='p'>
   3.108 +				<uri>http://teleios.di.uoa.gr/ontologies/noaOntology.owl#hasGeometry</uri>
   3.109 +			</binding>
   3.110 +		</result>
   3.111 +	</results>
   3.112 +</sparql>
   3.113 \ No newline at end of file