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

Re: Updated URI Template proposal

From: James M Snell <jasnell@gmail.com>
Date: Fri, 09 Nov 2007 20:14:53 -0800
Message-ID: <4735303D.5070003@gmail.com>
To: Joe Gregorio <joe@bitworking.org>
CC: URI <uri@w3.org>

Btw, my take on the updated syntax ABNF

 http://www.snellspace.com/public/uritemplate2.txt

- James

Joe Gregorio wrote:
> One of the things I never made clear is that this proposal clears up
> all the escaping issues and makes writing a parser very easy.
> My working code uses the BNF to ensure that the BNF is correct, but
> a simple implementation could get away with just splits, for example, in Python:
> 
>>>> "-op|arg|var1=def,var2=def2".split("|")
> ['-op', 'arg', 'var1=def,var2=def2']
>>>> _[2].split(",")
> ['var1=def', 'var2=def2']
>>>> [x.split("=") for x in _ if "=" in x]
> [['var1', 'def'], ['var2', 'def2']]
> 
>    -joe
> 
> On Nov 5, 2007 12:32 PM, Joe Gregorio <joe@bitworking.org> wrote:
>> Based on everyone's feedback I've updated my proposal
>> and updated the URI Template explainer service to reflect that proposal.
>> Expansions are now of the form:
> 
Received on Saturday, 10 November 2007 04:15:06 GMT

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