<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=285082422-11012007><FONT face=Arial size=2>I am trying to 
implement a SPARQL endpoint webservice to a Redland database.&nbsp; <SPAN 
class=285082422-11012007><FONT face=Arial size=2>When I do a query that finds no 
results, the stringification of the query results is NULL (undef in Perl).&nbsp; 
</FONT></SPAN>My understanding of the required XML output(<A 
href="http://www.w3.org/TR/rdf-sparql-XMLres/">http://www.w3.org/TR/rdf-sparql-XMLres/</A>) 
for the results of an empty (but not malformed or otherwise errant) query should 
list the &lt;head&gt; section of selected variables and an empty &lt;results&gt; 
element.</FONT></SPAN></DIV>
<DIV><SPAN class=285082422-11012007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=285082422-11012007><FONT face=Arial size=2>My simple SELECT * 
WHERE { ?s ?p ?o } query isn't getting any errors when I put some data in the 
database, but when there is no data (or when the WHERE clause doesn't match any 
data I get this bogus string, with no error or warning from 
Redland.</FONT></SPAN></DIV>
<DIV><SPAN class=285082422-11012007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=285082422-11012007><FONT face=Arial size=2>I am using Redland v 
1.0.4 with Rasqal 0.9.13.</FONT></SPAN></DIV></BODY></HTML>