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

Re: Two thoughts on Turtle

From: Richard Cyganiak <richard@cyganiak.de>
Date: Thu, 9 Jun 2011 10:11:24 +0100
Cc: public-rdf-wg <public-rdf-wg@w3.org>
Message-Id: <DFF3B9A3-0BC1-4C17-B6EF-6D9BF71B66B5@cyganiak.de>
To: Sandro Hawke <sandro@w3.org>, Andy Seaborne <andy.seaborne@epimorphics.com>
Sandro, Andy,

On 7 Jun 2011, at 22:48, Sandro Hawke wrote:
> I think there is a large class of users that would appreciate being able
> to write:
>        @prefix <http://xmlns.com/foaf/0.1/>.
>        [] a Person; name "Sandro Hawke", mbox <mailto:sandro@w3.org>.
>        [] a Person; name "Ivan Herman". mbox <mailto:ivan@w3.org>.
> Note that I left out a whole lot of colons.

Turtle is not the only language that requires unnecessary extra punctuation. Off the top of my head, other examples are XML (unnecessary quotes around attributes), JSON (unnecessary quotes around property names), PHP (unnecessary dollar signs before variables), Lisp (unnecessary parentheses). People complain about it but make do. So I'm unconvinced that getting rid of the colons is worth the effort.

On 8 Jun 2011, at 14:57, Andy Seaborne wrote:
> There are important data items that does not have convenient forms : dates and dateTimes.
> Would it be useful to allow bare dates/dateTimes?
> :x dc:date 2010-06-08 .

I would like to see that. It would complete the set of syntactic sugar for the commonly used XSD types, and I'd hope that it'd eventually also make its way into SPARQL implementations. Although there might be problems here; this is valid SPARQL:

    SELECT (2011-06-09 as ?today) WHERE { }

but it doesn't do what you think :-)

Received on Thursday, 9 June 2011 09:11:55 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 22:01:59 UTC