Anupriya,

On 4 Jan 2008, at 23:47, Anupriya Ankolekar wrote:
> I've been trying to use the SPARQL endpoint at
> http://dbpedia.org/sparql. The endpoint is just wonderful to work
> with! Thanks so much for this work.

Thanks for the kind words.

> I have a small question regarding
> the formatting of the SPARQL query results. According to the
> SPARQL Query Results XML Format specification, section 2.1 [1], the
> results document should be a valid XML documents as follows:
>
> <?xml version="1.0"?>
> <sparql xmlns="http://www.w3.org/2005/sparql-results#";>
> ...
> </sparql>
>
> However, the results I get from the endpoint omit the first line. Any
> reason why?

This first line (called the "XML declaration") is optional. As you  
know, SPARQL results are a kind of XML document, and the XML spec  
doesn't require this line [1].

> It's a minor issue, but it could break code that accesses
> several different SPARQL endpoints, many of which do include that
> line. It just did mine. :)

Do you use an XML parser to read the results? I would be surprised if  
any XML parser choked on a missing XML declaration.

Best,
Richard

[1] http://www.w3.org/TR/REC-xml/#sec-prolog-dtd


>
>
> Thanks,
> Anupriya
>
>
>
>
> [1] http://www.w3.org/TR/rdf-sparql-XMLres/
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Dbpedia-discussion mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
>


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to