Strabon
changeset 1211:0d76d19af8ff
Added IsEmpty Test for stSPARQL.
author | Panayiotis Smeros <psmeros@di.uoa.gr> |
---|---|
date | Mon Jul 15 17:36:16 2013 +0300 (2013-07-15) |
parents | 81a8f4750e35 |
children | 543089062a2c |
files | testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/BasicFunctionsTest.nt testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/IsEmptyTest.rq testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/IsEmptyTest.srx |
line diff
1.1 --- a/testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/BasicFunctionsTest.nt Mon Jul 15 16:14:41 2013 +0300 1.2 +++ b/testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/BasicFunctionsTest.nt Mon Jul 15 17:36:16 2013 +0300 1.3 @@ -1,3 +1,3 @@ 1.4 <http://example.org#polygon1> <http://example.org#hasGeometry> "Polygon((0 0, 1 0, 1 1, 0 1, 0 0))"^^<http://strdf.di.uoa.gr/ontology#WKT> . 1.5 -<http://example.org#polygon2> <http://example.org#hasGeometry> "Polygon((0 0, 1 0, 0 1, 1 1, 0 0))"^^<http://strdf.di.uoa.gr/ontology#WKT> . 1.6 +<http://example.org#polygon2> <http://example.org#hasGeometry> "Linestring(0 0, 1 0, 0 1, 1 1, 0 0)"^^<http://strdf.di.uoa.gr/ontology#WKT> . 1.7 <http://example.org#polygon3> <http://example.org#hasGeometry> ""^^<http://strdf.di.uoa.gr/ontology#WKT> . 1.8 \ 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/BasicFunctionsTest/IsEmptyTest.rq Mon Jul 15 17:36:16 2013 +0300 2.3 @@ -0,0 +1,5 @@ 2.4 +select (strdf:isEmpty(?g) as ?empty) 2.5 +where 2.6 +{ 2.7 + ?x ex:hasGeometry ?g. 2.8 +} 2.9 \ 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/IsEmptyTest.srx Mon Jul 15 17:36:16 2013 +0300 3.3 @@ -0,0 +1,23 @@ 3.4 +<?xml version='1.0' encoding='UTF-8'?> 3.5 + <sparql xmlns='http://www.w3.org/2005/sparql-results#'> 3.6 + <head> 3.7 + <variable name='empty'/> 3.8 + </head> 3.9 + <results> 3.10 + <result> 3.11 + <binding name='empty'> 3.12 + <literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal> 3.13 + </binding> 3.14 + </result> 3.15 + <result> 3.16 + <binding name='empty'> 3.17 + <literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal> 3.18 + </binding> 3.19 + </result> 3.20 + <result> 3.21 + <binding name='empty'> 3.22 + <literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal> 3.23 + </binding> 3.24 + </result> 3.25 + </results> 3.26 + </sparql> 3.27 \ No newline at end of file