Strabon

changeset 1212:543089062a2c

Added IsSimple Test for stSPARQL.
author Panayiotis Smeros <psmeros@di.uoa.gr>
date Mon Jul 15 17:36:43 2013 +0300 (2013-07-15)
parents 0d76d19af8ff
children 352c8ca3064e
files testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/IsSimpleTest.rq testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/IsSimpleTest.srx
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/IsSimpleTest.rq	Mon Jul 15 17:36:43 2013 +0300
     1.3 @@ -0,0 +1,5 @@
     1.4 +select (strdf:isSimple(?g) as ?simple)
     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/BasicFunctionsTest/IsSimpleTest.srx	Mon Jul 15 17:36:43 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='simple'/> 
     2.8 +		</head> 
     2.9 +		<results> 
    2.10 +			<result> 
    2.11 +				<binding name='simple'> 
    2.12 +					<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal> 
    2.13 +				</binding> 
    2.14 +			</result> 
    2.15 +			<result> 
    2.16 +				<binding name='simple'> 
    2.17 +					<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>false</literal> 
    2.18 +				</binding> 
    2.19 +			</result> 
    2.20 +			<result> 
    2.21 +				<binding name='simple'> 
    2.22 +					<literal datatype='http://www.w3.org/2001/XMLSchema#boolean'>true</literal> 
    2.23 +				</binding> 
    2.24 +			</result> 
    2.25 +		</results> 
    2.26 +	</sparql> 
    2.27 \ No newline at end of file