[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: use of IRIs in Atom
Well, indeed; all they really need to be is a string that's unique. The important aspect is that they're compared character-by-character, and IMHO that's made most apparent when they're just strings.
Anyway, like you say…
On 01/08/2012, at 9:36 AM, Peter Saint-Andre <stpeter@xxxxxxxxxx> wrote:
> And why even URLs? They could have been UUIDs or somesuch. But that's
> water under the bridge, I suppose...
>
> On 8/1/12 10:26 AM, Mark Nottingham wrote:
>> My .02 - if we were to do Atom again, I wouldn't have used IRIs for identifiers; they're not presented to users, so they don't really offer any benefit over URIs.
>>
>> Cheers,
>>
>>
>> On 31/07/2012, at 3:11 PM, James M Snell <jasnell@xxxxxxxxx> wrote:
>>
>>> IRIs in Atom are generally used for two purposes:
>>>
>>> 1. Opaque-identifiers
>>> 2. Links
>>>
>>> When used as identifiers, the IRIs will typically be validated to generally conform to Absolute IRI structure requirements but are otherwise treated as opaque strings. Comparison is performed character-by-character in a case-sensitive manner without any further processing.
>>>
>>> When used as links, the IRIs will typically be handed off to existing HTTP stacks -- in some cases converted to URIs first. Most Atom stacks that I have seen do not perform any particular processing of such URLs beyond the possible IRI2URI conversion. Atom does support the use of relative references and the establishment of base URLs resolved against either the HTTP context (e.g. request URI, content-location header, etc) or the xml:base attribute. Beyond ASCII conversion and relative reference resolution, however, I would wager that the majority of Atom stacks typically treat such IRIs as generally opaque and depend on the underlying HTTP stack to "process" the IRI.
>>>
>>> - James
>>>
>>> On Tue, Jul 31, 2012 at 2:55 PM, Peter Saint-Andre <stpeter@xxxxxxxxxx> wrote:
>>>
>>> The IETF's IRI WG is working to update RFC 3987 (Internationalized
>>> Resource Identifiers). We're doing some informal research to determine
>>> how IRIs are used in existing protocols [1], and Atom seems like an
>>> interesting case. In particular with respect to IRI processing, we're
>>> curious whether Atom implementations (a) strictly follow the rules from
>>> RFC 3987, (b) use the same processing algorithms as other XML
>>> applications, or (c) use the same processing algorithms as HTML
>>> applications. If you have insights into this issue, please do let us know.
>>>
>>> Thanks!
>>>
>>> Peter
>>>
>>> [1] http://lists.w3.org/Archives/Public/public-iri/2012Jul/0060.html
>>>
>>>
>>>
>
--
Mark Nottingham
http://www.mnot.net/