W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > February 2012

Comment on SPARQL 1.1 CSV Results

From: Robert Vesse <rvesse@dotnetrdf.org>
Date: Fri, 3 Feb 2012 15:17:34 -0800
To: public-rdf-dawg-comments@w3.org
Message-Id: <79138BF0-8F04-4D8E-B517-6B6E6F7DD4EC@dotnetrdf.org>
Hi All

There is a problem with this document in that it does not state how and if the serialization should handle empty strings.

The spec states that terms are serialized as if the STR() function had been applied and that there should be no distinguishing syntax for term type, thus the serialization should only surround a literal in quotes when that literal contains characters that cannot be serialized bare in CSV.

Also the spec states that an unbound term is serialized as an empty field

What this means is that the spec requires you to serialize an empty string in the same way you serialize an unbound term.  Thus if you were to parse the serialization you would have to assume that it was an unbound term.

I am aware that the CSV serialization is intentionally lossy by design so I'd like to suggest that the working group do one of the following:

1 - Have the document state that this case (empty string vs unbound term) is a known ambiguity in the serialization
2 - Require an empty string to be serialized as ""

Option 2 would be my preference

Regards,

Rob Vesse
> 
Received on Friday, 3 February 2012 23:18:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 3 February 2012 23:18:51 GMT