[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [xri] URIMap element (was: XRD trusted discovery workflow)
Yes. I wish I wasn’t so distracted the past two days and
available to offer my views on this (which are both based and directing the
work on /site-meta and XRD), and maybe save you all this very long thread… At the /site-meta level, there will be a facility to describe
URI mapping via a URI template. /site-meta will have a canonical TEXT
representation (Mark will hopefully push it out soon) instead of the current
XML. XRD will define an XRD-based version of /site-meta so that a GET on
/site-meta with Accept: application/xrd+xml will produce an XRD version of the
same content (or just return the text format). At this level, templates will
need some filtering based on the URI scheme. The template element itself will need to support 2 attributes:
vocabulary and syntax. This will allow any URI template format and any
vocabulary. Within XRD, both can be implied from the <Rel> or
<Type> of the <Link> (<Service>) but this is more true for vocabulary
than syntax. I will send a full walkthrough tomorrow which will help understand
how all this will work. The most important take-away is that it doesn’t matter
what you start with (mailto, http, im, etc). /site-meta will map any URI to the
HTTP URI of the descriptor. Once you get an XRD file, you continue the same
way. EHL From: Drummond Reed
[mailto:drummond.reed@cordance.net] My takeaway from the recent URIMap discussion is that there are two
“levels” where we need URI mapping. The first one is at the XRD level (the site-meta level). The use
case here is, “I have URI X and I need to find the XRD for it.”
Finding that XRD can require requesting the site-meta file and then using
it’s URIMap to find the XRD (I understand site-meta may not be XML so it
may not have a URIMap element, but it would be whatever the URI mapping
equivalent is). The second level is following a link from one XRD to a related
resource. The use case here is, “I have the XRD for URI X and now I want
the URI Z for the resource whose relation is Type Y”. Computing URI Z
from URI X can require a URIMap. It seems that for the first level, the URIMap element should be in
the /site-meta file (or the XRD that serves that role if we support that
option). For the second level, the URIMap element should be a child of
<Service> (or <Link> if we call it that). Do I have this right? =Drummond From: sappenin@gmail.com
[mailto:sappenin@gmail.com] On Behalf Of David Fuelling On Thu, Dec 11, 2008 at 7:10 PM, Dirk Balfanz <balfanz@google.com> wrote:
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]