Strabon
changeset 1207:d533f932c2b9
Added GeometryType Test for stSPARQL.
author | Panayiotis Smeros <psmeros@di.uoa.gr> |
---|---|
date | Mon Jul 15 15:54:12 2013 +0300 (2013-07-15) |
parents | 9999cd386a6e |
children | 23cdbfdc73b6 |
files | testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/DimensionTest.rq testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/DimensionTest.srx testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/GeometryTypeTest.rq testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/GeometryTypeTest.srx |
line diff
1.1 --- a/testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/DimensionTest.rq Mon Jul 15 15:41:15 2013 +0300 1.2 +++ b/testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/DimensionTest.rq Mon Jul 15 15:54:12 2013 +0300 1.3 @@ -1,5 +1,5 @@ 1.4 select (strdf:dimension(?g) as ?dimension) 1.5 where 1.6 { 1.7 - ?x ex:hasGeometry ?g. 1.8 + ex:polygon1 ex:hasGeometry ?g. 1.9 } 1.10 \ No newline at end of file
2.1 --- a/testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/DimensionTest.srx Mon Jul 15 15:41:15 2013 +0300 2.2 +++ b/testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/DimensionTest.srx Mon Jul 15 15:54:12 2013 +0300 2.3 @@ -8,11 +8,6 @@ 2.4 <binding name='dimension'> 2.5 <literal datatype='http://www.w3.org/2001/XMLSchema#int'>2</literal> 2.6 </binding> 2.7 - </result> 2.8 - <result> 2.9 - <binding name='dimension'> 2.10 - <literal datatype='http://www.w3.org/2001/XMLSchema#int'>2</literal> 2.11 - </binding> 2.12 - </result> 2.13 + </result> 2.14 </results> 2.15 </sparql> 2.16 \ No newline at end of file
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/GeometryTypeTest.rq Mon Jul 15 15:54:12 2013 +0300 3.3 @@ -0,0 +1,5 @@ 3.4 +select (strdf:geometryType(?g) as ?geomType) 3.5 +where 3.6 +{ 3.7 + ex:polygon1 ex:hasGeometry ?g. 3.8 +} 3.9 \ 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/BasicFunctionsTest/GeometryTypeTest.srx Mon Jul 15 15:54:12 2013 +0300 4.3 @@ -0,0 +1,13 @@ 4.4 +<?xml version='1.0' encoding='UTF-8'?> 4.5 + <sparql xmlns='http://www.w3.org/2005/sparql-results#'> 4.6 + <head> 4.7 + <variable name='geomType'/> 4.8 + </head> 4.9 + <results> 4.10 + <result> 4.11 + <binding name='geomType'> 4.12 + <literal>ST_Polygon</literal> 4.13 + </binding> 4.14 + </result> 4.15 + </results> 4.16 + </sparql> 4.17 \ No newline at end of file