Strabon

changeset 1210:81a8f4750e35

Added AsGML Test for stSPARQL.
author Panayiotis Smeros <psmeros@di.uoa.gr>
date Mon Jul 15 16:14:41 2013 +0300 (2013-07-15)
parents b6ffe8daaa9e
children 0d76d19af8ff
files testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/AsGMLTest.rq testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/AsGMLTest.srx testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/AsTextTest.rq testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/AsTextTest.srx testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/BasicFunctionsTest.nt testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/SridTest.rq testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/SridTest.srx
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/AsGMLTest.rq	Mon Jul 15 16:14:41 2013 +0300
     1.3 @@ -0,0 +1,5 @@
     1.4 +select (strdf:asGML(?g) as ?gml)
     1.5 +where
     1.6 +{
     1.7 +	ex:polygon1 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/AsGMLTest.srx	Mon Jul 15 16:14:41 2013 +0300
     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='gml'/> 
     2.8 +		</head> 
     2.9 +		<results> 
    2.10 +			<result> 
    2.11 +				<binding name='gml'> 
    2.12 +					<literal>&lt;gml:Polygon srsName="EPSG:4326"&gt;&lt;gml:outerBoundaryIs&gt;&lt;gml:LinearRing&gt;&lt;gml:coordinates&gt;0,0 1,0 1,1 0,1 0,0&lt;/gml:coordinates&gt;&lt;/gml:LinearRing&gt;&lt;/gml:outerBoundaryIs&gt;&lt;/gml:Polygon&gt;</literal> 
    2.13 +				</binding> 
    2.14 +			</result> 
    2.15 +		</results> 
    2.16 +	</sparql> 
    2.17 \ No newline at end of file
     3.1 --- a/testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/AsTextTest.rq	Mon Jul 15 16:03:46 2013 +0300
     3.2 +++ b/testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/AsTextTest.rq	Mon Jul 15 16:14:41 2013 +0300
     3.3 @@ -1,4 +1,4 @@
     3.4 -select (strdf:asText(?g) as ?dimension)
     3.5 +select (strdf:asText(?g) as ?wkt)
     3.6  where
     3.7  {
     3.8  	ex:polygon1 ex:hasGeometry ?g.
     4.1 --- a/testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/AsTextTest.srx	Mon Jul 15 16:03:46 2013 +0300
     4.2 +++ b/testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/AsTextTest.srx	Mon Jul 15 16:14:41 2013 +0300
     4.3 @@ -1,11 +1,11 @@
     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='dimension'/> 
     4.8 +			<variable name='wkt'/> 
     4.9  		</head> 
    4.10  		<results> 
    4.11  			<result> 
    4.12 -				<binding name='dimension'> 
    4.13 +				<binding name='wkt'> 
    4.14  					<literal>POLYGON((0 0,1 0,1 1,0 1,0 0))</literal> 
    4.15  				</binding> 
    4.16  			</result> 
     5.1 --- a/testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/BasicFunctionsTest.nt	Mon Jul 15 16:03:46 2013 +0300
     5.2 +++ b/testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/BasicFunctionsTest.nt	Mon Jul 15 16:14:41 2013 +0300
     5.3 @@ -1,2 +1,3 @@
     5.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> .
     5.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> .
     5.6 \ No newline at end of file
     5.7 +<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> .
     5.8 +<http://example.org#polygon3> <http://example.org#hasGeometry> ""^^<http://strdf.di.uoa.gr/ontology#WKT> .
     5.9 \ No newline at end of file
     6.1 --- a/testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/SridTest.rq	Mon Jul 15 16:03:46 2013 +0300
     6.2 +++ b/testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/SridTest.rq	Mon Jul 15 16:14:41 2013 +0300
     6.3 @@ -1,4 +1,4 @@
     6.4 -select (strdf:srid(?g) as ?dimension)
     6.5 +select (strdf:srid(?g) as ?srid)
     6.6  where
     6.7  {
     6.8  	ex:polygon1 ex:hasGeometry ?g.
     7.1 --- a/testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/SridTest.srx	Mon Jul 15 16:03:46 2013 +0300
     7.2 +++ b/testsuite/src/test/resources/stSPARQL/BasicFunctionsTest/SridTest.srx	Mon Jul 15 16:14:41 2013 +0300
     7.3 @@ -1,11 +1,11 @@
     7.4  <?xml version='1.0' encoding='UTF-8'?> 
     7.5  	<sparql xmlns='http://www.w3.org/2005/sparql-results#'> 
     7.6  		<head> 
     7.7 -			<variable name='dimension'/> 
     7.8 +			<variable name='srid'/> 
     7.9  		</head> 
    7.10  		<results> 
    7.11  			<result> 
    7.12 -				<binding name='dimension'> 
    7.13 +				<binding name='srid'> 
    7.14  					<literal datatype='http://www.w3.org/2001/XMLSchema#int'>4326</literal> 
    7.15  				</binding> 
    7.16  			</result>