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

Trailing ; in N3 property lists forbidden

From: Dave Beckett <dave.beckett@bristol.ac.uk>
Date: Tue, 4 May 2004 11:10:32 +0100
To: public-cwm-bugs@w3.org
Message-Id: <20040504111032.0fafec1c@hoth.ilrt.bris.ac.uk>

Trailing ; is now forbidden in property lists in the new Notation3
grammar where it says:
[[
propertylist
    verb object objecttail propertylisttail
    void

propertylisttail
    ";" verb object objecttail propertylisttail
    void

]]
-- http://www.w3.org/2000/10/swap/grammar/n3-report.html#propertylist

The old one, http://www.w3.org/DesignIssues/OldNotation3Grammar
allowed this:

[[
propertylist
    void ( to allow an anonymous node by itself [:a :b ]. But :a. generates no statements. )
    verb objectlist
    verb objectlist ; propertylist
]]
-- http://www.w3.org/DesignIssues/OldNotation3Grammar

and the reference Notation 3 implementation in cwm continues to allow this.

Trivial test:

$ cat > t.n3
@prefix foo: <http://example.org/> .
foo:a foo:b foo:c;
      foo:d foo:e; .
$ cwm  t.n3
#Processed by Id: cwm.py,v 1.148 2004/03/21 04:24:32 timbl Exp
        #    using base file:/home/cmdjb/w3c/2000/10/swap/t.n3
         
#  Notation3 generation by
#       notation3.py,v 1.153 2004/03/21 04:24:35 timbl Exp
 
#   Base was: file:/home/cmdjb/w3c/2000/10/swap/t.n3
     
    <http://example.org/a>     <http://example.org/b> <http://example.org/c>;
         <http://example.org/d> <http://example.org/e> .
     
#ENDS

So which one is correct? 

Annoyingly for me, in my Turtle implementation, I allow it (following
the old grammar) but in the Turtle spec[1], I have forbidden it, so
one way or another I've got to change something!

I have seen N3 examples that have (accidently I guess) used this such as:
  http://www.w3.org/2003/03/rdfqr-tests/recording-query-results.html
(last example).

Dave

[1] http://www.ilrt.bris.ac.uk/discovery/2004/01/turtle/
Received on Tuesday, 4 May 2004 06:11:20 UTC

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