Testing the tests: rand01

The RAND test result has bad XML:

http://www.w3.org/2009/sparql/docs/tests/data-sparql11/functions/rand01.srx

<?xml version="1.0" encoding="utf-8"?>
<sparql xmlns="http://www.w3.org/2005/sparql-results#">
<boolean>true</boolean>
</sparql>


should be:
<?xml version="1.0" encoding="utf-8"?>
<sparql xmlns="http://www.w3.org/2005/sparql-results#">
   <head></head>
   <boolean>true</boolean>
</sparql>


The SPARQL XML results fomat requires a <head></head> even for ASK 
results.  Section 2.2 isn't conditional on the type of results (ASK / 
SELECT).  You may wish to put in a <link>.

and it's in the example:
http://www.w3.org/TR/rdf-sparql-XMLres/#examples

 Andy

Received on Monday, 18 July 2011 19:32:08 UTC