Strabon

changeset 1299:0998e91f6fa5

added tests for aggregate intersection function
author Stella Giannakopoulou <sgian@di.uoa.gr>
date Thu Nov 28 12:49:06 2013 +0200 (2013-11-28)
parents 83c25ed69f94
children e7eafd649da6
files testsuite/src/test/resources/stSPARQL/AggregateFunctionsTest/IntersectionTest.rq testsuite/src/test/resources/stSPARQL/AggregateFunctionsTest/IntersectionTest.srx
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/testsuite/src/test/resources/stSPARQL/AggregateFunctionsTest/IntersectionTest.rq	Thu Nov 28 12:49:06 2013 +0200
     1.3 @@ -0,0 +1,5 @@
     1.4 +select (strdf:intersection(?g) as ?intersection)
     1.5 +where
     1.6 +{
     1.7 +	?x ex:hasGeometry ?g.
     1.8 +}
     1.9 \ 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/AggregateFunctionsTest/IntersectionTest.srx	Thu Nov 28 12:49:06 2013 +0200
     2.3 @@ -0,0 +1,13 @@
     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='intersection'/>
     2.8 +	</head>
     2.9 +	<results>
    2.10 +		<result>
    2.11 +			<binding name='intersection'>
    2.12 +				<literal datatype='http://strdf.di.uoa.gr/ontology#WKT'>POLYGON ((1 0, 0 0, 0 1, 1 1, 1 0));http://www.opengis.net/def/crs/EPSG/0/4326</literal>
    2.13 +			</binding>
    2.14 +		</result>
    2.15 +	</results>
    2.16 +</sparql>