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

Re: delimiters between tokens in turtle

From: David Booth <david@dbooth.org>
Date: Thu, 23 Feb 2012 14:31:31 -0500
To: Henry Story <henry.story@bblfish.net>
Cc: public-rdf-comments@w3.org
Message-ID: <1330025491.15521.5963.camel@dbooth-laptop>
On Thu, 2012-02-23 at 18:01 +0100, Henry Story wrote:
> I can't quite work out what the delimiters between tokens are.
> The following seems to be correct N3 (cwm parses it)
>   @prefix : <>.
>   :me</knows>:her,:him.
> cwm even is able to parse
>    @prefix foaf: <http://xmlns.com/foaf/0.1> .
>    :me foaf:knows:her.

Ewwwww!  That's awful.  If the grammar really allows that then I
certainly hope the grammar will be changed to require whitespace between
tokens.  Note that a PrefixedName is not required to have a local name
part, and I often take advantage of this fact in SPARQL as a way of
defining a short name for a single long URI
so any of the following would be legal statements given suitable prefix

     :me  foaf:  knows:her .
     :me  foaf:know  s:her .
     :me  foaf:knows  :her .

David Booth, Ph.D.

Opinions expressed herein are those of the author and do not necessarily
reflect those of his employer.
Received on Thursday, 23 February 2012 19:32:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:29:53 UTC