W3C home > Mailing lists > Public > public-cwm-bugs@w3.org > February 2004

N3 grammar bug with comma in collections

From: Dave Beckett <dave.beckett@bristol.ac.uk>
Date: Thu, 26 Feb 2004 14:20:30 +0000
To: public-cwm-bugs@w3.org
Message-Id: <20040226142030.2c765fe0@hoth.ilrt.bris.ac.uk>

cwm (and jena's n3 parser) seem to implement something different than
specified in the Notation3 grammar.

Specifically, the grammar says this:
[[
objectlist
    object
    object , objectlist
]] -- http://www.w3.org/DesignIssues/Notation3.html

and in the RDF/n3 one:
[[
objecttail bnf:mustBeOneSequence (
		( )
		( ","   object objecttail )
	).
]] -- http://www.w3.org/2000/10/swap/grammar/n3.n3


So a comma is required between entries.

cwm implements something else - commas are forbidden.

Failing test with cwm:
@prefix : <http://example.org/stuff/1.0/> .
:a :b ( "apple", "banana" ) .

Passing test with cwm:
@prefix : <http://example.org/stuff/1.0/> .
:a :b ( "apple" "banana" ) .

I need to change turtle one way or the other to match.  I assume
the grammar is in error.

Dave
Received on Thursday, 26 February 2004 09:21:08 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:51:59 UTC