Note: I am using rel="lrdd" as a placehold for the actual LRDD relation type and rel="x" as the relation type desired.
1. Get host-meta and find the LRDD link:
<Link template="http://example.com?uri={uri}" rel="lrdd" type="application/xrd+xml" />
2. Look for a link child element Priority (newly proposed element in XRD to replace <Type>):
<Link template="http://example.com?uri={uri}" rel="lrdd" type="application/xrd+xml">
<Property type="http://lrdd.net/priority/resource" />
</Link>
3. If not found, perform LRDD discovery in order: host-meta, Link: header, <Link> element. If found, perform LRDD discovery in order: <Link> element, Link: header, host-meta
4. For each of the three locations, in the order determined in #3:
[[ a. Look for the desired link (rel="x"), if found, stop ]]
b. Look for a LRDD link (rel="lrdd") and get LRDD XRD document. If failed continue to next location
c. Look for the desired link (rel="x"). If not found continue to next location
d. If the link uses a template, apply the template to the resource URI to get the link URI. If template fails, continue to next location
e. Success
5. If no link was found, protocol fails
I am not sure we need 4a.
Trust profiles will need to validate the XRD documents obtained in #1, #4 for host-meta, and #4b.
Also, I am not sure how Template-XRD (used in #4d) will be verified from trust perspective since they will not have a <Subject>.
EHL
EHL
WebFinger will just use the LRDD relation type, so no.
EHL
b.
2009/11/11 Eran Hammer-Lahav <er...@hueniverse.com>:
Joseph A Holsten wrote:
> Anyone want to remind me what happened to the POWDERism
> rel=described-by?
Eran Hammer-Lahav wrote:
> 'describedby' is not protocol-specific. It has a loose semantic
> meaning which tells clients, "try it, it might be someone you
> understand and find useful". It doesn't come with any clear
> processing priority or other restrictions.
Is that worse than rel=alternate? It's much narrower than rel="see-
also". <link rel="describedby" type="application/xrd+xml" href="/disco-
fabulous"> seems perfectly clear.
Much as I enjoy rel=disco, I'd like to know what I'm disco(ver)ing.
I'm discovering services? discovering information-about this resource?
discovering descriptions of this resource? discovering more-links-over-
yonder? I probably don't want to be discovering the lard of this
resource.
Is there not to use a purely declarative semantics, and let the tools
doing the processing? Is it sane to try to separate the document
semantics from their processing implications?
--
j
Sharing a relation type with other protocols such as 'describedby' means we now have to add another check for the media type. In addition, there is nothing to prevent someone for using 'describedby' to link to an XRD to describe the color of the page, given the way it is registered.
It is ok to have non-protocol-specific relation types such as 'alternate'. But that's not what we need here.
EHL
> -----Original Message-----
> From: webf...@googlegroups.com [mailto:webf...@googlegroups.com] On
> Behalf Of Joseph A Holsten
> Sent: Wednesday, November 11, 2009 8:31 AM
> To: webf...@googlegroups.com
> Subject: Re: LRDD proposal draft
>
>
I'm sorry if this is digging up graves, but isn't rel="describedby" with
a type of "application/xrd+xml" sufficient to locate the XRD?
Last I looked this was how one XRD linked to another XRD (for example,
with host-meta and URITemplates) so why wouldn't we use the same
relation/type tuple in the links from the resource to its XRD?
Atom seems to get on okay having the single "permalink" for a entry
being a link whose rel is "alternate" and whose type is "text/html".
Furthermore, the Atom specification itself requires that there not be
more than one rel="alternate" link with the same (type, hreflang) tuple
associated.
This does seem like a deviation from the design of link constructs and
their usage in other specifications. If there has been a discussion
about this elsewhere that has reached consensus that the link design is
flawed and that rel should be the sole selector for a link then I'm
happy to concede, though I would be interested to know where that
discussion took place so I may review it and see the rationales.
(Also, once you stop using "type" as part of the selector it seems a
little pointless to have it at all. You characterized it as a "hint",
but it seems to me that the primary purpose of this hint has been to
exclude from consideration links to unsupported representation formats
without requiring a separate request to be made; if that's not what it's
for, then what exactly is it for?)
Just posted:
http://tools.ietf.org/html/draft-hammer-discovery-04
Please discuss on the IETF Apps list as indicated by the draft (i.e. NOT here).
Coming next is the WebFinger I-D.
EHL