W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > January to March 2012

Re: Comment on SPARQL 1.1 CSV Results

From: Lee Feigenbaum <lee@thefigtrees.net>
Date: Sun, 05 Feb 2012 18:57:45 -0500
Message-ID: <4F2F1779.5050707@thefigtrees.net>
To: Gregory Williams <greg@evilfunhouse.com>
CC: Andy Seaborne <andy.seaborne@epimorphics.com>, SPARQL Working Group <public-rdf-dawg@w3.org>
I agree with Greg.

Given that the CSV format is purposefully simple and lossy, I think that 
unbound variables and empty strings should both be empty strings in CSV, 
which can be either ,, or ,"",

Lee

On 2/5/2012 4:21 PM, Gregory Williams wrote:
>
> On Feb 5, 2012, at 2:51 PM, Andy Seaborne wrote:
>
>> Rob,
>>
>> Thank you for catching that.  I've added text to the editor's working draft, noting the fact and requiring the quoted empty string be used (your option 2).  This text will be considered by the working group when it next reviews the document for publication.
>>
>> I would be grateful if you would acknowledge that your comment has been answered by sending a reply to this mailing list.
>
> Won't Rob's suggestion of requiring empty strings to be serialized as "" mean that implementations can't simply use a CSV library that decides when quoting is required? My reading of the CSV RFC suggests that an empty string, and "" are equivalent.
>
> Similarly, the document says that "if a variable is not bound, an empty field is used, (e.g. ,,)" but I would hope that a quoted empty field would also be acceptable (e.g. ,"",). Is that correct?
>
> thanks,
> .greg
>
>
>
Received on Sunday, 5 February 2012 23:58:22 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:47 GMT