W3C home > Mailing lists > Public > uri@w3.org > October 2007

Re: URI Templates - optional variables?

From: Joe Gregorio <joe@bitworking.org>
Date: Tue, 16 Oct 2007 00:42:32 -0400
Message-ID: <3f1451f50710152142y42da979ehaebbafbe10129642@mail.gmail.com>
To: "John Cowan" <cowan@ccil.org>
Cc: "Marc Hadley" <Marc.Hadley@sun.com>, "Roy T. Fielding" <fielding@gbiv.com>, URI <uri@w3.org>, "Stefan Eissing" <stefan.eissing@greenbytes.de>, "Mark Nottingham" <mnot@mnot.net>

On 10/15/07, John Cowan <cowan@ccil.org> wrote:
> Marc Hadley scripsit:
> > I realize most folks are focussed on the template->URI conversion
> > process but I'm currently most interested in matching URIs to
> > templates and if we introduce the need to refer to external
> > processing extensions I don't see how such matching can be
> > implemented in the general case.
> That's very interesting.  Someone should see whether Joe's proposal
> is invertible: go from a URI and a template to a bunch of variables.

Nope, it's not an invertible mapping:

  a=True, b=False
  a=False, b=True

I'm a bit rusty, but I believe it's the distinction between
a regular and a non-regular grammar.


Joe Gregorio        http://bitworking.org
Received on Tuesday, 16 October 2007 04:42:41 UTC

This archive was generated by hypermail 2.4.0 : Sunday, 10 October 2021 22:17:50 UTC