Strabon

changeset 1127:25967956ea23 temporals

added a nested query. A set of more complicated queries should be added. This is more important for the temporal component because the rewritting mechanism is subject to testing as well.
author Konstantina Bereta <Konstantina.Bereta@di.uoa.gr>
date Mon Apr 29 00:49:41 2013 +0300 (2013-04-29)
parents 51bb2bc36c67
children b739b7f99c4d
files testsuite/src/test/resources/stSPARQL/TemporalRelationOverleft/nestedOverleft.rq testsuite/src/test/resources/stSPARQL/TemporalRelationOverleft/nestedOverleft.srx
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalRelationOverleft/nestedOverleft.rq	Mon Apr 29 00:49:41 2013 +0300
     1.3 @@ -0,0 +1,10 @@
     1.4 +PREFIX strdf: <http://strdf.di.uoa.gr/ontology#>
     1.5 +PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> 
     1.6 +PREFIX noa: <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#> 
     1.7 +select distinct ?node 
     1.8 +where{
     1.9 +SELECT distinct (?x1 as ?node) ?x2 
    1.10 +			WHERE { 
    1.11 +				?x1 ?y1 ?z1 ?t1 .
    1.12 +				?x2 ?y2 ?z2 ?t2 .
    1.13 +				FILTER(strdf:overleft(?t1, ?t2) && str(?x1) < str(?x2)).}}
    1.14 \ No newline at end of file
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/testsuite/src/test/resources/stSPARQL/TemporalRelationOverleft/nestedOverleft.srx	Mon Apr 29 00:49:41 2013 +0300
     2.3 @@ -0,0 +1,23 @@
     2.4 +<?xml version='1.0' encoding='UTF-8'?>
     2.5 +<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
     2.6 +	<head>
     2.7 +		<variable name='node'/>
     2.8 +	</head>
     2.9 +	<results>
    2.10 +		<result>
    2.11 +			<binding name='node'>
    2.12 +				<uri>http://example.org/item2</uri>
    2.13 +			</binding>
    2.14 +		</result>
    2.15 +		<result>
    2.16 +			<binding name='node'>
    2.17 +				<uri>http://example.org/item1</uri>
    2.18 +			</binding>
    2.19 +		</result>
    2.20 +		<result>
    2.21 +			<binding name='node'>
    2.22 +				<uri>http://example.org/item3</uri>
    2.23 +			</binding>
    2.24 +		</result>
    2.25 +	</results>
    2.26 +</sparql>
    2.27 \ No newline at end of file