W3C home > Mailing lists > Public > uri@w3.org > June 2008

RE: draft-gregorio-uritemplate-03.txt

From: Anthony Bouch <anthony@abouch.com>
Date: Wed, 25 Jun 2008 22:46:36 +0700
To: "'Marc Hadley'" <Marc.Hadley@Sun.COM>
Cc: "'URI'" <uri@w3.org>
Message-ID: <005f01c8d6da$b9e84240$2db8c6c0$@com>

Hi Marc

JSR 311 at least supports regular expressions for template matching - which
is better than the current UriTemplate class I am working with, which in
turn was what led me to post to the list. I was curious to know how, or
where, matching might be considered with reference to the UriTemplate draft.

Maybe this is the answer...

" While URI Templates use a notation that is similar to some URI path
matching notations in web frameworks, URI Templates were not designed for
that use case, nor are they appropriate for that purpose. URI Templates are
not URIs, they do not identify an abstract or physical resource, they are
not to be treated like URIs, nor should not be used in places where a URI
would be expected."


-----Original Message-----
From: uri-request@w3.org [mailto:uri-request@w3.org] On Behalf Of Marc
Sent: Wednesday, June 25, 2008 9:27 PM
To: Anthony Bouch
Cc: 'Joe Gregorio'; 'URI'
Subject: Re: draft-gregorio-uritemplate-03.txt

I think a profile of the spec is needed for matching. E.g. {a}{b} is  
ambiguous for matching since you don't know where {a} ends and {b}  
starts in a given URI. We are only using the basic {var} syntax in JSR  
311 (http://jsr311.dev.java.net/) for matching.


On Jun 24, 2008, at 8:58 PM, Anthony Bouch wrote:

> I've been following the list, and have just looked at Draft 03 of  
> the uri
> template spec.
> I understand how the uri template specification can be implemented for
> template expansion - but was wondering about template matching. Does  
> this
> specification expect that implementers will offer template matching  
> - i.e.
> parsing back to variables from a Uri for a given a template?
> --Tony
> -----Original Message-----
> From: uri-request@w3.org [mailto:uri-request@w3.org] On Behalf Of Joe
> Gregorio
> Sent: Saturday, April 05, 2008 3:19 AM
> To: URI
> Subject: draft-gregorio-uritemplate-03.txt
> Draft 03 of the uri template spec has been published:
>   http://www.ietf.org/internet-drafts/draft-gregorio- 
> uritemplate-03.txt
> HTML and diffs are available here along with an updated
> template explainer service:
>  http://bitworking.org/projects/URI-Templates/
> I've folded in much of the feedback from the last draft.
> Here are the revision history notes:
>   Added more examples.  Introduced error conditions and defined
>   their handling.  Changed listjoin to list.  Changed -append to
>   -suffix, and allowed -prefix and -suffix to accept list variables.
>   Clarified the handling of unicode.
>   Thanks,
>   -joe
> -- 
> Joe Gregorio http://bitworking.org

Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.
Received on Wednesday, 25 June 2008 15:57:53 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:12 UTC