Menu

#18 SPARQL ASK query output is not valid XML

open
nobody
None
5
2007-03-16
2007-03-16
No

The output from the ASK query is not valid XML. The "results" tag has the / at the start rather than the end.

For example, if I call ts-query like this:

ts-query -d bioguid -m -f sparql -l sparql "ASK WHERE { <http://bioguid.info/gi:63099141> ?s ?p. } "

I get this response:

Content-Type: text/xml

<?xml version="1.0"?>
<sparql xmlns="http://www.w3.org/2005/sparql-results#">
<head>
</head>
<boolean>false</boolean>
</results>
</sparql>

Notice the "</results>" tag should be "<results/>".

Discussion


Log in to post a comment.

MongoDB Logo MongoDB