RE: Trailing ; in N3 property lists forbidden

I allow  it in Jena's N3 parsr for the convenience of users to insert lines
into datasets without having to worry about whether this is the last item or
whether the old item was the last one.

The usage pattern is:

x:foo
	ns:prop1 "v1" ;
	ns:prop2 "v2" ;
	.

allowing an extra line to be added ending in ; without regard to position in
the list.

Same for programmatically producing N3 output from some non-RDF data.  Code
does not need to special case last (or first) items.

	Andy

-------- Original Message --------
> From: public-cwm-bugs-request@w3.org <>
> Date: 4 May 2004 11:11
> 
> 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 08:04:13 UTC