Strabon

changeset 1123:35add8e2970f temporals

added some tests in the test suite
author Konstantina Bereta <Konstantina.Bereta@di.uoa.gr>
date Fri Apr 26 15:03:21 2013 +0300 (2013-04-26)
parents ed2c581fe07b
children 56f557d6e932
files testsuite/src/test/java/eu/earthobservatory/testsuite/stSPARQL/TemporalRelations.java testsuite/src/test/resources/databases.properties testsuite/src/test/resources/stSPARQL/TemporalConstants/CheckStoredUC.rq testsuite/src/test/resources/stSPARQL/TemporalConstants/QueryNOW.rq testsuite/src/test/resources/stSPARQL/TemporalConstants/temporalConstants.nq testsuite/src/test/resources/stSPARQL/TemporalConstructs/temporalConstructs.nq testsuite/src/test/resources/stSPARQL/TemporalRelations/adjacent.rq testsuite/src/test/resources/stSPARQL/TemporalRelations/adjacent.srx testsuite/src/test/resources/stSPARQL/TemporalRelations/after.rq testsuite/src/test/resources/stSPARQL/TemporalRelations/after.srx testsuite/src/test/resources/stSPARQL/TemporalRelations/before.rq testsuite/src/test/resources/stSPARQL/TemporalRelations/before.srx testsuite/src/test/resources/stSPARQL/TemporalRelations/during.rq testsuite/src/test/resources/stSPARQL/TemporalRelations/during.srx testsuite/src/test/resources/stSPARQL/TemporalRelations/equalsPeriod.rq testsuite/src/test/resources/stSPARQL/TemporalRelations/equalsPeriod.srx testsuite/src/test/resources/stSPARQL/TemporalRelations/finishes.rq testsuite/src/test/resources/stSPARQL/TemporalRelations/finishes.srx testsuite/src/test/resources/stSPARQL/TemporalRelations/meets.rq testsuite/src/test/resources/stSPARQL/TemporalRelations/meets.srx testsuite/src/test/resources/stSPARQL/TemporalRelations/nequalsPeriod.rq testsuite/src/test/resources/stSPARQL/TemporalRelations/nequalsPeriod.srx testsuite/src/test/resources/stSPARQL/TemporalRelations/overleft.rq testsuite/src/test/resources/stSPARQL/TemporalRelations/overleft.srx testsuite/src/test/resources/stSPARQL/TemporalRelations/overright.rq testsuite/src/test/resources/stSPARQL/TemporalRelations/overright.srx testsuite/src/test/resources/stSPARQL/TemporalRelations/periodIntersection.rq testsuite/src/test/resources/stSPARQL/TemporalRelations/periodIntersects.rq testsuite/src/test/resources/stSPARQL/TemporalRelations/periodIntersects.srx testsuite/src/test/resources/stSPARQL/TemporalRelations/periodOverlaps.rq testsuite/src/test/resources/stSPARQL/TemporalRelations/periodOverlaps.srx testsuite/src/test/resources/stSPARQL/TemporalRelations/starts.rq testsuite/src/test/resources/stSPARQL/TemporalRelations/starts.srx testsuite/src/test/resources/stSPARQL/TemporalRelations/temporalRelations.nq
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/testsuite/src/test/java/eu/earthobservatory/testsuite/stSPARQL/TemporalRelations.java	Fri Apr 26 15:03:21 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.stSPARQL;
    1.14 +
    1.15 +import eu.earthobservatory.testsuite.utils.TemplateTest;
    1.16 +
    1.17 +
    1.18 +/**
    1.19 + * A simple store test. It tests if triples with GML serialization are stored and retrieved correctly.
    1.20 + * 
    1.21 + * @author Panayiotis Smeros <psmeros@di.uoa.gr
    1.22 + */
    1.23 +public class TemporalRelations extends TemplateTest{}
     2.1 --- a/testsuite/src/test/resources/databases.properties	Fri Apr 19 16:40:30 2013 +0300
     2.2 +++ b/testsuite/src/test/resources/databases.properties	Fri Apr 26 15:03:21 2013 +0300
     2.3 @@ -1,9 +1,9 @@
     2.4  # PostGIS
     2.5 -postgis.databaseTemplateName = template_postgis
     2.6 +postgis.databaseTemplateName = spatiotemporal_template
     2.7  postgis.defaultUser = postgres
     2.8  postgis.serverName = localhost
     2.9  postgis.username = postgres
    2.10 -postgis.password = postgres
    2.11 +postgis.password = p1r3as
    2.12  postgis.port = 5432
    2.13  		
    2.14  ! MonetDB
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalConstants/CheckStoredUC.rq	Fri Apr 26 15:03:21 2013 +0300
     3.3 @@ -0,0 +1,8 @@
     3.4 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
     3.5 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
     3.6 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
     3.7 +
     3.8 +	SELECT distinct ?x1 ?t1  
     3.9 +	 WHERE { 
    3.10 +			?x1 ?y1 ?z1 ?t1
    3.11 +		    }
    3.12 \ 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/stSPARQL/TemporalConstants/QueryNOW.rq	Fri Apr 26 15:03:21 2013 +0300
     4.3 @@ -0,0 +1,3 @@
     4.4 +SELECT ?o
     4.5 +WHERE {?s <http://strdf.di.uoa.gr/ontology#hasGeometry> ?geo.
     4.6 +?geo <http://www.w3.org/2003/01/geo/wgs84_pos#lat> ?o.}
     4.7 \ No newline at end of file
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalConstants/temporalConstants.nq	Fri Apr 26 15:03:21 2013 +0300
     5.3 @@ -0,0 +1,15 @@
     5.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>.
     5.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>.
     5.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>.
     5.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>.
     5.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>.
     5.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+02,2012-11-19T13:41:00]"^^<http://strdf.di.uoa.gr/ontology#period>.
    5.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+02,2012-11-19T13:41:00]"^^<http://strdf.di.uoa.gr/ontology#period>.
    5.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+02,2012-11-19T13:41:00]"^^<http://strdf.di.uoa.gr/ontology#period>.
    5.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>.
    5.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>.
    5.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> .
    5.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> .
    5.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> .
    5.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>.
    5.18 +<http://example.org/item8> <http://example.org/id> "8"^^<http://www.w3.org/2001/XMLSchema#int> "[2012-11-19T14:41:00.000001,2012-11-19T15:41:00]"^^<http://strdf.di.uoa.gr/ontology#period>.
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalConstructs/temporalConstructs.nq	Fri Apr 26 15:03:21 2013 +0300
     6.3 @@ -0,0 +1,15 @@
     6.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>.
     6.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>.
     6.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>.
     6.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>.
     6.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>.
     6.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+02,2012-11-19T13:41:00]"^^<http://strdf.di.uoa.gr/ontology#period>.
    6.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+02,2012-11-19T13:41:00]"^^<http://strdf.di.uoa.gr/ontology#period>.
    6.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+02,2012-11-19T13:41:00]"^^<http://strdf.di.uoa.gr/ontology#period>.
    6.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>.
    6.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>.
    6.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> .
    6.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> .
    6.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> .
    6.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>.
    6.18 +<http://example.org/item8> <http://example.org/id> "8"^^<http://www.w3.org/2001/XMLSchema#int> "[2012-11-19T14:41:00.000001,2012-11-19T15:41:00]"^^<http://strdf.di.uoa.gr/ontology#period>.
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalRelations/adjacent.rq	Fri Apr 26 15:03:21 2013 +0300
     7.3 @@ -0,0 +1,9 @@
     7.4 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
     7.5 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
     7.6 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
     7.7 +
     7.8 +SELECT distinct ?x1 ?x2 
     7.9 +			WHERE { 
    7.10 +				?x1 ?y1 ?z1 ?t1 .
    7.11 +				?x2 ?y2 ?z2 ?t2 .
    7.12 +				FILTER(strdf:adjacent(?t1, ?t2) && str(?x1) < str(?x2)).}
    7.13 \ 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/TemporalRelations/adjacent.srx	Fri Apr 26 15:03:21 2013 +0300
     8.3 @@ -0,0 +1,25 @@
     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='x1'/>
     8.8 +		<variable name='x2'/>
     8.9 +	</head>
    8.10 +	<results>
    8.11 +		<result>
    8.12 +			<binding name='x2'>
    8.13 +				<uri>http://example.org/item8</uri>
    8.14 +			</binding>
    8.15 +			<binding name='x1'>
    8.16 +				<uri>http://example.org/item7</uri>
    8.17 +			</binding>
    8.18 +		</result>
    8.19 +		<result>
    8.20 +			<binding name='x2'>
    8.21 +				<uri>http://example.org/item7</uri>
    8.22 +			</binding>
    8.23 +			<binding name='x1'>
    8.24 +				<uri>http://example.org/item8</uri>
    8.25 +			</binding>
    8.26 +		</result>
    8.27 +	</results>
    8.28 +</sparql>
    8.29 \ 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/TemporalRelations/after.rq	Fri Apr 26 15:03:21 2013 +0300
     9.3 @@ -0,0 +1,9 @@
     9.4 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
     9.5 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
     9.6 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
     9.7 +
     9.8 +SELECT distinct ?x1 ?x2 
     9.9 +			WHERE { 
    9.10 +				?x1 ?y1 ?z1 ?t1 .
    9.11 +				?x2 ?y2 ?z2 ?t2 .
    9.12 +				FILTER(strdf:after(?t1, ?t2) && str(?x1) < str(?x2)).}
    9.13 \ 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/TemporalRelations/after.srx	Fri Apr 26 15:03:21 2013 +0300
    10.3 @@ -0,0 +1,273 @@
    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='x1'/>
    10.8 +		<variable name='x2'/>
    10.9 +	</head>
   10.10 +	<results>
   10.11 +		<result>
   10.12 +			<binding name='x2'>
   10.13 +				<uri>http://example.org/item2</uri>
   10.14 +			</binding>
   10.15 +			<binding name='x1'>
   10.16 +				<uri>http://example.org/item4</uri>
   10.17 +			</binding>
   10.18 +		</result>
   10.19 +		<result>
   10.20 +			<binding name='x2'>
   10.21 +				<uri>http://example.org/item6</uri>
   10.22 +			</binding>
   10.23 +			<binding name='x1'>
   10.24 +				<uri>http://example.org/item2</uri>
   10.25 +			</binding>
   10.26 +		</result>
   10.27 +		<result>
   10.28 +			<binding name='x2'>
   10.29 +				<uri>http://example.org/item2</uri>
   10.30 +			</binding>
   10.31 +			<binding name='x1'>
   10.32 +				<uri>http://example.org/item7</uri>
   10.33 +			</binding>
   10.34 +		</result>
   10.35 +		<result>
   10.36 +			<binding name='x2'>
   10.37 +				<uri>http://example.org/item5</uri>
   10.38 +			</binding>
   10.39 +			<binding name='x1'>
   10.40 +				<uri>http://example.org/item6</uri>
   10.41 +			</binding>
   10.42 +		</result>
   10.43 +		<result>
   10.44 +			<binding name='x2'>
   10.45 +				<uri>http://example.org/item2</uri>
   10.46 +			</binding>
   10.47 +			<binding name='x1'>
   10.48 +				<uri>http://example.org/item1</uri>
   10.49 +			</binding>
   10.50 +		</result>
   10.51 +		<result>
   10.52 +			<binding name='x2'>
   10.53 +				<uri>http://example.org/item4</uri>
   10.54 +			</binding>
   10.55 +			<binding name='x1'>
   10.56 +				<uri>http://example.org/item2</uri>
   10.57 +			</binding>
   10.58 +		</result>
   10.59 +		<result>
   10.60 +			<binding name='x2'>
   10.61 +				<uri>http://example.org/item1</uri>
   10.62 +			</binding>
   10.63 +			<binding name='x1'>
   10.64 +				<uri>http://example.org/item1</uri>
   10.65 +			</binding>
   10.66 +		</result>
   10.67 +		<result>
   10.68 +			<binding name='x2'>
   10.69 +				<uri>http://example.org/item5</uri>
   10.70 +			</binding>
   10.71 +			<binding name='x1'>
   10.72 +				<uri>http://example.org/item7</uri>
   10.73 +			</binding>
   10.74 +		</result>
   10.75 +		<result>
   10.76 +			<binding name='x2'>
   10.77 +				<uri>http://example.org/item2</uri>
   10.78 +			</binding>
   10.79 +			<binding name='x1'>
   10.80 +				<uri>http://example.org/item6</uri>
   10.81 +			</binding>
   10.82 +		</result>
   10.83 +		<result>
   10.84 +			<binding name='x2'>
   10.85 +				<uri>http://example.org/item5</uri>
   10.86 +			</binding>
   10.87 +			<binding name='x1'>
   10.88 +				<uri>http://example.org/item1</uri>
   10.89 +			</binding>
   10.90 +		</result>
   10.91 +		<result>
   10.92 +			<binding name='x2'>
   10.93 +				<uri>http://example.org/item1</uri>
   10.94 +			</binding>
   10.95 +			<binding name='x1'>
   10.96 +				<uri>http://example.org/item7</uri>
   10.97 +			</binding>
   10.98 +		</result>
   10.99 +		<result>
  10.100 +			<binding name='x2'>
  10.101 +				<uri>http://example.org/item4</uri>
  10.102 +			</binding>
  10.103 +			<binding name='x1'>
  10.104 +				<uri>http://example.org/item3</uri>
  10.105 +			</binding>
  10.106 +		</result>
  10.107 +		<result>
  10.108 +			<binding name='x2'>
  10.109 +				<uri>http://example.org/item6</uri>
  10.110 +			</binding>
  10.111 +			<binding name='x1'>
  10.112 +				<uri>http://example.org/item8</uri>
  10.113 +			</binding>
  10.114 +		</result>
  10.115 +		<result>
  10.116 +			<binding name='x2'>
  10.117 +				<uri>http://example.org/item4</uri>
  10.118 +			</binding>
  10.119 +			<binding name='x1'>
  10.120 +				<uri>http://example.org/item8</uri>
  10.121 +			</binding>
  10.122 +		</result>
  10.123 +		<result>
  10.124 +			<binding name='x2'>
  10.125 +				<uri>http://example.org/item6</uri>
  10.126 +			</binding>
  10.127 +			<binding name='x1'>
  10.128 +				<uri>http://example.org/item3</uri>
  10.129 +			</binding>
  10.130 +		</result>
  10.131 +		<result>
  10.132 +			<binding name='x2'>
  10.133 +				<uri>http://example.org/item2</uri>
  10.134 +			</binding>
  10.135 +			<binding name='x1'>
  10.136 +				<uri>http://example.org/item5</uri>
  10.137 +			</binding>
  10.138 +		</result>
  10.139 +		<result>
  10.140 +			<binding name='x2'>
  10.141 +				<uri>http://example.org/item5</uri>
  10.142 +			</binding>
  10.143 +			<binding name='x1'>
  10.144 +				<uri>http://example.org/item2</uri>
  10.145 +			</binding>
  10.146 +		</result>
  10.147 +		<result>
  10.148 +			<binding name='x2'>
  10.149 +				<uri>http://example.org/item1</uri>
  10.150 +			</binding>
  10.151 +			<binding name='x1'>
  10.152 +				<uri>http://example.org/item2</uri>
  10.153 +			</binding>
  10.154 +		</result>
  10.155 +		<result>
  10.156 +			<binding name='x2'>
  10.157 +				<uri>http://example.org/item4</uri>
  10.158 +			</binding>
  10.159 +			<binding name='x1'>
  10.160 +				<uri>http://example.org/item6</uri>
  10.161 +			</binding>
  10.162 +		</result>
  10.163 +		<result>
  10.164 +			<binding name='x2'>
  10.165 +				<uri>http://example.org/item4</uri>
  10.166 +			</binding>
  10.167 +			<binding name='x1'>
  10.168 +				<uri>http://example.org/item5</uri>
  10.169 +			</binding>
  10.170 +		</result>
  10.171 +		<result>
  10.172 +			<binding name='x2'>
  10.173 +				<uri>http://example.org/item2</uri>
  10.174 +			</binding>
  10.175 +			<binding name='x1'>
  10.176 +				<uri>http://example.org/item8</uri>
  10.177 +			</binding>
  10.178 +		</result>
  10.179 +		<result>
  10.180 +			<binding name='x2'>
  10.181 +				<uri>http://example.org/item2</uri>
  10.182 +			</binding>
  10.183 +			<binding name='x1'>
  10.184 +				<uri>http://example.org/item3</uri>
  10.185 +			</binding>
  10.186 +		</result>
  10.187 +		<result>
  10.188 +			<binding name='x2'>
  10.189 +				<uri>http://example.org/item1</uri>
  10.190 +			</binding>
  10.191 +			<binding name='x1'>
  10.192 +				<uri>http://example.org/item8</uri>
  10.193 +			</binding>
  10.194 +		</result>
  10.195 +		<result>
  10.196 +			<binding name='x2'>
  10.197 +				<uri>http://example.org/item3</uri>
  10.198 +			</binding>
  10.199 +			<binding name='x1'>
  10.200 +				<uri>http://example.org/item8</uri>
  10.201 +			</binding>
  10.202 +		</result>
  10.203 +		<result>
  10.204 +			<binding name='x2'>
  10.205 +				<uri>http://example.org/item5</uri>
  10.206 +			</binding>
  10.207 +			<binding name='x1'>
  10.208 +				<uri>http://example.org/item8</uri>
  10.209 +			</binding>
  10.210 +		</result>
  10.211 +		<result>
  10.212 +			<binding name='x2'>
  10.213 +				<uri>http://example.org/item1</uri>
  10.214 +			</binding>
  10.215 +			<binding name='x1'>
  10.216 +				<uri>http://example.org/item3</uri>
  10.217 +			</binding>
  10.218 +		</result>
  10.219 +		<result>
  10.220 +			<binding name='x2'>
  10.221 +				<uri>http://example.org/item5</uri>
  10.222 +			</binding>
  10.223 +			<binding name='x1'>
  10.224 +				<uri>http://example.org/item3</uri>
  10.225 +			</binding>
  10.226 +		</result>
  10.227 +		<result>
  10.228 +			<binding name='x2'>
  10.229 +				<uri>http://example.org/item4</uri>
  10.230 +			</binding>
  10.231 +			<binding name='x1'>
  10.232 +				<uri>http://example.org/item1</uri>
  10.233 +			</binding>
  10.234 +		</result>
  10.235 +		<result>
  10.236 +			<binding name='x2'>
  10.237 +				<uri>http://example.org/item2</uri>
  10.238 +			</binding>
  10.239 +			<binding name='x1'>
  10.240 +				<uri>http://example.org/item2</uri>
  10.241 +			</binding>
  10.242 +		</result>
  10.243 +		<result>
  10.244 +			<binding name='x2'>
  10.245 +				<uri>http://example.org/item4</uri>
  10.246 +			</binding>
  10.247 +			<binding name='x1'>
  10.248 +				<uri>http://example.org/item7</uri>
  10.249 +			</binding>
  10.250 +		</result>
  10.251 +		<result>
  10.252 +			<binding name='x2'>
  10.253 +				<uri>http://example.org/item6</uri>
  10.254 +			</binding>
  10.255 +			<binding name='x1'>
  10.256 +				<uri>http://example.org/item7</uri>
  10.257 +			</binding>
  10.258 +		</result>
  10.259 +		<result>
  10.260 +			<binding name='x2'>
  10.261 +				<uri>http://example.org/item6</uri>
  10.262 +			</binding>
  10.263 +			<binding name='x1'>
  10.264 +				<uri>http://example.org/item1</uri>
  10.265 +			</binding>
  10.266 +		</result>
  10.267 +		<result>
  10.268 +			<binding name='x2'>
  10.269 +				<uri>http://example.org/item7</uri>
  10.270 +			</binding>
  10.271 +			<binding name='x1'>
  10.272 +				<uri>http://example.org/item8</uri>
  10.273 +			</binding>
  10.274 +		</result>
  10.275 +	</results>
  10.276 +</sparql>
  10.277 \ 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/TemporalRelations/before.rq	Fri Apr 26 15:03:21 2013 +0300
    11.3 @@ -0,0 +1,9 @@
    11.4 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
    11.5 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
    11.6 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
    11.7 +
    11.8 +SELECT distinct ?x1 ?x2 
    11.9 +			WHERE { 
   11.10 +				?x1 ?y1 ?z1 ?t1 .
   11.11 +				?x2 ?y2 ?z2 ?t2 .
   11.12 +				FILTER(strdf:before(?t1, ?t2) && str(?x1) < str(?x2)).}
   11.13 \ 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/TemporalRelations/before.srx	Fri Apr 26 15:03:21 2013 +0300
    12.3 @@ -0,0 +1,273 @@
    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='x1'/>
    12.8 +		<variable name='x2'/>
    12.9 +	</head>
   12.10 +	<results>
   12.11 +		<result>
   12.12 +			<binding name='x2'>
   12.13 +				<uri>http://example.org/item8</uri>
   12.14 +			</binding>
   12.15 +			<binding name='x1'>
   12.16 +				<uri>http://example.org/item7</uri>
   12.17 +			</binding>
   12.18 +		</result>
   12.19 +		<result>
   12.20 +			<binding name='x2'>
   12.21 +				<uri>http://example.org/item7</uri>
   12.22 +			</binding>
   12.23 +			<binding name='x1'>
   12.24 +				<uri>http://example.org/item6</uri>
   12.25 +			</binding>
   12.26 +		</result>
   12.27 +		<result>
   12.28 +			<binding name='x2'>
   12.29 +				<uri>http://example.org/item8</uri>
   12.30 +			</binding>
   12.31 +			<binding name='x1'>
   12.32 +				<uri>http://example.org/item1</uri>
   12.33 +			</binding>
   12.34 +		</result>
   12.35 +		<result>
   12.36 +			<binding name='x2'>
   12.37 +				<uri>http://example.org/item2</uri>
   12.38 +			</binding>
   12.39 +			<binding name='x1'>
   12.40 +				<uri>http://example.org/item4</uri>
   12.41 +			</binding>
   12.42 +		</result>
   12.43 +		<result>
   12.44 +			<binding name='x2'>
   12.45 +				<uri>http://example.org/item1</uri>
   12.46 +			</binding>
   12.47 +			<binding name='x1'>
   12.48 +				<uri>http://example.org/item5</uri>
   12.49 +			</binding>
   12.50 +		</result>
   12.51 +		<result>
   12.52 +			<binding name='x2'>
   12.53 +				<uri>http://example.org/item3</uri>
   12.54 +			</binding>
   12.55 +			<binding name='x1'>
   12.56 +				<uri>http://example.org/item5</uri>
   12.57 +			</binding>
   12.58 +		</result>
   12.59 +		<result>
   12.60 +			<binding name='x2'>
   12.61 +				<uri>http://example.org/item8</uri>
   12.62 +			</binding>
   12.63 +			<binding name='x1'>
   12.64 +				<uri>http://example.org/item4</uri>
   12.65 +			</binding>
   12.66 +		</result>
   12.67 +		<result>
   12.68 +			<binding name='x2'>
   12.69 +				<uri>http://example.org/item6</uri>
   12.70 +			</binding>
   12.71 +			<binding name='x1'>
   12.72 +				<uri>http://example.org/item2</uri>
   12.73 +			</binding>
   12.74 +		</result>
   12.75 +		<result>
   12.76 +			<binding name='x2'>
   12.77 +				<uri>http://example.org/item7</uri>
   12.78 +			</binding>
   12.79 +			<binding name='x1'>
   12.80 +				<uri>http://example.org/item5</uri>
   12.81 +			</binding>
   12.82 +		</result>
   12.83 +		<result>
   12.84 +			<binding name='x2'>
   12.85 +				<uri>http://example.org/item3</uri>
   12.86 +			</binding>
   12.87 +			<binding name='x1'>
   12.88 +				<uri>http://example.org/item6</uri>
   12.89 +			</binding>
   12.90 +		</result>
   12.91 +		<result>
   12.92 +			<binding name='x2'>
   12.93 +				<uri>http://example.org/item2</uri>
   12.94 +			</binding>
   12.95 +			<binding name='x1'>
   12.96 +				<uri>http://example.org/item1</uri>
   12.97 +			</binding>
   12.98 +		</result>
   12.99 +		<result>
  12.100 +			<binding name='x2'>
  12.101 +				<uri>http://example.org/item4</uri>
  12.102 +			</binding>
  12.103 +			<binding name='x1'>
  12.104 +				<uri>http://example.org/item2</uri>
  12.105 +			</binding>
  12.106 +		</result>
  12.107 +		<result>
  12.108 +			<binding name='x2'>
  12.109 +				<uri>http://example.org/item1</uri>
  12.110 +			</binding>
  12.111 +			<binding name='x1'>
  12.112 +				<uri>http://example.org/item6</uri>
  12.113 +			</binding>
  12.114 +		</result>
  12.115 +		<result>
  12.116 +			<binding name='x2'>
  12.117 +				<uri>http://example.org/item7</uri>
  12.118 +			</binding>
  12.119 +			<binding name='x1'>
  12.120 +				<uri>http://example.org/item4</uri>
  12.121 +			</binding>
  12.122 +		</result>
  12.123 +		<result>
  12.124 +			<binding name='x2'>
  12.125 +				<uri>http://example.org/item8</uri>
  12.126 +			</binding>
  12.127 +			<binding name='x1'>
  12.128 +				<uri>http://example.org/item5</uri>
  12.129 +			</binding>
  12.130 +		</result>
  12.131 +		<result>
  12.132 +			<binding name='x2'>
  12.133 +				<uri>http://example.org/item1</uri>
  12.134 +			</binding>
  12.135 +			<binding name='x1'>
  12.136 +				<uri>http://example.org/item1</uri>
  12.137 +			</binding>
  12.138 +		</result>
  12.139 +		<result>
  12.140 +			<binding name='x2'>
  12.141 +				<uri>http://example.org/item2</uri>
  12.142 +			</binding>
  12.143 +			<binding name='x1'>
  12.144 +				<uri>http://example.org/item6</uri>
  12.145 +			</binding>
  12.146 +		</result>
  12.147 +		<result>
  12.148 +			<binding name='x2'>
  12.149 +				<uri>http://example.org/item3</uri>
  12.150 +			</binding>
  12.151 +			<binding name='x1'>
  12.152 +				<uri>http://example.org/item1</uri>
  12.153 +			</binding>
  12.154 +		</result>
  12.155 +		<result>
  12.156 +			<binding name='x2'>
  12.157 +				<uri>http://example.org/item8</uri>
  12.158 +			</binding>
  12.159 +			<binding name='x1'>
  12.160 +				<uri>http://example.org/item6</uri>
  12.161 +			</binding>
  12.162 +		</result>
  12.163 +		<result>
  12.164 +			<binding name='x2'>
  12.165 +				<uri>http://example.org/item7</uri>
  12.166 +			</binding>
  12.167 +			<binding name='x1'>
  12.168 +				<uri>http://example.org/item1</uri>
  12.169 +			</binding>
  12.170 +		</result>
  12.171 +		<result>
  12.172 +			<binding name='x2'>
  12.173 +				<uri>http://example.org/item3</uri>
  12.174 +			</binding>
  12.175 +			<binding name='x1'>
  12.176 +				<uri>http://example.org/item4</uri>
  12.177 +			</binding>
  12.178 +		</result>
  12.179 +		<result>
  12.180 +			<binding name='x2'>
  12.181 +				<uri>http://example.org/item5</uri>
  12.182 +			</binding>
  12.183 +			<binding name='x1'>
  12.184 +				<uri>http://example.org/item4</uri>
  12.185 +			</binding>
  12.186 +		</result>
  12.187 +		<result>
  12.188 +			<binding name='x2'>
  12.189 +				<uri>http://example.org/item1</uri>
  12.190 +			</binding>
  12.191 +			<binding name='x1'>
  12.192 +				<uri>http://example.org/item4</uri>
  12.193 +			</binding>
  12.194 +		</result>
  12.195 +		<result>
  12.196 +			<binding name='x2'>
  12.197 +				<uri>http://example.org/item2</uri>
  12.198 +			</binding>
  12.199 +			<binding name='x1'>
  12.200 +				<uri>http://example.org/item5</uri>
  12.201 +			</binding>
  12.202 +		</result>
  12.203 +		<result>
  12.204 +			<binding name='x2'>
  12.205 +				<uri>http://example.org/item5</uri>
  12.206 +			</binding>
  12.207 +			<binding name='x1'>
  12.208 +				<uri>http://example.org/item2</uri>
  12.209 +			</binding>
  12.210 +		</result>
  12.211 +		<result>
  12.212 +			<binding name='x2'>
  12.213 +				<uri>http://example.org/item3</uri>
  12.214 +			</binding>
  12.215 +			<binding name='x1'>
  12.216 +				<uri>http://example.org/item2</uri>
  12.217 +			</binding>
  12.218 +		</result>
  12.219 +		<result>
  12.220 +			<binding name='x2'>
  12.221 +				<uri>http://example.org/item8</uri>
  12.222 +			</binding>
  12.223 +			<binding name='x1'>
  12.224 +				<uri>http://example.org/item3</uri>
  12.225 +			</binding>
  12.226 +		</result>
  12.227 +		<result>
  12.228 +			<binding name='x2'>
  12.229 +				<uri>http://example.org/item1</uri>
  12.230 +			</binding>
  12.231 +			<binding name='x1'>
  12.232 +				<uri>http://example.org/item2</uri>
  12.233 +			</binding>
  12.234 +		</result>
  12.235 +		<result>
  12.236 +			<binding name='x2'>
  12.237 +				<uri>http://example.org/item7</uri>
  12.238 +			</binding>
  12.239 +			<binding name='x1'>
  12.240 +				<uri>http://example.org/item2</uri>
  12.241 +			</binding>
  12.242 +		</result>
  12.243 +		<result>
  12.244 +			<binding name='x2'>
  12.245 +				<uri>http://example.org/item6</uri>
  12.246 +			</binding>
  12.247 +			<binding name='x1'>
  12.248 +				<uri>http://example.org/item5</uri>
  12.249 +			</binding>
  12.250 +		</result>
  12.251 +		<result>
  12.252 +			<binding name='x2'>
  12.253 +				<uri>http://example.org/item6</uri>
  12.254 +			</binding>
  12.255 +			<binding name='x1'>
  12.256 +				<uri>http://example.org/item4</uri>
  12.257 +			</binding>
  12.258 +		</result>
  12.259 +		<result>
  12.260 +			<binding name='x2'>
  12.261 +				<uri>http://example.org/item8</uri>
  12.262 +			</binding>
  12.263 +			<binding name='x1'>
  12.264 +				<uri>http://example.org/item2</uri>
  12.265 +			</binding>
  12.266 +		</result>
  12.267 +		<result>
  12.268 +			<binding name='x2'>
  12.269 +				<uri>http://example.org/item2</uri>
  12.270 +			</binding>
  12.271 +			<binding name='x1'>
  12.272 +				<uri>http://example.org/item2</uri>
  12.273 +			</binding>
  12.274 +		</result>
  12.275 +	</results>
  12.276 +</sparql>
  12.277 \ 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/TemporalRelations/during.rq	Fri Apr 26 15:03:21 2013 +0300
    13.3 @@ -0,0 +1,9 @@
    13.4 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
    13.5 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
    13.6 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
    13.7 +
    13.8 +SELECT distinct ?x1 ?x2 
    13.9 +			WHERE { 
   13.10 +				?x1 ?y1 ?z1 ?t1 .
   13.11 +				?x2 ?y2 ?z2 ?t2 .
   13.12 +				FILTER(strdf:during(?t1, ?t2) && str(?x1) < str(?x2)).}
   13.13 \ 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/TemporalRelations/during.srx	Fri Apr 26 15:03:21 2013 +0300
    14.3 @@ -0,0 +1,161 @@
    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='x1'/>
    14.8 +		<variable name='x2'/>
    14.9 +	</head>
   14.10 +	<results>
   14.11 +		<result>
   14.12 +			<binding name='x2'>
   14.13 +				<uri>http://example.org/item2</uri>
   14.14 +			</binding>
   14.15 +			<binding name='x1'>
   14.16 +				<uri>http://example.org/item4</uri>
   14.17 +			</binding>
   14.18 +		</result>
   14.19 +		<result>
   14.20 +			<binding name='x2'>
   14.21 +				<uri>http://example.org/item5</uri>
   14.22 +			</binding>
   14.23 +			<binding name='x1'>
   14.24 +				<uri>http://example.org/item5</uri>
   14.25 +			</binding>
   14.26 +		</result>
   14.27 +		<result>
   14.28 +			<binding name='x2'>
   14.29 +				<uri>http://example.org/item2</uri>
   14.30 +			</binding>
   14.31 +			<binding name='x1'>
   14.32 +				<uri>http://example.org/item7</uri>
   14.33 +			</binding>
   14.34 +		</result>
   14.35 +		<result>
   14.36 +			<binding name='x2'>
   14.37 +				<uri>http://example.org/item2</uri>
   14.38 +			</binding>
   14.39 +			<binding name='x1'>
   14.40 +				<uri>http://example.org/item1</uri>
   14.41 +			</binding>
   14.42 +		</result>
   14.43 +		<result>
   14.44 +			<binding name='x2'>
   14.45 +				<uri>http://example.org/item1</uri>
   14.46 +			</binding>
   14.47 +			<binding name='x1'>
   14.48 +				<uri>http://example.org/item1</uri>
   14.49 +			</binding>
   14.50 +		</result>
   14.51 +		<result>
   14.52 +			<binding name='x2'>
   14.53 +				<uri>http://example.org/item2</uri>
   14.54 +			</binding>
   14.55 +			<binding name='x1'>
   14.56 +				<uri>http://example.org/item6</uri>
   14.57 +			</binding>
   14.58 +		</result>
   14.59 +		<result>
   14.60 +			<binding name='x2'>
   14.61 +				<uri>http://example.org/item3</uri>
   14.62 +			</binding>
   14.63 +			<binding name='x1'>
   14.64 +				<uri>http://example.org/item1</uri>
   14.65 +			</binding>
   14.66 +		</result>
   14.67 +		<result>
   14.68 +			<binding name='x2'>
   14.69 +				<uri>http://example.org/item7</uri>
   14.70 +			</binding>
   14.71 +			<binding name='x1'>
   14.72 +				<uri>http://example.org/item7</uri>
   14.73 +			</binding>
   14.74 +		</result>
   14.75 +		<result>
   14.76 +			<binding name='x2'>
   14.77 +				<uri>http://example.org/item2</uri>
   14.78 +			</binding>
   14.79 +			<binding name='x1'>
   14.80 +				<uri>http://example.org/item5</uri>
   14.81 +			</binding>
   14.82 +		</result>
   14.83 +		<result>
   14.84 +			<binding name='x2'>
   14.85 +				<uri>http://example.org/item3</uri>
   14.86 +			</binding>
   14.87 +			<binding name='x1'>
   14.88 +				<uri>http://example.org/item2</uri>
   14.89 +			</binding>
   14.90 +		</result>
   14.91 +		<result>
   14.92 +			<binding name='x2'>
   14.93 +				<uri>http://example.org/item1</uri>
   14.94 +			</binding>
   14.95 +			<binding name='x1'>
   14.96 +				<uri>http://example.org/item2</uri>
   14.97 +			</binding>
   14.98 +		</result>
   14.99 +		<result>
  14.100 +			<binding name='x2'>
  14.101 +				<uri>http://example.org/item6</uri>
  14.102 +			</binding>
  14.103 +			<binding name='x1'>
  14.104 +				<uri>http://example.org/item6</uri>
  14.105 +			</binding>
  14.106 +		</result>
  14.107 +		<result>
  14.108 +			<binding name='x2'>
  14.109 +				<uri>http://example.org/item8</uri>
  14.110 +			</binding>
  14.111 +			<binding name='x1'>
  14.112 +				<uri>http://example.org/item8</uri>
  14.113 +			</binding>
  14.114 +		</result>
  14.115 +		<result>
  14.116 +			<binding name='x2'>
  14.117 +				<uri>http://example.org/item2</uri>
  14.118 +			</binding>
  14.119 +			<binding name='x1'>
  14.120 +				<uri>http://example.org/item8</uri>
  14.121 +			</binding>
  14.122 +		</result>
  14.123 +		<result>
  14.124 +			<binding name='x2'>
  14.125 +				<uri>http://example.org/item2</uri>
  14.126 +			</binding>
  14.127 +			<binding name='x1'>
  14.128 +				<uri>http://example.org/item3</uri>
  14.129 +			</binding>
  14.130 +		</result>
  14.131 +		<result>
  14.132 +			<binding name='x2'>
  14.133 +				<uri>http://example.org/item4</uri>
  14.134 +			</binding>
  14.135 +			<binding name='x1'>
  14.136 +				<uri>http://example.org/item4</uri>
  14.137 +			</binding>
  14.138 +		</result>
  14.139 +		<result>
  14.140 +			<binding name='x2'>
  14.141 +				<uri>http://example.org/item1</uri>
  14.142 +			</binding>
  14.143 +			<binding name='x1'>
  14.144 +				<uri>http://example.org/item3</uri>
  14.145 +			</binding>
  14.146 +		</result>
  14.147 +		<result>
  14.148 +			<binding name='x2'>
  14.149 +				<uri>http://example.org/item3</uri>
  14.150 +			</binding>
  14.151 +			<binding name='x1'>
  14.152 +				<uri>http://example.org/item3</uri>
  14.153 +			</binding>
  14.154 +		</result>
  14.155 +		<result>
  14.156 +			<binding name='x2'>
  14.157 +				<uri>http://example.org/item2</uri>
  14.158 +			</binding>
  14.159 +			<binding name='x1'>
  14.160 +				<uri>http://example.org/item2</uri>
  14.161 +			</binding>
  14.162 +		</result>
  14.163 +	</results>
  14.164 +</sparql>
  14.165 \ 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/TemporalRelations/equalsPeriod.rq	Fri Apr 26 15:03:21 2013 +0300
    15.3 @@ -0,0 +1,9 @@
    15.4 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
    15.5 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
    15.6 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
    15.7 +
    15.8 +SELECT distinct ?x1 ?x2 
    15.9 +			WHERE { 
   15.10 +				?x1 ?y1 ?z1 ?t1 .
   15.11 +				?x2 ?y2 ?z2 ?t2 .
   15.12 +				FILTER(strdf:equalsPeriod(?t1, ?t2) && str(?x1) < str(?x2)).}
   15.13 \ 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/TemporalRelations/equalsPeriod.srx	Fri Apr 26 15:03:21 2013 +0300
    16.3 @@ -0,0 +1,121 @@
    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='x1'/>
    16.8 +		<variable name='x2'/>
    16.9 +	</head>
   16.10 +	<results>
   16.11 +		<result>
   16.12 +			<binding name='x2'>
   16.13 +				<uri>http://example.org/item5</uri>
   16.14 +			</binding>
   16.15 +			<binding name='x1'>
   16.16 +				<uri>http://example.org/item5</uri>
   16.17 +			</binding>
   16.18 +		</result>
   16.19 +		<result>
   16.20 +			<binding name='x2'>
   16.21 +				<uri>http://example.org/item2</uri>
   16.22 +			</binding>
   16.23 +			<binding name='x1'>
   16.24 +				<uri>http://example.org/item1</uri>
   16.25 +			</binding>
   16.26 +		</result>
   16.27 +		<result>
   16.28 +			<binding name='x2'>
   16.29 +				<uri>http://example.org/item1</uri>
   16.30 +			</binding>
   16.31 +			<binding name='x1'>
   16.32 +				<uri>http://example.org/item1</uri>
   16.33 +			</binding>
   16.34 +		</result>
   16.35 +		<result>
   16.36 +			<binding name='x2'>
   16.37 +				<uri>http://example.org/item3</uri>
   16.38 +			</binding>
   16.39 +			<binding name='x1'>
   16.40 +				<uri>http://example.org/item1</uri>
   16.41 +			</binding>
   16.42 +		</result>
   16.43 +		<result>
   16.44 +			<binding name='x2'>
   16.45 +				<uri>http://example.org/item7</uri>
   16.46 +			</binding>
   16.47 +			<binding name='x1'>
   16.48 +				<uri>http://example.org/item7</uri>
   16.49 +			</binding>
   16.50 +		</result>
   16.51 +		<result>
   16.52 +			<binding name='x2'>
   16.53 +				<uri>http://example.org/item3</uri>
   16.54 +			</binding>
   16.55 +			<binding name='x1'>
   16.56 +				<uri>http://example.org/item2</uri>
   16.57 +			</binding>
   16.58 +		</result>
   16.59 +		<result>
   16.60 +			<binding name='x2'>
   16.61 +				<uri>http://example.org/item1</uri>
   16.62 +			</binding>
   16.63 +			<binding name='x1'>
   16.64 +				<uri>http://example.org/item2</uri>
   16.65 +			</binding>
   16.66 +		</result>
   16.67 +		<result>
   16.68 +			<binding name='x2'>
   16.69 +				<uri>http://example.org/item6</uri>
   16.70 +			</binding>
   16.71 +			<binding name='x1'>
   16.72 +				<uri>http://example.org/item6</uri>
   16.73 +			</binding>
   16.74 +		</result>
   16.75 +		<result>
   16.76 +			<binding name='x2'>
   16.77 +				<uri>http://example.org/item8</uri>
   16.78 +			</binding>
   16.79 +			<binding name='x1'>
   16.80 +				<uri>http://example.org/item8</uri>
   16.81 +			</binding>
   16.82 +		</result>
   16.83 +		<result>
   16.84 +			<binding name='x2'>
   16.85 +				<uri>http://example.org/item2</uri>
   16.86 +			</binding>
   16.87 +			<binding name='x1'>
   16.88 +				<uri>http://example.org/item3</uri>
   16.89 +			</binding>
   16.90 +		</result>
   16.91 +		<result>
   16.92 +			<binding name='x2'>
   16.93 +				<uri>http://example.org/item4</uri>
   16.94 +			</binding>
   16.95 +			<binding name='x1'>
   16.96 +				<uri>http://example.org/item4</uri>
   16.97 +			</binding>
   16.98 +		</result>
   16.99 +		<result>
  16.100 +			<binding name='x2'>
  16.101 +				<uri>http://example.org/item1</uri>
  16.102 +			</binding>
  16.103 +			<binding name='x1'>
  16.104 +				<uri>http://example.org/item3</uri>
  16.105 +			</binding>
  16.106 +		</result>
  16.107 +		<result>
  16.108 +			<binding name='x2'>
  16.109 +				<uri>http://example.org/item3</uri>
  16.110 +			</binding>
  16.111 +			<binding name='x1'>
  16.112 +				<uri>http://example.org/item3</uri>
  16.113 +			</binding>
  16.114 +		</result>
  16.115 +		<result>
  16.116 +			<binding name='x2'>
  16.117 +				<uri>http://example.org/item2</uri>
  16.118 +			</binding>
  16.119 +			<binding name='x1'>
  16.120 +				<uri>http://example.org/item2</uri>
  16.121 +			</binding>
  16.122 +		</result>
  16.123 +	</results>
  16.124 +</sparql>
  16.125 \ 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/TemporalRelations/finishes.rq	Fri Apr 26 15:03:21 2013 +0300
    17.3 @@ -0,0 +1,9 @@
    17.4 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
    17.5 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
    17.6 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
    17.7 +
    17.8 +SELECT distinct ?x1 ?x2 
    17.9 +			WHERE { 
   17.10 +				?x1 ?y1 ?z1 ?t1 .
   17.11 +				?x2 ?y2 ?z2 ?t2 .
   17.12 +				FILTER(strdf:finishes(?t1, ?t2) && str(?x1) < str(?x2)).}
   17.13 \ No newline at end of file
    18.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalRelations/finishes.srx	Fri Apr 26 15:03:21 2013 +0300
    18.3 @@ -0,0 +1,17 @@
    18.4 +<?xml version='1.0' encoding='UTF-8'?>
    18.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
    18.6 +	<head>
    18.7 +		<variable name='x1'/>
    18.8 +		<variable name='x2'/>
    18.9 +	</head>
   18.10 +	<results>
   18.11 +		<result>
   18.12 +			<binding name='x2'>
   18.13 +				<uri>http://example.org/item2</uri>
   18.14 +			</binding>
   18.15 +			<binding name='x1'>
   18.16 +				<uri>http://example.org/item8</uri>
   18.17 +			</binding>
   18.18 +		</result>
   18.19 +	</results>
   18.20 +</sparql>
   18.21 \ No newline at end of file
    19.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    19.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalRelations/meets.rq	Fri Apr 26 15:03:21 2013 +0300
    19.3 @@ -0,0 +1,9 @@
    19.4 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
    19.5 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
    19.6 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
    19.7 +
    19.8 +SELECT distinct ?x1 ?x2 
    19.9 +			WHERE { 
   19.10 +				?x1 ?y1 ?z1 ?t1 .
   19.11 +				?x2 ?y2 ?z2 ?t2 .
   19.12 +				FILTER(strdf:meets(?t1, ?t2) && str(?x1) < str(?x2)).}
   19.13 \ No newline at end of file
    20.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    20.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalRelations/meets.srx	Fri Apr 26 15:03:21 2013 +0300
    20.3 @@ -0,0 +1,57 @@
    20.4 +<?xml version='1.0' encoding='UTF-8'?>
    20.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
    20.6 +	<head>
    20.7 +		<variable name='x1'/>
    20.8 +		<variable name='x2'/>
    20.9 +	</head>
   20.10 +	<results>
   20.11 +		<result>
   20.12 +			<binding name='x2'>
   20.13 +				<uri>http://example.org/item5</uri>
   20.14 +			</binding>
   20.15 +			<binding name='x1'>
   20.16 +				<uri>http://example.org/item5</uri>
   20.17 +			</binding>
   20.18 +		</result>
   20.19 +		<result>
   20.20 +			<binding name='x2'>
   20.21 +				<uri>http://example.org/item7</uri>
   20.22 +			</binding>
   20.23 +			<binding name='x1'>
   20.24 +				<uri>http://example.org/item1</uri>
   20.25 +			</binding>
   20.26 +		</result>
   20.27 +		<result>
   20.28 +			<binding name='x2'>
   20.29 +				<uri>http://example.org/item6</uri>
   20.30 +			</binding>
   20.31 +			<binding name='x1'>
   20.32 +				<uri>http://example.org/item6</uri>
   20.33 +			</binding>
   20.34 +		</result>
   20.35 +		<result>
   20.36 +			<binding name='x2'>
   20.37 +				<uri>http://example.org/item7</uri>
   20.38 +			</binding>
   20.39 +			<binding name='x1'>
   20.40 +				<uri>http://example.org/item2</uri>
   20.41 +			</binding>
   20.42 +		</result>
   20.43 +		<result>
   20.44 +			<binding name='x2'>
   20.45 +				<uri>http://example.org/item4</uri>
   20.46 +			</binding>
   20.47 +			<binding name='x1'>
   20.48 +				<uri>http://example.org/item4</uri>
   20.49 +			</binding>
   20.50 +		</result>
   20.51 +		<result>
   20.52 +			<binding name='x2'>
   20.53 +				<uri>http://example.org/item7</uri>
   20.54 +			</binding>
   20.55 +			<binding name='x1'>
   20.56 +				<uri>http://example.org/item3</uri>
   20.57 +			</binding>
   20.58 +		</result>
   20.59 +	</results>
   20.60 +</sparql>
   20.61 \ No newline at end of file
    21.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    21.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalRelations/nequalsPeriod.rq	Fri Apr 26 15:03:21 2013 +0300
    21.3 @@ -0,0 +1,9 @@
    21.4 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
    21.5 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
    21.6 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
    21.7 +
    21.8 +SELECT distinct ?x1 ?x2 
    21.9 +			WHERE { 
   21.10 +				?x1 ?y1 ?z1 ?t1 .
   21.11 +				?x2 ?y2 ?z2 ?t2 .
   21.12 +				FILTER(strdf:nequalsPeriod(?t1, ?t2) && str(?x1) < str(?x2)).}
   21.13 \ No newline at end of file
    22.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    22.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalRelations/nequalsPeriod.srx	Fri Apr 26 15:03:21 2013 +0300
    22.3 @@ -0,0 +1,473 @@
    22.4 +<?xml version='1.0' encoding='UTF-8'?>
    22.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
    22.6 +	<head>
    22.7 +		<variable name='x1'/>
    22.8 +		<variable name='x2'/>
    22.9 +	</head>
   22.10 +	<results>
   22.11 +		<result>
   22.12 +			<binding name='x2'>
   22.13 +				<uri>http://example.org/item8</uri>
   22.14 +			</binding>
   22.15 +			<binding name='x1'>
   22.16 +				<uri>http://example.org/item7</uri>
   22.17 +			</binding>
   22.18 +		</result>
   22.19 +		<result>
   22.20 +			<binding name='x2'>
   22.21 +				<uri>http://example.org/item7</uri>
   22.22 +			</binding>
   22.23 +			<binding name='x1'>
   22.24 +				<uri>http://example.org/item6</uri>
   22.25 +			</binding>
   22.26 +		</result>
   22.27 +		<result>
   22.28 +			<binding name='x2'>
   22.29 +				<uri>http://example.org/item8</uri>
   22.30 +			</binding>
   22.31 +			<binding name='x1'>
   22.32 +				<uri>http://example.org/item1</uri>
   22.33 +			</binding>
   22.34 +		</result>
   22.35 +		<result>
   22.36 +			<binding name='x2'>
   22.37 +				<uri>http://example.org/item2</uri>
   22.38 +			</binding>
   22.39 +			<binding name='x1'>
   22.40 +				<uri>http://example.org/item4</uri>
   22.41 +			</binding>
   22.42 +		</result>
   22.43 +		<result>
   22.44 +			<binding name='x2'>
   22.45 +				<uri>http://example.org/item1</uri>
   22.46 +			</binding>
   22.47 +			<binding name='x1'>
   22.48 +				<uri>http://example.org/item5</uri>
   22.49 +			</binding>
   22.50 +		</result>
   22.51 +		<result>
   22.52 +			<binding name='x2'>
   22.53 +				<uri>http://example.org/item3</uri>
   22.54 +			</binding>
   22.55 +			<binding name='x1'>
   22.56 +				<uri>http://example.org/item5</uri>
   22.57 +			</binding>
   22.58 +		</result>
   22.59 +		<result>
   22.60 +			<binding name='x2'>
   22.61 +				<uri>http://example.org/item8</uri>
   22.62 +			</binding>
   22.63 +			<binding name='x1'>
   22.64 +				<uri>http://example.org/item4</uri>
   22.65 +			</binding>
   22.66 +		</result>
   22.67 +		<result>
   22.68 +			<binding name='x2'>
   22.69 +				<uri>http://example.org/item6</uri>
   22.70 +			</binding>
   22.71 +			<binding name='x1'>
   22.72 +				<uri>http://example.org/item2</uri>
   22.73 +			</binding>
   22.74 +		</result>
   22.75 +		<result>
   22.76 +			<binding name='x2'>
   22.77 +				<uri>http://example.org/item7</uri>
   22.78 +			</binding>
   22.79 +			<binding name='x1'>
   22.80 +				<uri>http://example.org/item5</uri>
   22.81 +			</binding>
   22.82 +		</result>
   22.83 +		<result>
   22.84 +			<binding name='x2'>
   22.85 +				<uri>http://example.org/item2</uri>
   22.86 +			</binding>
   22.87 +			<binding name='x1'>
   22.88 +				<uri>http://example.org/item7</uri>
   22.89 +			</binding>
   22.90 +		</result>
   22.91 +		<result>
   22.92 +			<binding name='x2'>
   22.93 +				<uri>http://example.org/item5</uri>
   22.94 +			</binding>
   22.95 +			<binding name='x1'>
   22.96 +				<uri>http://example.org/item6</uri>
   22.97 +			</binding>
   22.98 +		</result>
   22.99 +		<result>
  22.100 +			<binding name='x2'>
  22.101 +				<uri>http://example.org/item3</uri>
  22.102 +			</binding>
  22.103 +			<binding name='x1'>
  22.104 +				<uri>http://example.org/item6</uri>
  22.105 +			</binding>
  22.106 +		</result>
  22.107 +		<result>
  22.108 +			<binding name='x2'>
  22.109 +				<uri>http://example.org/item2</uri>
  22.110 +			</binding>
  22.111 +			<binding name='x1'>
  22.112 +				<uri>http://example.org/item1</uri>
  22.113 +			</binding>
  22.114 +		</result>
  22.115 +		<result>
  22.116 +			<binding name='x2'>
  22.117 +				<uri>http://example.org/item4</uri>
  22.118 +			</binding>
  22.119 +			<binding name='x1'>
  22.120 +				<uri>http://example.org/item2</uri>
  22.121 +			</binding>
  22.122 +		</result>
  22.123 +		<result>
  22.124 +			<binding name='x2'>
  22.125 +				<uri>http://example.org/item1</uri>
  22.126 +			</binding>
  22.127 +			<binding name='x1'>
  22.128 +				<uri>http://example.org/item6</uri>
  22.129 +			</binding>
  22.130 +		</result>
  22.131 +		<result>
  22.132 +			<binding name='x2'>
  22.133 +				<uri>http://example.org/item7</uri>
  22.134 +			</binding>
  22.135 +			<binding name='x1'>
  22.136 +				<uri>http://example.org/item4</uri>
  22.137 +			</binding>
  22.138 +		</result>
  22.139 +		<result>
  22.140 +			<binding name='x2'>
  22.141 +				<uri>http://example.org/item8</uri>
  22.142 +			</binding>
  22.143 +			<binding name='x1'>
  22.144 +				<uri>http://example.org/item5</uri>
  22.145 +			</binding>
  22.146 +		</result>
  22.147 +		<result>
  22.148 +			<binding name='x2'>
  22.149 +				<uri>http://example.org/item3</uri>
  22.150 +			</binding>
  22.151 +			<binding name='x1'>
  22.152 +				<uri>http://example.org/item7</uri>
  22.153 +			</binding>
  22.154 +		</result>
  22.155 +		<result>
  22.156 +			<binding name='x2'>
  22.157 +				<uri>http://example.org/item1</uri>
  22.158 +			</binding>
  22.159 +			<binding name='x1'>
  22.160 +				<uri>http://example.org/item1</uri>
  22.161 +			</binding>
  22.162 +		</result>
  22.163 +		<result>
  22.164 +			<binding name='x2'>
  22.165 +				<uri>http://example.org/item5</uri>
  22.166 +			</binding>
  22.167 +			<binding name='x1'>
  22.168 +				<uri>http://example.org/item7</uri>
  22.169 +			</binding>
  22.170 +		</result>
  22.171 +		<result>
  22.172 +			<binding name='x2'>
  22.173 +				<uri>http://example.org/item2</uri>
  22.174 +			</binding>
  22.175 +			<binding name='x1'>
  22.176 +				<uri>http://example.org/item6</uri>
  22.177 +			</binding>
  22.178 +		</result>
  22.179 +		<result>
  22.180 +			<binding name='x2'>
  22.181 +				<uri>http://example.org/item5</uri>
  22.182 +			</binding>
  22.183 +			<binding name='x1'>
  22.184 +				<uri>http://example.org/item1</uri>
  22.185 +			</binding>
  22.186 +		</result>
  22.187 +		<result>
  22.188 +			<binding name='x2'>
  22.189 +				<uri>http://example.org/item1</uri>
  22.190 +			</binding>
  22.191 +			<binding name='x1'>
  22.192 +				<uri>http://example.org/item7</uri>
  22.193 +			</binding>
  22.194 +		</result>
  22.195 +		<result>
  22.196 +			<binding name='x2'>
  22.197 +				<uri>http://example.org/item3</uri>
  22.198 +			</binding>
  22.199 +			<binding name='x1'>
  22.200 +				<uri>http://example.org/item1</uri>
  22.201 +			</binding>
  22.202 +		</result>
  22.203 +		<result>
  22.204 +			<binding name='x2'>
  22.205 +				<uri>http://example.org/item4</uri>
  22.206 +			</binding>
  22.207 +			<binding name='x1'>
  22.208 +				<uri>http://example.org/item3</uri>
  22.209 +			</binding>
  22.210 +		</result>
  22.211 +		<result>
  22.212 +			<binding name='x2'>
  22.213 +				<uri>http://example.org/item8</uri>
  22.214 +			</binding>
  22.215 +			<binding name='x1'>
  22.216 +				<uri>http://example.org/item6</uri>
  22.217 +			</binding>
  22.218 +		</result>
  22.219 +		<result>
  22.220 +			<binding name='x2'>
  22.221 +				<uri>http://example.org/item7</uri>
  22.222 +			</binding>
  22.223 +			<binding name='x1'>
  22.224 +				<uri>http://example.org/item1</uri>
  22.225 +			</binding>
  22.226 +		</result>
  22.227 +		<result>
  22.228 +			<binding name='x2'>
  22.229 +				<uri>http://example.org/item6</uri>
  22.230 +			</binding>
  22.231 +			<binding name='x1'>
  22.232 +				<uri>http://example.org/item8</uri>
  22.233 +			</binding>
  22.234 +		</result>
  22.235 +		<result>
  22.236 +			<binding name='x2'>
  22.237 +				<uri>http://example.org/item4</uri>
  22.238 +			</binding>
  22.239 +			<binding name='x1'>
  22.240 +				<uri>http://example.org/item8</uri>
  22.241 +			</binding>
  22.242 +		</result>
  22.243 +		<result>
  22.244 +			<binding name='x2'>
  22.245 +				<uri>http://example.org/item3</uri>
  22.246 +			</binding>
  22.247 +			<binding name='x1'>
  22.248 +				<uri>http://example.org/item4</uri>
  22.249 +			</binding>
  22.250 +		</result>
  22.251 +		<result>
  22.252 +			<binding name='x2'>
  22.253 +				<uri>http://example.org/item5</uri>
  22.254 +			</binding>
  22.255 +			<binding name='x1'>
  22.256 +				<uri>http://example.org/item4</uri>
  22.257 +			</binding>
  22.258 +		</result>
  22.259 +		<result>
  22.260 +			<binding name='x2'>
  22.261 +				<uri>http://example.org/item1</uri>
  22.262 +			</binding>
  22.263 +			<binding name='x1'>
  22.264 +				<uri>http://example.org/item4</uri>
  22.265 +			</binding>
  22.266 +		</result>
  22.267 +		<result>
  22.268 +			<binding name='x2'>
  22.269 +				<uri>http://example.org/item6</uri>
  22.270 +			</binding>
  22.271 +			<binding name='x1'>
  22.272 +				<uri>http://example.org/item3</uri>
  22.273 +			</binding>
  22.274 +		</result>
  22.275 +		<result>
  22.276 +			<binding name='x2'>
  22.277 +				<uri>http://example.org/item2</uri>
  22.278 +			</binding>
  22.279 +			<binding name='x1'>
  22.280 +				<uri>http://example.org/item5</uri>
  22.281 +			</binding>
  22.282 +		</result>
  22.283 +		<result>
  22.284 +			<binding name='x2'>
  22.285 +				<uri>http://example.org/item5</uri>
  22.286 +			</binding>
  22.287 +			<binding name='x1'>
  22.288 +				<uri>http://example.org/item2</uri>
  22.289 +			</binding>
  22.290 +		</result>
  22.291 +		<result>
  22.292 +			<binding name='x2'>
  22.293 +				<uri>http://example.org/item3</uri>
  22.294 +			</binding>
  22.295 +			<binding name='x1'>
  22.296 +				<uri>http://example.org/item2</uri>
  22.297 +			</binding>
  22.298 +		</result>
  22.299 +		<result>
  22.300 +			<binding name='x2'>
  22.301 +				<uri>http://example.org/item8</uri>
  22.302 +			</binding>
  22.303 +			<binding name='x1'>
  22.304 +				<uri>http://example.org/item3</uri>
  22.305 +			</binding>
  22.306 +		</result>
  22.307 +		<result>
  22.308 +			<binding name='x2'>
  22.309 +				<uri>http://example.org/item1</uri>
  22.310 +			</binding>
  22.311 +			<binding name='x1'>
  22.312 +				<uri>http://example.org/item2</uri>
  22.313 +			</binding>
  22.314 +		</result>
  22.315 +		<result>
  22.316 +			<binding name='x2'>
  22.317 +				<uri>http://example.org/item4</uri>
  22.318 +			</binding>
  22.319 +			<binding name='x1'>
  22.320 +				<uri>http://example.org/item6</uri>
  22.321 +			</binding>
  22.322 +		</result>
  22.323 +		<result>
  22.324 +			<binding name='x2'>
  22.325 +				<uri>http://example.org/item4</uri>
  22.326 +			</binding>
  22.327 +			<binding name='x1'>
  22.328 +				<uri>http://example.org/item5</uri>
  22.329 +			</binding>
  22.330 +		</result>
  22.331 +		<result>
  22.332 +			<binding name='x2'>
  22.333 +				<uri>http://example.org/item2</uri>
  22.334 +			</binding>
  22.335 +			<binding name='x1'>
  22.336 +				<uri>http://example.org/item8</uri>
  22.337 +			</binding>
  22.338 +		</result>
  22.339 +		<result>
  22.340 +			<binding name='x2'>
  22.341 +				<uri>http://example.org/item7</uri>
  22.342 +			</binding>
  22.343 +			<binding name='x1'>
  22.344 +				<uri>http://example.org/item2</uri>
  22.345 +			</binding>
  22.346 +		</result>
  22.347 +		<result>
  22.348 +			<binding name='x2'>
  22.349 +				<uri>http://example.org/item6</uri>
  22.350 +			</binding>
  22.351 +			<binding name='x1'>
  22.352 +				<uri>http://example.org/item5</uri>
  22.353 +			</binding>
  22.354 +		</result>
  22.355 +		<result>
  22.356 +			<binding name='x2'>
  22.357 +				<uri>http://example.org/item2</uri>
  22.358 +			</binding>
  22.359 +			<binding name='x1'>
  22.360 +				<uri>http://example.org/item3</uri>
  22.361 +			</binding>
  22.362 +		</result>
  22.363 +		<result>
  22.364 +			<binding name='x2'>
  22.365 +				<uri>http://example.org/item1</uri>
  22.366 +			</binding>
  22.367 +			<binding name='x1'>
  22.368 +				<uri>http://example.org/item8</uri>
  22.369 +			</binding>
  22.370 +		</result>
  22.371 +		<result>
  22.372 +			<binding name='x2'>
  22.373 +				<uri>http://example.org/item3</uri>
  22.374 +			</binding>
  22.375 +			<binding name='x1'>
  22.376 +				<uri>http://example.org/item8</uri>
  22.377 +			</binding>
  22.378 +		</result>
  22.379 +		<result>
  22.380 +			<binding name='x2'>
  22.381 +				<uri>http://example.org/item5</uri>
  22.382 +			</binding>
  22.383 +			<binding name='x1'>
  22.384 +				<uri>http://example.org/item8</uri>
  22.385 +			</binding>
  22.386 +		</result>
  22.387 +		<result>
  22.388 +			<binding name='x2'>
  22.389 +				<uri>http://example.org/item6</uri>
  22.390 +			</binding>
  22.391 +			<binding name='x1'>
  22.392 +				<uri>http://example.org/item4</uri>
  22.393 +			</binding>
  22.394 +		</result>
  22.395 +		<result>
  22.396 +			<binding name='x2'>
  22.397 +				<uri>http://example.org/item1</uri>
  22.398 +			</binding>
  22.399 +			<binding name='x1'>
  22.400 +				<uri>http://example.org/item3</uri>
  22.401 +			</binding>
  22.402 +		</result>
  22.403 +		<result>
  22.404 +			<binding name='x2'>
  22.405 +				<uri>http://example.org/item8</uri>
  22.406 +			</binding>
  22.407 +			<binding name='x1'>
  22.408 +				<uri>http://example.org/item2</uri>
  22.409 +			</binding>
  22.410 +		</result>
  22.411 +		<result>
  22.412 +			<binding name='x2'>
  22.413 +				<uri>http://example.org/item5</uri>
  22.414 +			</binding>
  22.415 +			<binding name='x1'>
  22.416 +				<uri>http://example.org/item3</uri>
  22.417 +			</binding>
  22.418 +		</result>
  22.419 +		<result>
  22.420 +			<binding name='x2'>
  22.421 +				<uri>http://example.org/item4</uri>
  22.422 +			</binding>
  22.423 +			<binding name='x1'>
  22.424 +				<uri>http://example.org/item1</uri>
  22.425 +			</binding>
  22.426 +		</result>
  22.427 +		<result>
  22.428 +			<binding name='x2'>
  22.429 +				<uri>http://example.org/item2</uri>
  22.430 +			</binding>
  22.431 +			<binding name='x1'>
  22.432 +				<uri>http://example.org/item2</uri>
  22.433 +			</binding>
  22.434 +		</result>
  22.435 +		<result>
  22.436 +			<binding name='x2'>
  22.437 +				<uri>http://example.org/item7</uri>
  22.438 +			</binding>
  22.439 +			<binding name='x1'>
  22.440 +				<uri>http://example.org/item3</uri>
  22.441 +			</binding>
  22.442 +		</result>
  22.443 +		<result>
  22.444 +			<binding name='x2'>
  22.445 +				<uri>http://example.org/item4</uri>
  22.446 +			</binding>
  22.447 +			<binding name='x1'>
  22.448 +				<uri>http://example.org/item7</uri>
  22.449 +			</binding>
  22.450 +		</result>
  22.451 +		<result>
  22.452 +			<binding name='x2'>
  22.453 +				<uri>http://example.org/item6</uri>
  22.454 +			</binding>
  22.455 +			<binding name='x1'>
  22.456 +				<uri>http://example.org/item7</uri>
  22.457 +			</binding>
  22.458 +		</result>
  22.459 +		<result>
  22.460 +			<binding name='x2'>
  22.461 +				<uri>http://example.org/item6</uri>
  22.462 +			</binding>
  22.463 +			<binding name='x1'>
  22.464 +				<uri>http://example.org/item1</uri>
  22.465 +			</binding>
  22.466 +		</result>
  22.467 +		<result>
  22.468 +			<binding name='x2'>
  22.469 +				<uri>http://example.org/item7</uri>
  22.470 +			</binding>
  22.471 +			<binding name='x1'>
  22.472 +				<uri>http://example.org/item8</uri>
  22.473 +			</binding>
  22.474 +		</result>
  22.475 +	</results>
  22.476 +</sparql>
  22.477 \ No newline at end of file
    23.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    23.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalRelations/overleft.rq	Fri Apr 26 15:03:21 2013 +0300
    23.3 @@ -0,0 +1,9 @@
    23.4 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
    23.5 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
    23.6 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
    23.7 +
    23.8 +SELECT distinct ?x1 ?x2 
    23.9 +			WHERE { 
   23.10 +				?x1 ?y1 ?z1 ?t1 .
   23.11 +				?x2 ?y2 ?z2 ?t2 .
   23.12 +				FILTER(strdf:overleft(?t1, ?t2) && str(?x1) < str(?x2)).}
   23.13 \ No newline at end of file
    24.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    24.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalRelations/overleft.srx	Fri Apr 26 15:03:21 2013 +0300
    24.3 @@ -0,0 +1,233 @@
    24.4 +<?xml version='1.0' encoding='UTF-8'?>
    24.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
    24.6 +	<head>
    24.7 +		<variable name='x1'/>
    24.8 +		<variable name='x2'/>
    24.9 +	</head>
   24.10 +	<results>
   24.11 +		<result>
   24.12 +			<binding name='x2'>
   24.13 +				<uri>http://example.org/item2</uri>
   24.14 +			</binding>
   24.15 +			<binding name='x1'>
   24.16 +				<uri>http://example.org/item4</uri>
   24.17 +			</binding>
   24.18 +		</result>
   24.19 +		<result>
   24.20 +			<binding name='x2'>
   24.21 +				<uri>http://example.org/item5</uri>
   24.22 +			</binding>
   24.23 +			<binding name='x1'>
   24.24 +				<uri>http://example.org/item5</uri>
   24.25 +			</binding>
   24.26 +		</result>
   24.27 +		<result>
   24.28 +			<binding name='x2'>
   24.29 +				<uri>http://example.org/item6</uri>
   24.30 +			</binding>
   24.31 +			<binding name='x1'>
   24.32 +				<uri>http://example.org/item2</uri>
   24.33 +			</binding>
   24.34 +		</result>
   24.35 +		<result>
   24.36 +			<binding name='x2'>
   24.37 +				<uri>http://example.org/item2</uri>
   24.38 +			</binding>
   24.39 +			<binding name='x1'>
   24.40 +				<uri>http://example.org/item7</uri>
   24.41 +			</binding>
   24.42 +		</result>
   24.43 +		<result>
   24.44 +			<binding name='x2'>
   24.45 +				<uri>http://example.org/item2</uri>
   24.46 +			</binding>
   24.47 +			<binding name='x1'>
   24.48 +				<uri>http://example.org/item1</uri>
   24.49 +			</binding>
   24.50 +		</result>
   24.51 +		<result>
   24.52 +			<binding name='x2'>
   24.53 +				<uri>http://example.org/item4</uri>
   24.54 +			</binding>
   24.55 +			<binding name='x1'>
   24.56 +				<uri>http://example.org/item2</uri>
   24.57 +			</binding>
   24.58 +		</result>
   24.59 +		<result>
   24.60 +			<binding name='x2'>
   24.61 +				<uri>http://example.org/item3</uri>
   24.62 +			</binding>
   24.63 +			<binding name='x1'>
   24.64 +				<uri>http://example.org/item7</uri>
   24.65 +			</binding>
   24.66 +		</result>
   24.67 +		<result>
   24.68 +			<binding name='x2'>
   24.69 +				<uri>http://example.org/item1</uri>
   24.70 +			</binding>
   24.71 +			<binding name='x1'>
   24.72 +				<uri>http://example.org/item1</uri>
   24.73 +			</binding>
   24.74 +		</result>
   24.75 +		<result>
   24.76 +			<binding name='x2'>
   24.77 +				<uri>http://example.org/item2</uri>
   24.78 +			</binding>
   24.79 +			<binding name='x1'>
   24.80 +				<uri>http://example.org/item6</uri>
   24.81 +			</binding>
   24.82 +		</result>
   24.83 +		<result>
   24.84 +			<binding name='x2'>
   24.85 +				<uri>http://example.org/item1</uri>
   24.86 +			</binding>
   24.87 +			<binding name='x1'>
   24.88 +				<uri>http://example.org/item7</uri>
   24.89 +			</binding>
   24.90 +		</result>
   24.91 +		<result>
   24.92 +			<binding name='x2'>
   24.93 +				<uri>http://example.org/item3</uri>
   24.94 +			</binding>
   24.95 +			<binding name='x1'>
   24.96 +				<uri>http://example.org/item1</uri>
   24.97 +			</binding>
   24.98 +		</result>
   24.99 +		<result>
  24.100 +			<binding name='x2'>
  24.101 +				<uri>http://example.org/item7</uri>
  24.102 +			</binding>
  24.103 +			<binding name='x1'>
  24.104 +				<uri>http://example.org/item7</uri>
  24.105 +			</binding>
  24.106 +		</result>
  24.107 +		<result>
  24.108 +			<binding name='x2'>
  24.109 +				<uri>http://example.org/item7</uri>
  24.110 +			</binding>
  24.111 +			<binding name='x1'>
  24.112 +				<uri>http://example.org/item1</uri>
  24.113 +			</binding>
  24.114 +		</result>
  24.115 +		<result>
  24.116 +			<binding name='x2'>
  24.117 +				<uri>http://example.org/item2</uri>
  24.118 +			</binding>
  24.119 +			<binding name='x1'>
  24.120 +				<uri>http://example.org/item5</uri>
  24.121 +			</binding>
  24.122 +		</result>
  24.123 +		<result>
  24.124 +			<binding name='x2'>
  24.125 +				<uri>http://example.org/item5</uri>
  24.126 +			</binding>
  24.127 +			<binding name='x1'>
  24.128 +				<uri>http://example.org/item2</uri>
  24.129 +			</binding>
  24.130 +		</result>
  24.131 +		<result>
  24.132 +			<binding name='x2'>
  24.133 +				<uri>http://example.org/item3</uri>
  24.134 +			</binding>
  24.135 +			<binding name='x1'>
  24.136 +				<uri>http://example.org/item2</uri>
  24.137 +			</binding>
  24.138 +		</result>
  24.139 +		<result>
  24.140 +			<binding name='x2'>
  24.141 +				<uri>http://example.org/item1</uri>
  24.142 +			</binding>
  24.143 +			<binding name='x1'>
  24.144 +				<uri>http://example.org/item2</uri>
  24.145 +			</binding>
  24.146 +		</result>
  24.147 +		<result>
  24.148 +			<binding name='x2'>
  24.149 +				<uri>http://example.org/item6</uri>
  24.150 +			</binding>
  24.151 +			<binding name='x1'>
  24.152 +				<uri>http://example.org/item6</uri>
  24.153 +			</binding>
  24.154 +		</result>
  24.155 +		<result>
  24.156 +			<binding name='x2'>
  24.157 +				<uri>http://example.org/item8</uri>
  24.158 +			</binding>
  24.159 +			<binding name='x1'>
  24.160 +				<uri>http://example.org/item8</uri>
  24.161 +			</binding>
  24.162 +		</result>
  24.163 +		<result>
  24.164 +			<binding name='x2'>
  24.165 +				<uri>http://example.org/item2</uri>
  24.166 +			</binding>
  24.167 +			<binding name='x1'>
  24.168 +				<uri>http://example.org/item8</uri>
  24.169 +			</binding>
  24.170 +		</result>
  24.171 +		<result>
  24.172 +			<binding name='x2'>
  24.173 +				<uri>http://example.org/item7</uri>
  24.174 +			</binding>
  24.175 +			<binding name='x1'>
  24.176 +				<uri>http://example.org/item2</uri>
  24.177 +			</binding>
  24.178 +		</result>
  24.179 +		<result>
  24.180 +			<binding name='x2'>
  24.181 +				<uri>http://example.org/item2</uri>
  24.182 +			</binding>
  24.183 +			<binding name='x1'>
  24.184 +				<uri>http://example.org/item3</uri>
  24.185 +			</binding>
  24.186 +		</result>
  24.187 +		<result>
  24.188 +			<binding name='x2'>
  24.189 +				<uri>http://example.org/item4</uri>
  24.190 +			</binding>
  24.191 +			<binding name='x1'>
  24.192 +				<uri>http://example.org/item4</uri>
  24.193 +			</binding>
  24.194 +		</result>
  24.195 +		<result>
  24.196 +			<binding name='x2'>
  24.197 +				<uri>http://example.org/item1</uri>
  24.198 +			</binding>
  24.199 +			<binding name='x1'>
  24.200 +				<uri>http://example.org/item3</uri>
  24.201 +			</binding>
  24.202 +		</result>
  24.203 +		<result>
  24.204 +			<binding name='x2'>
  24.205 +				<uri>http://example.org/item8</uri>
  24.206 +			</binding>
  24.207 +			<binding name='x1'>
  24.208 +				<uri>http://example.org/item2</uri>
  24.209 +			</binding>
  24.210 +		</result>
  24.211 +		<result>
  24.212 +			<binding name='x2'>
  24.213 +				<uri>http://example.org/item3</uri>
  24.214 +			</binding>
  24.215 +			<binding name='x1'>
  24.216 +				<uri>http://example.org/item3</uri>
  24.217 +			</binding>
  24.218 +		</result>
  24.219 +		<result>
  24.220 +			<binding name='x2'>
  24.221 +				<uri>http://example.org/item2</uri>
  24.222 +			</binding>
  24.223 +			<binding name='x1'>
  24.224 +				<uri>http://example.org/item2</uri>
  24.225 +			</binding>
  24.226 +		</result>
  24.227 +		<result>
  24.228 +			<binding name='x2'>
  24.229 +				<uri>http://example.org/item7</uri>
  24.230 +			</binding>
  24.231 +			<binding name='x1'>
  24.232 +				<uri>http://example.org/item3</uri>
  24.233 +			</binding>
  24.234 +		</result>
  24.235 +	</results>
  24.236 +</sparql>
  24.237 \ No newline at end of file
    25.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    25.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalRelations/overright.rq	Fri Apr 26 15:03:21 2013 +0300
    25.3 @@ -0,0 +1,9 @@
    25.4 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
    25.5 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
    25.6 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
    25.7 +
    25.8 +SELECT distinct ?x1 ?x2 
    25.9 +			WHERE { 
   25.10 +				?x1 ?y1 ?z1 ?t1 .
   25.11 +				?x2 ?y2 ?z2 ?t2 .
   25.12 +				FILTER(strdf:overright(?t1, ?t2) && str(?x1) < str(?x2)).}
   25.13 \ No newline at end of file
    26.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    26.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalRelations/overright.srx	Fri Apr 26 15:03:21 2013 +0300
    26.3 @@ -0,0 +1,345 @@
    26.4 +<?xml version='1.0' encoding='UTF-8'?>
    26.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
    26.6 +	<head>
    26.7 +		<variable name='x1'/>
    26.8 +		<variable name='x2'/>
    26.9 +	</head>
   26.10 +	<results>
   26.11 +		<result>
   26.12 +			<binding name='x2'>
   26.13 +				<uri>http://example.org/item2</uri>
   26.14 +			</binding>
   26.15 +			<binding name='x1'>
   26.16 +				<uri>http://example.org/item4</uri>
   26.17 +			</binding>
   26.18 +		</result>
   26.19 +		<result>
   26.20 +			<binding name='x2'>
   26.21 +				<uri>http://example.org/item5</uri>
   26.22 +			</binding>
   26.23 +			<binding name='x1'>
   26.24 +				<uri>http://example.org/item5</uri>
   26.25 +			</binding>
   26.26 +		</result>
   26.27 +		<result>
   26.28 +			<binding name='x2'>
   26.29 +				<uri>http://example.org/item6</uri>
   26.30 +			</binding>
   26.31 +			<binding name='x1'>
   26.32 +				<uri>http://example.org/item2</uri>
   26.33 +			</binding>
   26.34 +		</result>
   26.35 +		<result>
   26.36 +			<binding name='x2'>
   26.37 +				<uri>http://example.org/item2</uri>
   26.38 +			</binding>
   26.39 +			<binding name='x1'>
   26.40 +				<uri>http://example.org/item7</uri>
   26.41 +			</binding>
   26.42 +		</result>
   26.43 +		<result>
   26.44 +			<binding name='x2'>
   26.45 +				<uri>http://example.org/item5</uri>
   26.46 +			</binding>
   26.47 +			<binding name='x1'>
   26.48 +				<uri>http://example.org/item6</uri>
   26.49 +			</binding>
   26.50 +		</result>
   26.51 +		<result>
   26.52 +			<binding name='x2'>
   26.53 +				<uri>http://example.org/item2</uri>
   26.54 +			</binding>
   26.55 +			<binding name='x1'>
   26.56 +				<uri>http://example.org/item1</uri>
   26.57 +			</binding>
   26.58 +		</result>
   26.59 +		<result>
   26.60 +			<binding name='x2'>
   26.61 +				<uri>http://example.org/item4</uri>
   26.62 +			</binding>
   26.63 +			<binding name='x1'>
   26.64 +				<uri>http://example.org/item2</uri>
   26.65 +			</binding>
   26.66 +		</result>
   26.67 +		<result>
   26.68 +			<binding name='x2'>
   26.69 +				<uri>http://example.org/item3</uri>
   26.70 +			</binding>
   26.71 +			<binding name='x1'>
   26.72 +				<uri>http://example.org/item7</uri>
   26.73 +			</binding>
   26.74 +		</result>
   26.75 +		<result>
   26.76 +			<binding name='x2'>
   26.77 +				<uri>http://example.org/item1</uri>
   26.78 +			</binding>
   26.79 +			<binding name='x1'>
   26.80 +				<uri>http://example.org/item1</uri>
   26.81 +			</binding>
   26.82 +		</result>
   26.83 +		<result>
   26.84 +			<binding name='x2'>
   26.85 +				<uri>http://example.org/item5</uri>
   26.86 +			</binding>
   26.87 +			<binding name='x1'>
   26.88 +				<uri>http://example.org/item7</uri>
   26.89 +			</binding>
   26.90 +		</result>
   26.91 +		<result>
   26.92 +			<binding name='x2'>
   26.93 +				<uri>http://example.org/item2</uri>
   26.94 +			</binding>
   26.95 +			<binding name='x1'>
   26.96 +				<uri>http://example.org/item6</uri>
   26.97 +			</binding>
   26.98 +		</result>
   26.99 +		<result>
  26.100 +			<binding name='x2'>
  26.101 +				<uri>http://example.org/item5</uri>
  26.102 +			</binding>
  26.103 +			<binding name='x1'>
  26.104 +				<uri>http://example.org/item1</uri>
  26.105 +			</binding>
  26.106 +		</result>
  26.107 +		<result>
  26.108 +			<binding name='x2'>
  26.109 +				<uri>http://example.org/item1</uri>
  26.110 +			</binding>
  26.111 +			<binding name='x1'>
  26.112 +				<uri>http://example.org/item7</uri>
  26.113 +			</binding>
  26.114 +		</result>
  26.115 +		<result>
  26.116 +			<binding name='x2'>
  26.117 +				<uri>http://example.org/item3</uri>
  26.118 +			</binding>
  26.119 +			<binding name='x1'>
  26.120 +				<uri>http://example.org/item1</uri>
  26.121 +			</binding>
  26.122 +		</result>
  26.123 +		<result>
  26.124 +			<binding name='x2'>
  26.125 +				<uri>http://example.org/item4</uri>
  26.126 +			</binding>
  26.127 +			<binding name='x1'>
  26.128 +				<uri>http://example.org/item3</uri>
  26.129 +			</binding>
  26.130 +		</result>
  26.131 +		<result>
  26.132 +			<binding name='x2'>
  26.133 +				<uri>http://example.org/item7</uri>
  26.134 +			</binding>
  26.135 +			<binding name='x1'>
  26.136 +				<uri>http://example.org/item7</uri>
  26.137 +			</binding>
  26.138 +		</result>
  26.139 +		<result>
  26.140 +			<binding name='x2'>
  26.141 +				<uri>http://example.org/item6</uri>
  26.142 +			</binding>
  26.143 +			<binding name='x1'>
  26.144 +				<uri>http://example.org/item8</uri>
  26.145 +			</binding>
  26.146 +		</result>
  26.147 +		<result>
  26.148 +			<binding name='x2'>
  26.149 +				<uri>http://example.org/item4</uri>
  26.150 +			</binding>
  26.151 +			<binding name='x1'>
  26.152 +				<uri>http://example.org/item8</uri>
  26.153 +			</binding>
  26.154 +		</result>
  26.155 +		<result>
  26.156 +			<binding name='x2'>
  26.157 +				<uri>http://example.org/item6</uri>
  26.158 +			</binding>
  26.159 +			<binding name='x1'>
  26.160 +				<uri>http://example.org/item3</uri>
  26.161 +			</binding>
  26.162 +		</result>
  26.163 +		<result>
  26.164 +			<binding name='x2'>
  26.165 +				<uri>http://example.org/item2</uri>
  26.166 +			</binding>
  26.167 +			<binding name='x1'>
  26.168 +				<uri>http://example.org/item5</uri>
  26.169 +			</binding>
  26.170 +		</result>
  26.171 +		<result>
  26.172 +			<binding name='x2'>
  26.173 +				<uri>http://example.org/item5</uri>
  26.174 +			</binding>
  26.175 +			<binding name='x1'>
  26.176 +				<uri>http://example.org/item2</uri>
  26.177 +			</binding>
  26.178 +		</result>
  26.179 +		<result>
  26.180 +			<binding name='x2'>
  26.181 +				<uri>http://example.org/item3</uri>
  26.182 +			</binding>
  26.183 +			<binding name='x1'>
  26.184 +				<uri>http://example.org/item2</uri>
  26.185 +			</binding>
  26.186 +		</result>
  26.187 +		<result>
  26.188 +			<binding name='x2'>
  26.189 +				<uri>http://example.org/item1</uri>
  26.190 +			</binding>
  26.191 +			<binding name='x1'>
  26.192 +				<uri>http://example.org/item2</uri>
  26.193 +			</binding>
  26.194 +		</result>
  26.195 +		<result>
  26.196 +			<binding name='x2'>
  26.197 +				<uri>http://example.org/item4</uri>
  26.198 +			</binding>
  26.199 +			<binding name='x1'>
  26.200 +				<uri>http://example.org/item6</uri>
  26.201 +			</binding>
  26.202 +		</result>
  26.203 +		<result>
  26.204 +			<binding name='x2'>
  26.205 +				<uri>http://example.org/item6</uri>
  26.206 +			</binding>
  26.207 +			<binding name='x1'>
  26.208 +				<uri>http://example.org/item6</uri>
  26.209 +			</binding>
  26.210 +		</result>
  26.211 +		<result>
  26.212 +			<binding name='x2'>
  26.213 +				<uri>http://example.org/item8</uri>
  26.214 +			</binding>
  26.215 +			<binding name='x1'>
  26.216 +				<uri>http://example.org/item8</uri>
  26.217 +			</binding>
  26.218 +		</result>
  26.219 +		<result>
  26.220 +			<binding name='x2'>
  26.221 +				<uri>http://example.org/item4</uri>
  26.222 +			</binding>
  26.223 +			<binding name='x1'>
  26.224 +				<uri>http://example.org/item5</uri>
  26.225 +			</binding>
  26.226 +		</result>
  26.227 +		<result>
  26.228 +			<binding name='x2'>
  26.229 +				<uri>http://example.org/item2</uri>
  26.230 +			</binding>
  26.231 +			<binding name='x1'>
  26.232 +				<uri>http://example.org/item8</uri>
  26.233 +			</binding>
  26.234 +		</result>
  26.235 +		<result>
  26.236 +			<binding name='x2'>
  26.237 +				<uri>http://example.org/item2</uri>
  26.238 +			</binding>
  26.239 +			<binding name='x1'>
  26.240 +				<uri>http://example.org/item3</uri>
  26.241 +			</binding>
  26.242 +		</result>
  26.243 +		<result>
  26.244 +			<binding name='x2'>
  26.245 +				<uri>http://example.org/item1</uri>
  26.246 +			</binding>
  26.247 +			<binding name='x1'>
  26.248 +				<uri>http://example.org/item8</uri>
  26.249 +			</binding>
  26.250 +		</result>
  26.251 +		<result>
  26.252 +			<binding name='x2'>
  26.253 +				<uri>http://example.org/item3</uri>
  26.254 +			</binding>
  26.255 +			<binding name='x1'>
  26.256 +				<uri>http://example.org/item8</uri>
  26.257 +			</binding>
  26.258 +		</result>
  26.259 +		<result>
  26.260 +			<binding name='x2'>
  26.261 +				<uri>http://example.org/item4</uri>
  26.262 +			</binding>
  26.263 +			<binding name='x1'>
  26.264 +				<uri>http://example.org/item4</uri>
  26.265 +			</binding>
  26.266 +		</result>
  26.267 +		<result>
  26.268 +			<binding name='x2'>
  26.269 +				<uri>http://example.org/item5</uri>
  26.270 +			</binding>
  26.271 +			<binding name='x1'>
  26.272 +				<uri>http://example.org/item8</uri>
  26.273 +			</binding>
  26.274 +		</result>
  26.275 +		<result>
  26.276 +			<binding name='x2'>
  26.277 +				<uri>http://example.org/item1</uri>
  26.278 +			</binding>
  26.279 +			<binding name='x1'>
  26.280 +				<uri>http://example.org/item3</uri>
  26.281 +			</binding>
  26.282 +		</result>
  26.283 +		<result>
  26.284 +			<binding name='x2'>
  26.285 +				<uri>http://example.org/item5</uri>
  26.286 +			</binding>
  26.287 +			<binding name='x1'>
  26.288 +				<uri>http://example.org/item3</uri>
  26.289 +			</binding>
  26.290 +		</result>
  26.291 +		<result>
  26.292 +			<binding name='x2'>
  26.293 +				<uri>http://example.org/item3</uri>
  26.294 +			</binding>
  26.295 +			<binding name='x1'>
  26.296 +				<uri>http://example.org/item3</uri>
  26.297 +			</binding>
  26.298 +		</result>
  26.299 +		<result>
  26.300 +			<binding name='x2'>
  26.301 +				<uri>http://example.org/item4</uri>
  26.302 +			</binding>
  26.303 +			<binding name='x1'>
  26.304 +				<uri>http://example.org/item1</uri>
  26.305 +			</binding>
  26.306 +		</result>
  26.307 +		<result>
  26.308 +			<binding name='x2'>
  26.309 +				<uri>http://example.org/item2</uri>
  26.310 +			</binding>
  26.311 +			<binding name='x1'>
  26.312 +				<uri>http://example.org/item2</uri>
  26.313 +			</binding>
  26.314 +		</result>
  26.315 +		<result>
  26.316 +			<binding name='x2'>
  26.317 +				<uri>http://example.org/item4</uri>
  26.318 +			</binding>
  26.319 +			<binding name='x1'>
  26.320 +				<uri>http://example.org/item7</uri>
  26.321 +			</binding>
  26.322 +		</result>
  26.323 +		<result>
  26.324 +			<binding name='x2'>
  26.325 +				<uri>http://example.org/item6</uri>
  26.326 +			</binding>
  26.327 +			<binding name='x1'>
  26.328 +				<uri>http://example.org/item7</uri>
  26.329 +			</binding>
  26.330 +		</result>
  26.331 +		<result>
  26.332 +			<binding name='x2'>
  26.333 +				<uri>http://example.org/item6</uri>
  26.334 +			</binding>
  26.335 +			<binding name='x1'>
  26.336 +				<uri>http://example.org/item1</uri>
  26.337 +			</binding>
  26.338 +		</result>
  26.339 +		<result>
  26.340 +			<binding name='x2'>
  26.341 +				<uri>http://example.org/item7</uri>
  26.342 +			</binding>
  26.343 +			<binding name='x1'>
  26.344 +				<uri>http://example.org/item8</uri>
  26.345 +			</binding>
  26.346 +		</result>
  26.347 +	</results>
  26.348 +</sparql>
  26.349 \ No newline at end of file
    27.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    27.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalRelations/periodIntersection.rq	Fri Apr 26 15:03:21 2013 +0300
    27.3 @@ -0,0 +1,9 @@
    27.4 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
    27.5 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
    27.6 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
    27.7 +
    27.8 +SELECT distinct ?x1 ?x2 
    27.9 +			WHERE { 
   27.10 +				?x1 ?y1 ?z1 ?t1 .
   27.11 +				?x2 ?y2 ?z2 ?t2 .
   27.12 +				FILTER(strdf:PeriodIntersects(?t1, ?t2) && str(?x1) < str(?x2)).}
   27.13 \ No newline at end of file
    28.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    28.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalRelations/periodIntersects.rq	Fri Apr 26 15:03:21 2013 +0300
    28.3 @@ -0,0 +1,9 @@
    28.4 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
    28.5 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
    28.6 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
    28.7 +
    28.8 +SELECT distinct ?x1 ?x2 
    28.9 +			WHERE { 
   28.10 +				?x1 ?y1 ?z1 ?t1 .
   28.11 +				?x2 ?y2 ?z2 ?t2 .
   28.12 +				FILTER(strdf:periodIntersects(?t1, ?t2) && str(?x1) < str(?x2)).}
   28.13 \ No newline at end of file
    29.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    29.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalRelations/periodIntersects.srx	Fri Apr 26 15:03:21 2013 +0300
    29.3 @@ -0,0 +1,9 @@
    29.4 +<?xml version='1.0' encoding='UTF-8'?>
    29.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
    29.6 +	<head>
    29.7 +		<variable name='x1'/>
    29.8 +		<variable name='x2'/>
    29.9 +	</head>
   29.10 +	<results>
   29.11 +	</results>
   29.12 +</sparql>
   29.13 \ No newline at end of file
    30.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    30.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalRelations/periodOverlaps.rq	Fri Apr 26 15:03:21 2013 +0300
    30.3 @@ -0,0 +1,9 @@
    30.4 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
    30.5 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
    30.6 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
    30.7 +
    30.8 +SELECT distinct ?x1 ?x2 
    30.9 +			WHERE { 
   30.10 +				?x1 ?y1 ?z1 ?t1 .
   30.11 +				?x2 ?y2 ?z2 ?t2 .
   30.12 +				FILTER(strdf:periodOverlaps(?t1, ?t2) && str(?x1) < str(?x2)).}
   30.13 \ No newline at end of file
    31.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    31.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalRelations/periodOverlaps.srx	Fri Apr 26 15:03:21 2013 +0300
    31.3 @@ -0,0 +1,8 @@
    31.4 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
    31.5 +	<head>
    31.6 +		<variable name='x1'/>
    31.7 +		<variable name='x2'/>
    31.8 +	</head>
    31.9 +	<results>
   31.10 +	</results>
   31.11 +</sparql>
   31.12 \ No newline at end of file
    32.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    32.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalRelations/starts.rq	Fri Apr 26 15:03:21 2013 +0300
    32.3 @@ -0,0 +1,9 @@
    32.4 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
    32.5 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
    32.6 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
    32.7 +
    32.8 +SELECT distinct ?x1 ?x2 
    32.9 +			WHERE { 
   32.10 +				?x1 ?y1 ?z1 ?t1 .
   32.11 +				?x2 ?y2 ?z2 ?t2 .
   32.12 +				FILTER(strdf:starts(?t1, ?t2) && str(?x1) < str(?x2)).}
   32.13 \ No newline at end of file
    33.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    33.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalRelations/starts.srx	Fri Apr 26 15:03:21 2013 +0300
    33.3 @@ -0,0 +1,17 @@
    33.4 +<?xml version='1.0' encoding='UTF-8'?>
    33.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
    33.6 +	<head>
    33.7 +		<variable name='x1'/>
    33.8 +		<variable name='x2'/>
    33.9 +	</head>
   33.10 +	<results>
   33.11 +		<result>
   33.12 +			<binding name='x2'>
   33.13 +				<uri>http://example.org/item2</uri>
   33.14 +			</binding>
   33.15 +			<binding name='x1'>
   33.16 +				<uri>http://example.org/item1</uri>
   33.17 +			</binding>
   33.18 +		</result>
   33.19 +	</results>
   33.20 +</sparql>
   33.21 \ No newline at end of file
    34.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    34.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalRelations/temporalRelations.nq	Fri Apr 26 15:03:21 2013 +0300
    34.3 @@ -0,0 +1,15 @@
    34.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>.
    34.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>.
    34.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>.
    34.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>.
    34.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>.
    34.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+02,2012-11-19T13:41:00]"^^<http://strdf.di.uoa.gr/ontology#period>.
   34.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+02,2012-11-19T13:41:00]"^^<http://strdf.di.uoa.gr/ontology#period>.
   34.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+02,2012-11-19T13:41:00]"^^<http://strdf.di.uoa.gr/ontology#period>.
   34.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>.
   34.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>.
   34.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> .
   34.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> .
   34.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> .
   34.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>.
   34.18 +<http://example.org/item8> <http://example.org/id> "8"^^<http://www.w3.org/2001/XMLSchema#int> "[2012-11-19T14:41:00.000001,2012-11-19T15:41:00]"^^<http://strdf.di.uoa.gr/ontology#period>.