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

Re: URI Templates - optional variables?

From: Joe Gregorio <joe@bitworking.org>
Date: Wed, 17 Oct 2007 11:53:57 -0400
Message-ID: <3f1451f50710170853i425f5a6bt88126240ba864504@mail.gmail.com>
To: "James M Snell" <jasnell@gmail.com>
Cc: "Roy T. Fielding" <fielding@gbiv.com>, "Stefan Eissing" <stefan.eissing@greenbytes.de>, "Mark Nottingham" <mnot@mnot.net>, URI <uri@w3.org>

On 10/17/07, James M Snell <jasnell@gmail.com> wrote:
> Nice. it would be cool if you could include a couple of example
> expansions into the output.

I'm not sure if that would be helpful or confusing.
I will have to think about it some more.

I did add some example URI Templates to the page so you
can see how it works w/o making up your own template.

  -joe

>
> Also, I have the new scheme implemented in Java:
>
>  http://www.snellspace.com/public/uritemplates.zip
>
> - James
>
> Joe Gregorio wrote:
> > On 10/16/07, Roy T. Fielding <fielding@gbiv.com> wrote:
> >> I want templates to be easy for a computer to read and easy for
> >> a computer to generate from that reading a fully-descriptive
> >> page of information in the user's favorite language.  For example,
> >> define a web service that inputs a template and outputs the
> >> readable description according to the Accept-Language received.
> >>
> >>      http://example.com/explain_template?{URItemplate}
> >>
> >> I bet Joe could write one of those in an hour -- it would save
> >> him the time of regenerating all those email examples. ;-)
> >
> > Wow, that took exactly one hour:
> >
> >    http://bitworking.org/projects/URI-Templates/
> >
> > Sorry, no language translations yet. Here is an example
> > of the service in action:
> >
> >   http://tinyurl.com/yomkdy
> >
> >    -joe
> >
>


-- 
Joe Gregorio        http://bitworking.org
Received on Wednesday, 17 October 2007 15:54:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 13 January 2011 12:15:37 GMT