W3C home > Mailing lists > Public > public-rif-wg@w3.org > September 2008

Re: PS grammar question

From: Michael Kifer <kifer@cs.sunysb.edu>
Date: Sun, 21 Sep 2008 16:19:04 -0400
To: "Hassan Ait-Kaci" <hak@ilog.com>
Cc: "harold boley" <Harold.Boley@nrc-cnrc.gc.ca>, "RIF WG" <public-rif-wg@w3.org>
Message-ID: <20080921161904.3fe6b2fc@kiferserv>



On Sat, 20 Sep 2008 18:15:25 -0700
"Hassan Ait-Kaci" <hak@ilog.com> wrote:

> > Looks like a typo. Should be <http:...> or the full "..."^^rif:iri
> 
> I surmised so, but wanted to check. Harold should confirm or explain.
> 
> What about the following remark (which is really causing me a problem):
> 
> > PS/ BTW, the PS grammar's tokenizing is now complexified due to using PS
> >     to declare Prefix and Base pragmas not using double-quoted strings
> >     around the IRI's. The alternative would be to parse IRI's - which is
> >     beyond such a prototype's goal. In the canonical PS, all such IRI's
> >     are double-quoted strings which greatly simplifies the tokenizing.
> >     It'd be as simple and as easy to do so for the Prefix and Base pragmas.
> 
> Can we change the PS syntax to require double-quotes around the IRI's
> in the pragmas Prefix and Base? (I call them pragmas because all they do
> is declare the IRI name spaces used in CURIE shorthands.) It would be a
> simple amendment to the PS BNF and would immensely simplify implementing
> a lexer for the PS.

The PS syntax is abstract (for the most part). It does not specify the
delimiters and such (because some people were adamantly against "yet another
language"). 

We could either add delimiters to PS and make it into a parsable language
or do it separately. The first route would probably be preferable if the old
objections won't be raised again.

michael


> Thanks.
> 
> -hak
> --
> Hassan Aït-Kaci  *  ILOG, Inc. - Product Division R&D
> http://koala.ilog.fr/wiki/bin/view/Main/HassanAitKaci
> 
> 
> 
> -----Original Message-----
> From: Michael Kifer [mailto:kifer@cs.sunysb.edu]
> Sent: Sun 9/21/2008 2:40 AM
> To: Hassan Ait-Kaci
> Cc: harold boley; RIF WG
> Subject: Re: PS grammar question
>  
> 
> 
> On Sat, 20 Sep 2008 17:32:51 -0700
> "Hassan Ait-Kaci" <hak@ilog.com> wrote:
> 
> > > (* "http://sample.org"^^rif:iri pd[dc:publisher -> http://www.w3.org/
> > >                                    dc:date -> "2008-04-04"^^xs:date] *)  
> > 
> > Can you please explain to me how http://www.w3.org/ can be derived as a
> > TERM according to the EBNF rules cited above?
> 
> Looks like a typo. Should be <http:...> or the full "..."^^rif:iri
> 
> m
> 
Received on Sunday, 21 September 2008 20:19:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 18:33:54 GMT