W3C home > Mailing lists > Public > public-rdf-wg@w3.org > October 2011

Re: "Simple Lists" (was Re: ISSUE-77: Should we mark rdf:Seq as archaic (cf ISSUE-24))

From: Steve Harris <steve.harris@garlik.com>
Date: Mon, 17 Oct 2011 14:38:18 +0100
Cc: Pat Hayes <phayes@ihmc.us>, Andy Seaborne <andy.seaborne@epimorphics.com>, public-rdf-wg@w3.org
Message-Id: <E54D0858-0AA9-4663-89A8-73E1898DF7A1@garlik.com>
To: Sandro Hawke <sandro@w3.org>

On 2011-10-17, at 12:30, Sandro Hawke wrote:

> On Mon, 2011-10-17 at 09:53 +0100, Steve Harris wrote:
>> 
>> A lexical representation of a list could be as simple as a CSV encoded
>> row, e.g. '1,2,3' or '"Alice Foo","Bob Bar","Carol Baz"'. It just has
>> to be something that will be encoded in one literal, and can easily be
>> parsed by a consumer. CSV handling libraries are very common.
> 
> Well, presumably we'd want to allow lists to include types of literals
> and to include objects.   So the lexical representation would have to be
> more like:
> 
> "1"^^<http://www.w3.org/2001/XMLSchemaint>,<http://www.w3.org/People/Berners-Lee/card#i>,...
> 
> and there's probably no way to include bNodes (for better or for worse).
> So, it's not great….

I was thinking 1 as in the Turtle literal abbreviated form for "1"^^xsd:integer, "Alice Foo" as in the xsd:string (nee plain literal). It just happens to be compatible with CSV in the common case, but you're correct, there are exceptions which make the parse rules different to CSV, e.g. IRIs with " in them.

bNodes could maybe be done with _:foo, or more easily with the .well-known/genid/ skolem URI forms.

In any case, I think Andy is correct, and it's too much of a radical departure for this WG, but I'd rather see some energy going into that in the future, than shoring up the mechanisms we have now.

- Steve

-- 
Steve Harris, CTO, Garlik Limited
1-3 Halford Road, Richmond, TW10 6AW, UK
+44 20 8439 8203  http://www.garlik.com/
Registered in England and Wales 535 7233 VAT # 849 0517 11
Registered office: Thames House, Portsmouth Road, Esher, Surrey, KT10 9AD
Received on Monday, 17 October 2011 13:39:00 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:25:46 GMT