Strabon

changeset 1470:beac3abdaed1 temporals

added tests for the temporal constructs except for period_preceding and period_succeding
author Stella Giannakopoulou <sgian@di.uoa.gr>
date Tue Jan 27 13:21:49 2015 +0200 (2015-01-27)
parents ea73ab0bcc3d
children faad70631f8b
files generaldb/src/main/java/org/openrdf/sail/generaldb/algebra/temporal/GeneralDBSqlPeriodMinus.java testsuite/src/test/java/eu/earthobservatory/testsuite/stSPARQL/TemporalConstructsTest.java testsuite/src/test/resources/databases.properties testsuite/src/test/resources/prefixes testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/period.rq testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/period.srx testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/period_end.rq testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/period_end.srx testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/period_intersect.rq testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/period_intersect.srx testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/period_minus.rq testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/period_minus.srx testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/period_start.rq testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/period_start.srx testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/period_union.rq testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/period_union.srx testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/temporalRelations.nq testsuite/src/test/resources/stSPARQL/TemporalRelationsTest/starts.rq
line diff
     1.1 --- a/generaldb/src/main/java/org/openrdf/sail/generaldb/algebra/temporal/GeneralDBSqlPeriodMinus.java	Mon Jan 26 17:02:19 2015 +0200
     1.2 +++ b/generaldb/src/main/java/org/openrdf/sail/generaldb/algebra/temporal/GeneralDBSqlPeriodMinus.java	Tue Jan 27 13:21:49 2015 +0200
     1.3 @@ -36,7 +36,7 @@
     1.4  	@Override
     1.5  	public String getOperator() {
     1.6  
     1.7 -		return "+";
     1.8 +		return "-";
     1.9  	}
    1.10  
    1.11  	/* (non-Javadoc)
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/testsuite/src/test/java/eu/earthobservatory/testsuite/stSPARQL/TemporalConstructsTest.java	Tue Jan 27 13:21:49 2015 +0200
     2.3 @@ -0,0 +1,20 @@
     2.4 +/**
     2.5 + * This Source Code Form is subject to the terms of the Mozilla Public
     2.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     2.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/.
     2.8 + * 
     2.9 + * Copyright (C) 2010, 2011, 2012, 2013 Pyravlos Team
    2.10 + * 
    2.11 + * http://www.strabon.di.uoa.gr/
    2.12 + */
    2.13 +package eu.earthobservatory.testsuite.stSPARQL;
    2.14 +
    2.15 +import eu.earthobservatory.testsuite.utils.TemplateTest;
    2.16 +
    2.17 +
    2.18 +/**
    2.19 + * A simple store test. It tests if triples with GML serialization are stored and retrieved correctly.
    2.20 + * 
    2.21 + * @author Stella Giannakopoulou <sgian@di.uoa.gr>
    2.22 + */
    2.23 +public class TemporalConstructsTest extends TemplateTest{}
     3.1 --- a/testsuite/src/test/resources/databases.properties	Mon Jan 26 17:02:19 2015 +0200
     3.2 +++ b/testsuite/src/test/resources/databases.properties	Tue Jan 27 13:21:49 2015 +0200
     3.3 @@ -2,7 +2,7 @@
     3.4  postgis.databaseTemplateName = spatiotemporal_template
     3.5  postgis.serverName = localhost
     3.6  postgis.username = postgres
     3.7 -postgis.password = p1r3as
     3.8 +postgis.password = postgres
     3.9  postgis.port = 5432
    3.10  		
    3.11  ! MonetDB
     4.1 --- a/testsuite/src/test/resources/prefixes	Mon Jan 26 17:02:19 2015 +0200
     4.2 +++ b/testsuite/src/test/resources/prefixes	Tue Jan 27 13:21:49 2015 +0200
     4.3 @@ -13,6 +13,6 @@
     4.4  PREFIX geo: <http://www.opengis.net/ont/geosparql#>
     4.5  PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
     4.6  PREFIX ogc: <http://www.opengis.net/def/uom/OGC/1.0/>
     4.7 -PREFIX ex: <http://example.org#>
     4.8 +PREFIX ex: <http://example.org/>
     4.9  PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
    4.10  
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/period.rq	Tue Jan 27 13:21:49 2015 +0200
     5.3 @@ -0,0 +1,5 @@
     5.4 +SELECT ?t1 ?t2 (strdf:period(?t1, ?t2) as ?p)
     5.5 +WHERE { 
     5.6 +	ex:item4 ?y1 ?z1 ?t1 .
     5.7 +	ex:item5 ?y2 ?z2 ?t2 .
     5.8 + }
     5.9 \ No newline at end of file
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/period.srx	Tue Jan 27 13:21:49 2015 +0200
     6.3 @@ -0,0 +1,21 @@
     6.4 +<?xml version='1.0' encoding='UTF-8'?>
     6.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
     6.6 +	<head>
     6.7 +		<variable name='t1'/>
     6.8 +		<variable name='t2'/>
     6.9 +		<variable name='p'/>
    6.10 +	</head>
    6.11 +	<results>
    6.12 +		<result>
    6.13 +			<binding name='t1'>
    6.14 +				<literal datatype='http://www.w3.org/2001/XMLSchema#dateTime'>2012-01-19T10:41:00</literal>
    6.15 +			</binding>
    6.16 +			<binding name='t2'>
    6.17 +				<literal datatype='http://www.w3.org/2001/XMLSchema#dateTime'>2012-01-19T11:41:00</literal>
    6.18 +			</binding>
    6.19 +			<binding name='p'>
    6.20 +				<literal datatype='&lt;http://strdf.di.uoa.gr/ontology#period&gt;'>[2012-01-19 10:41:00+02, 2012-01-19 11:41:00+02)</literal>
    6.21 +			</binding>
    6.22 +		</result>
    6.23 +	</results>
    6.24 +</sparql>
    6.25 \ No newline at end of file
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/period_end.rq	Tue Jan 27 13:21:49 2015 +0200
     7.3 @@ -0,0 +1,4 @@
     7.4 +SELECT distinct ?t1  (strdf:period_end(?t1) as ?end)
     7.5 +WHERE { 
     7.6 +	?x1 ?y1 ?z1 ?t1 .
     7.7 + }
     7.8 \ No newline at end of file
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/period_end.srx	Tue Jan 27 13:21:49 2015 +0200
     8.3 @@ -0,0 +1,73 @@
     8.4 +<?xml version='1.0' encoding='UTF-8'?>
     8.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
     8.6 +	<head>
     8.7 +		<variable name='t1'/>
     8.8 +		<variable name='end'/>
     8.9 +	</head>
    8.10 +	<results>
    8.11 +		<result>
    8.12 +			<binding name='t1'>
    8.13 +				<literal datatype='http://strdf.di.uoa.gr/ontology#period'>[2012-11-19T12:41:00,2012-11-19T13:41:00)</literal>
    8.14 +			</binding>
    8.15 +			<binding name='end'>
    8.16 +				<literal datatype='&lt;http://www.w3.org/2001/XMLSchema#dateTime&gt;'>2012-11-19T13:41:00+02</literal>
    8.17 +			</binding>
    8.18 +		</result>
    8.19 +		<result>
    8.20 +			<binding name='t1'>
    8.21 +				<literal datatype='http://strdf.di.uoa.gr/ontology#period'>[2012-11-19T13:41:00,2012-11-19T14:41:00)</literal>
    8.22 +			</binding>
    8.23 +			<binding name='end'>
    8.24 +				<literal datatype='&lt;http://www.w3.org/2001/XMLSchema#dateTime&gt;'>2012-11-19T14:41:00+02</literal>
    8.25 +			</binding>
    8.26 +		</result>
    8.27 +		<result>
    8.28 +			<binding name='t1'>
    8.29 +				<literal datatype='http://strdf.di.uoa.gr/ontology#period'>[2012-11-19T14:41:00,2012-11-19T15:41:00)</literal>
    8.30 +			</binding>
    8.31 +			<binding name='end'>
    8.32 +				<literal datatype='&lt;http://www.w3.org/2001/XMLSchema#dateTime&gt;'>2012-11-19T15:41:00+02</literal>
    8.33 +			</binding>
    8.34 +		</result>
    8.35 +		<result>
    8.36 +			<binding name='t1'>
    8.37 +				<literal datatype='http://strdf.di.uoa.gr/ontology#period'>[2012-11-19T10:41:00,2012-11-19T11:41:00)</literal>
    8.38 +			</binding>
    8.39 +			<binding name='end'>
    8.40 +				<literal datatype='&lt;http://www.w3.org/2001/XMLSchema#dateTime&gt;'>2012-11-19T11:41:00+02</literal>
    8.41 +			</binding>
    8.42 +		</result>
    8.43 +		<result>
    8.44 +			<binding name='t1'>
    8.45 +				<literal datatype='http://strdf.di.uoa.gr/ontology#period'>[2012-11-19T10:41:00,2012-11-19T15:41:00)</literal>
    8.46 +			</binding>
    8.47 +			<binding name='end'>
    8.48 +				<literal datatype='&lt;http://www.w3.org/2001/XMLSchema#dateTime&gt;'>2012-11-19T15:41:00+02</literal>
    8.49 +			</binding>
    8.50 +		</result>
    8.51 +		<result>
    8.52 +			<binding name='t1'>
    8.53 +				<literal datatype='http://www.w3.org/2001/XMLSchema#dateTime'>2012-01-19T10:41:00</literal>
    8.54 +			</binding>
    8.55 +			<binding name='end'>
    8.56 +				<literal datatype='&lt;http://www.w3.org/2001/XMLSchema#dateTime&gt;'>2012-01-19T10:41:00+02</literal>
    8.57 +			</binding>
    8.58 +		</result>
    8.59 +		<result>
    8.60 +			<binding name='t1'>
    8.61 +				<literal datatype='http://www.w3.org/2001/XMLSchema#dateTime'>2012-01-19T11:41:00</literal>
    8.62 +			</binding>
    8.63 +			<binding name='end'>
    8.64 +				<literal datatype='&lt;http://www.w3.org/2001/XMLSchema#dateTime&gt;'>2012-01-19T11:41:00+02</literal>
    8.65 +			</binding>
    8.66 +		</result>
    8.67 +		<result>
    8.68 +			<binding name='t1'>
    8.69 +				<literal datatype='http://www.w3.org/2001/XMLSchema#dateTime'>2012-01-19T12:41:00</literal>
    8.70 +			</binding>
    8.71 +			<binding name='end'>
    8.72 +				<literal datatype='&lt;http://www.w3.org/2001/XMLSchema#dateTime&gt;'>2012-01-19T12:41:00+02</literal>
    8.73 +			</binding>
    8.74 +		</result>
    8.75 +	</results>
    8.76 +</sparql>
    8.77 \ No newline at end of file
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/period_intersect.rq	Tue Jan 27 13:21:49 2015 +0200
     9.3 @@ -0,0 +1,5 @@
     9.4 +SELECT ?t1 ?t2  (strdf:period_intersect(?t1, ?t2) as ?intersection)
     9.5 +			WHERE { 
     9.6 +				ex:item1 ?y1 ?z1 ?t1 .
     9.7 +				ex:item7 ?y2 ?z2 ?t2 . 
     9.8 +}
     9.9 \ No newline at end of file
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/period_intersect.srx	Tue Jan 27 13:21:49 2015 +0200
    10.3 @@ -0,0 +1,54 @@
    10.4 +<?xml version='1.0' encoding='UTF-8'?>
    10.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
    10.6 +	<head>
    10.7 +		<variable name='t1'/>
    10.8 +		<variable name='t2'/>
    10.9 +		<variable name='intersection'/>
   10.10 +	</head>
   10.11 +	<results>
   10.12 +		<result>
   10.13 +			<binding name='t1'>
   10.14 +				<literal datatype='http://strdf.di.uoa.gr/ontology#period'>[2012-11-19T12:41:00,2012-11-19T13:41:00)</literal>
   10.15 +			</binding>
   10.16 +			<binding name='t2'>
   10.17 +				<literal datatype='http://strdf.di.uoa.gr/ontology#period'>[2012-11-19T13:41:00,2012-11-19T14:41:00)</literal>
   10.18 +			</binding>
   10.19 +			<binding name='intersection'>
   10.20 +				<literal datatype='&lt;http://strdf.di.uoa.gr/ontology#period&gt;'>[2012-11-19 13:41:00+02, 2012-11-19 13:41:00.000001+02)</literal>
   10.21 +			</binding>
   10.22 +		</result>
   10.23 +		<result>
   10.24 +			<binding name='t1'>
   10.25 +				<literal datatype='http://strdf.di.uoa.gr/ontology#period'>[2012-11-19T10:41:00,2012-11-19T11:41:00)</literal>
   10.26 +			</binding>
   10.27 +			<binding name='t2'>
   10.28 +				<literal datatype='http://strdf.di.uoa.gr/ontology#period'>[2012-11-19T13:41:00,2012-11-19T14:41:00)</literal>
   10.29 +			</binding>
   10.30 +			<binding name='intersection'>
   10.31 +				<literal datatype='&lt;http://www.w3.org/2001/XMLSchema#dateTime&gt;'>-EMPTY-</literal>
   10.32 +			</binding>
   10.33 +		</result>
   10.34 +		<result>
   10.35 +			<binding name='t1'>
   10.36 +				<literal datatype='http://strdf.di.uoa.gr/ontology#period'>[2012-11-19T12:41:00,2012-11-19T13:41:00)</literal>
   10.37 +			</binding>
   10.38 +			<binding name='t2'>
   10.39 +				<literal datatype='http://strdf.di.uoa.gr/ontology#period'>[2012-11-19T13:41:00,2012-11-19T14:41:00)</literal>
   10.40 +			</binding>
   10.41 +			<binding name='intersection'>
   10.42 +				<literal datatype='&lt;http://strdf.di.uoa.gr/ontology#period&gt;'>[2012-11-19 13:41:00+02, 2012-11-19 13:41:00.000001+02)</literal>
   10.43 +			</binding>
   10.44 +		</result>
   10.45 +		<result>
   10.46 +			<binding name='t1'>
   10.47 +				<literal datatype='http://strdf.di.uoa.gr/ontology#period'>[2012-11-19T12:41:00,2012-11-19T13:41:00)</literal>
   10.48 +			</binding>
   10.49 +			<binding name='t2'>
   10.50 +				<literal datatype='http://strdf.di.uoa.gr/ontology#period'>[2012-11-19T13:41:00,2012-11-19T14:41:00)</literal>
   10.51 +			</binding>
   10.52 +			<binding name='intersection'>
   10.53 +				<literal datatype='&lt;http://strdf.di.uoa.gr/ontology#period&gt;'>[2012-11-19 13:41:00+02, 2012-11-19 13:41:00.000001+02)</literal>
   10.54 +			</binding>
   10.55 +		</result>
   10.56 +	</results>
   10.57 +</sparql>
   10.58 \ No newline at end of file
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/period_minus.rq	Tue Jan 27 13:21:49 2015 +0200
    11.3 @@ -0,0 +1,5 @@
    11.4 +SELECT ?t1 ?t2  (strdf:period_minus(?t1, ?t2) as ?minus)
    11.5 +			WHERE { 
    11.6 +				ex:item7 ?y1 ?z1 ?t1 .
    11.7 +				ex:item8 ?y2 ?z2 ?t2 . 
    11.8 +}
    11.9 \ No newline at end of file
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/period_minus.srx	Tue Jan 27 13:21:49 2015 +0200
    12.3 @@ -0,0 +1,21 @@
    12.4 +<?xml version='1.0' encoding='UTF-8'?>
    12.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
    12.6 +	<head>
    12.7 +		<variable name='t1'/>
    12.8 +		<variable name='t2'/>
    12.9 +		<variable name='minus'/>
   12.10 +	</head>
   12.11 +	<results>
   12.12 +		<result>
   12.13 +			<binding name='t1'>
   12.14 +				<literal datatype='http://strdf.di.uoa.gr/ontology#period'>[2012-11-19T13:41:00,2012-11-19T14:41:00)</literal>
   12.15 +			</binding>
   12.16 +			<binding name='t2'>
   12.17 +				<literal datatype='http://strdf.di.uoa.gr/ontology#period'>[2012-11-19T14:41:00,2012-11-19T15:41:00)</literal>
   12.18 +			</binding>
   12.19 +			<binding name='minus'>
   12.20 +				<literal datatype='&lt;http://strdf.di.uoa.gr/ontology#period&gt;'>[2012-11-19 13:41:00+02, 2012-11-19 14:41:00+02)</literal>
   12.21 +			</binding>
   12.22 +		</result>
   12.23 +	</results>
   12.24 +</sparql>
   12.25 \ No newline at end of file
    13.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/period_start.rq	Tue Jan 27 13:21:49 2015 +0200
    13.3 @@ -0,0 +1,4 @@
    13.4 +SELECT distinct ?t1  (strdf:period_start(?t1) as ?start)
    13.5 +WHERE { 
    13.6 +	?x1 ?y1 ?z1 ?t1 .
    13.7 + }
    13.8 \ No newline at end of file
    14.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/period_start.srx	Tue Jan 27 13:21:49 2015 +0200
    14.3 @@ -0,0 +1,73 @@
    14.4 +<?xml version='1.0' encoding='UTF-8'?>
    14.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
    14.6 +	<head>
    14.7 +		<variable name='t1'/>
    14.8 +		<variable name='start'/>
    14.9 +	</head>
   14.10 +	<results>
   14.11 +		<result>
   14.12 +			<binding name='t1'>
   14.13 +				<literal datatype='http://strdf.di.uoa.gr/ontology#period'>[2012-11-19T12:41:00,2012-11-19T13:41:00)</literal>
   14.14 +			</binding>
   14.15 +			<binding name='start'>
   14.16 +				<literal datatype='&lt;http://www.w3.org/2001/XMLSchema#dateTime&gt;'>2012-11-19T12:41:00+02</literal>
   14.17 +			</binding>
   14.18 +		</result>
   14.19 +		<result>
   14.20 +			<binding name='t1'>
   14.21 +				<literal datatype='http://strdf.di.uoa.gr/ontology#period'>[2012-11-19T10:41:00,2012-11-19T11:41:00)</literal>
   14.22 +			</binding>
   14.23 +			<binding name='start'>
   14.24 +				<literal datatype='&lt;http://www.w3.org/2001/XMLSchema#dateTime&gt;'>2012-11-19T10:41:00+02</literal>
   14.25 +			</binding>
   14.26 +		</result>
   14.27 +		<result>
   14.28 +			<binding name='t1'>
   14.29 +				<literal datatype='http://strdf.di.uoa.gr/ontology#period'>[2012-11-19T10:41:00,2012-11-19T15:41:00)</literal>
   14.30 +			</binding>
   14.31 +			<binding name='start'>
   14.32 +				<literal datatype='&lt;http://www.w3.org/2001/XMLSchema#dateTime&gt;'>2012-11-19T10:41:00+02</literal>
   14.33 +			</binding>
   14.34 +		</result>
   14.35 +		<result>
   14.36 +			<binding name='t1'>
   14.37 +				<literal datatype='http://www.w3.org/2001/XMLSchema#dateTime'>2012-01-19T10:41:00</literal>
   14.38 +			</binding>
   14.39 +			<binding name='start'>
   14.40 +				<literal datatype='&lt;http://www.w3.org/2001/XMLSchema#dateTime&gt;'>2012-01-19T10:41:00+02</literal>
   14.41 +			</binding>
   14.42 +		</result>
   14.43 +		<result>
   14.44 +			<binding name='t1'>
   14.45 +				<literal datatype='http://www.w3.org/2001/XMLSchema#dateTime'>2012-01-19T11:41:00</literal>
   14.46 +			</binding>
   14.47 +			<binding name='start'>
   14.48 +				<literal datatype='&lt;http://www.w3.org/2001/XMLSchema#dateTime&gt;'>2012-01-19T11:41:00+02</literal>
   14.49 +			</binding>
   14.50 +		</result>
   14.51 +		<result>
   14.52 +			<binding name='t1'>
   14.53 +				<literal datatype='http://www.w3.org/2001/XMLSchema#dateTime'>2012-01-19T12:41:00</literal>
   14.54 +			</binding>
   14.55 +			<binding name='start'>
   14.56 +				<literal datatype='&lt;http://www.w3.org/2001/XMLSchema#dateTime&gt;'>2012-01-19T12:41:00+02</literal>
   14.57 +			</binding>
   14.58 +		</result>
   14.59 +		<result>
   14.60 +			<binding name='t1'>
   14.61 +				<literal datatype='http://strdf.di.uoa.gr/ontology#period'>[2012-11-19T13:41:00,2012-11-19T14:41:00)</literal>
   14.62 +			</binding>
   14.63 +			<binding name='start'>
   14.64 +				<literal datatype='&lt;http://www.w3.org/2001/XMLSchema#dateTime&gt;'>2012-11-19T13:41:00+02</literal>
   14.65 +			</binding>
   14.66 +		</result>
   14.67 +		<result>
   14.68 +			<binding name='t1'>
   14.69 +				<literal datatype='http://strdf.di.uoa.gr/ontology#period'>[2012-11-19T14:41:00,2012-11-19T15:41:00)</literal>
   14.70 +			</binding>
   14.71 +			<binding name='start'>
   14.72 +				<literal datatype='&lt;http://www.w3.org/2001/XMLSchema#dateTime&gt;'>2012-11-19T14:41:00+02</literal>
   14.73 +			</binding>
   14.74 +		</result>
   14.75 +	</results>
   14.76 +</sparql>
   14.77 \ No newline at end of file
    15.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/period_union.rq	Tue Jan 27 13:21:49 2015 +0200
    15.3 @@ -0,0 +1,5 @@
    15.4 +SELECT ?t1 ?t2  (strdf:period_union(?t1, ?t2) as ?union)
    15.5 +			WHERE { 
    15.6 +				ex:item7 ?y1 ?z1 ?t1 .
    15.7 +				ex:item8 ?y2 ?z2 ?t2 . 
    15.8 +}
    15.9 \ No newline at end of file
    16.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/period_union.srx	Tue Jan 27 13:21:49 2015 +0200
    16.3 @@ -0,0 +1,21 @@
    16.4 +<?xml version='1.0' encoding='UTF-8'?>
    16.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
    16.6 +	<head>
    16.7 +		<variable name='t1'/>
    16.8 +		<variable name='t2'/>
    16.9 +		<variable name='union'/>
   16.10 +	</head>
   16.11 +	<results>
   16.12 +		<result>
   16.13 +			<binding name='t1'>
   16.14 +				<literal datatype='http://strdf.di.uoa.gr/ontology#period'>[2012-11-19T13:41:00,2012-11-19T14:41:00)</literal>
   16.15 +			</binding>
   16.16 +			<binding name='t2'>
   16.17 +				<literal datatype='http://strdf.di.uoa.gr/ontology#period'>[2012-11-19T14:41:00,2012-11-19T15:41:00)</literal>
   16.18 +			</binding>
   16.19 +			<binding name='union'>
   16.20 +				<literal datatype='&lt;http://strdf.di.uoa.gr/ontology#period&gt;'>[2012-11-19 13:41:00+02, 2012-11-19 15:41:00.000001+02)</literal>
   16.21 +			</binding>
   16.22 +		</result>
   16.23 +	</results>
   16.24 +</sparql>
   16.25 \ No newline at end of file
    17.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalConstructsTest/temporalRelations.nq	Tue Jan 27 13:21:49 2015 +0200
    17.3 @@ -0,0 +1,15 @@
    17.4 +<http://example.org/item1> <http://example.org/id> "1"^^<http://www.w3.org/2001/XMLSchema#int> "[2012-11-19T12:41:00,2012-11-19T13:41:00]"^^<http://strdf.di.uoa.gr/ontology#period>.
    17.5 +<http://example.org/item2> <http://example.org/id> "2"^^<http://www.w3.org/2001/XMLSchema#int> "[2012-11-19T12:41:00,2012-11-19T13:41:00]"^^<http://strdf.di.uoa.gr/ontology#period>.
    17.6 +<http://example.org/item3> <http://example.org/id> "3"^^<http://www.w3.org/2001/XMLSchema#int> "[2012-11-19T12:41:00,2012-11-19T13:41:00]"^^<http://strdf.di.uoa.gr/ontology#period>.
    17.7 +<http://example.org/item1> <http://example.org/value> "10"^^<http://www.w3.org/2001/XMLSchema#int> "[2012-11-19T12:41:00,2012-11-19T13:41:00]"^^<http://strdf.di.uoa.gr/ontology#period>.
    17.8 +<http://example.org/item2> <http://example.org/value> "20"^^<http://www.w3.org/2001/XMLSchema#int> "[2012-11-19T12:41:00,2012-11-19T13:41:00]"^^<http://strdf.di.uoa.gr/ontology#period>.
    17.9 +<http://example.org/item1> <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#hasGeometry> "POINT(1 0)"^^<http://strdf.di.uoa.gr/ontology#WKT> "[2012-11-19T12:41:00,2012-11-19T13:41:00]"^^<http://strdf.di.uoa.gr/ontology#period>.
   17.10 +<http://example.org/item2> <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#hasGeometry> "POINT(2 0)"^^<http://strdf.di.uoa.gr/ontology#WKT> "[2012-11-19T12:41:00,2012-11-19T13:41:00]"^^<http://strdf.di.uoa.gr/ontology#period>.
   17.11 +<http://example.org/item3> <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#hasGeometry> "POINT(3 0)"^^<http://strdf.di.uoa.gr/ontology#WKT> "[2012-11-19T12:41:00,2012-11-19T13:41:00]"^^<http://strdf.di.uoa.gr/ontology#period>.
   17.12 +<http://example.org/item1> <http://example.org/value> "10"^^<http://www.w3.org/2001/XMLSchema#int> "[2012-11-19T10:41:00,2012-11-19T11:41:00]"^^<http://strdf.di.uoa.gr/ontology#period>.
   17.13 +<http://example.org/item2> <http://example.org/value> "20"^^<http://www.w3.org/2001/XMLSchema#int> "[2012-11-19T10:41:00,2012-11-19T15:41:00]"^^<http://strdf.di.uoa.gr/ontology#period>.
   17.14 +<http://example.org/item4> <http://example.org/value> "20"^^<http://www.w3.org/2001/XMLSchema#int> "2012-01-19T10:41:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> .
   17.15 +<http://example.org/item5> <http://example.org/value> "20"^^<http://www.w3.org/2001/XMLSchema#int> "2012-01-19T11:41:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> .
   17.16 +<http://example.org/item6> <http://example.org/value> "20"^^<http://www.w3.org/2001/XMLSchema#int> "2012-01-19T12:41:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> .
   17.17 +<http://example.org/item7> <http://example.org/id> "7"^^<http://www.w3.org/2001/XMLSchema#int> "[2012-11-19T13:41:00,2012-11-19T14:41:00]"^^<http://strdf.di.uoa.gr/ontology#period>.
   17.18 +<http://example.org/item8> <http://example.org/id> "8"^^<http://www.w3.org/2001/XMLSchema#int> "[2012-11-19T14:41:00,2012-11-19T15:41:00]"^^<http://strdf.di.uoa.gr/ontology#period>.
    18.1 --- a/testsuite/src/test/resources/stSPARQL/TemporalRelationsTest/starts.rq	Mon Jan 26 17:02:19 2015 +0200
    18.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalRelationsTest/starts.rq	Tue Jan 27 13:21:49 2015 +0200
    18.3 @@ -1,7 +1,3 @@
    18.4 -PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
    18.5 -PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
    18.6 -PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
    18.7 -
    18.8  SELECT distinct ?x1 ?x2 
    18.9  			WHERE { 
   18.10  				?x1 ?y1 ?z1 ?t1 .