W3C home > Mailing lists > Public > www-rdf-interest@w3.org > September 2002

RE: A Rough Guide to Notation3

From: Graham Klyne <GK@NineByNine.org>
Date: Mon, 16 Sep 2002 19:37:49 +0100
Message-Id: <5.1.0.14.2.20020916192951.040dcd70@127.0.0.1>
To: "Seaborne, Andy" <Andy_Seaborne@hplb.hpl.hp.com>
Cc: "'Sean B. Palmer'" <sean@mysterylights.com>, "'www-rdf-interest@w3.org'" <www-rdf-interest@w3.org>

Oooh, you're right.  I just re-ran the original test-cases I 
used.  Rats!  I don't know if it's because I started checking things 
against an older version of cwm, or just misinterpreted the output previously.

However, the version of cwm I'm using (1.92) still rejects Dan's example:
[[
:W3C :homepage [ :- <http://www.w3.org/>; :title "Homepage of the W3C" ] .
]]

with this message:
[[
notation3.BadSyntax: Line 40 of <file:/CVSDev/PythonN3/n3play.n3>: Bad 
syntax (b
ad {} or () or [] node after :- ) at ^ in:
"...ex:p ex:o . } .

### cwm rejects this
:W3C :homepage [ :-^ <http://www.w3.org/>; :title "Homepage of the W3C" ] .

#..."
]]

Hmmm.

#g
--

At 05:13 PM 9/16/02 +0100, Seaborne, Andy wrote:
>Graham,
>
>Hmm, with cwm I get:
>
>     irep:GenReport     a rep:Report .
>       (  [
>                  rep:cmd rep:if;
>                  rep:defined "htmlname";
>                  rep:do irep:HTMLReport ] )
>      .
>
>which appears to be a statement and a list of one element which is an anon
>node with three arcs, not a list headed by the resource irep:GenReport.  I
>get the same with my parser :-)
>
>irep:GenReport
>       a  rep:Report .
>
>_:b1  rep:cmd  rep:if ;
>       rep:defined  "htmlname" ;
>       rep:do  irep:HTMLReport .
>
>_:b2  daml:first  _:b1 ;
>       daml:rest  daml:nil .
>
>         Andy
>
>-----Original Message-----
>From: Graham Klyne [mailto:GK@ninebynine.org]
>Sent: 16 September 2002 15:58
>To: Sean B. Palmer
>Cc: www-rdf-interest@w3.org
>Subject: Re: A Rough Guide to Notation3
>
>
>
>At 05:07 AM 8/22/02 +0100, Sean B. Palmer wrote:
>
> >http://infomesh.net/2002/notation3/
> >- A Rough Guide to Notation3, 2002-08-22
>
>An interesting addition to the lore ;-)
>
>I was intrigued by your description of ':-', because I came up with a very
>different pattern which (as far as I can tell) is consistent with what cwm
>does:
>
>I use this:
>[[
>irep:GenReport a rep:Report ; :-
>    ( [ rep:cmd rep:if ; rep:defined "htmlname" ; rep:do irep:HTMLReport ] )
>.
>]]
>
>To create a list whose first element is the node labelled irep:GenReport in
>this example.  I can't tell if this is consistent with the description you
>give, or if I've stumbled across an inconsistency in the way ':-' is
>treated.  I did conduct a number of tests with cwm, which seems to do the
>same thing with this case.
>
>It seems my parser doesn't like Dan's examples, either, like the one
>below.  Ho hum.
>[[
>:W3C :homepage [ :- <http://www.w3.org/>; :title "Homepage of the W3C" ] .
>]]
>
>#g
>
>
>-------------------
>Graham Klyne
><GK@NineByNine.org>

-------------------
Graham Klyne
<GK@NineByNine.org>
Received on Monday, 16 September 2002 14:16:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:51:56 GMT