[Home] [By Thread] [By Date] [Recent Entries]

  • To: "Costello, Roger L." <costello@m...>
  • Subject: Re: Best Practice for URI construction?
  • From: Peter Hunsberger <peter.hunsberger@g...>
  • Date: Mon, 12 Dec 2005 09:31:41 -0600
  • Cc: XML Developers List <xml-dev@l...>
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UbNpf20/B9RJppl4z396Ob3gT5V2Uff7bufBrPKnKlmmwrJNujACLq6qLx7WkHvzR2+nEAPOdP3uBr+NcZlNZkVrs3J50GX5CifgenLdg2eaRAHzAHdwRyxUARYrhO0x4QU/1HoKf8KL1OBug/VHxIP0wq79rzdTf1MU2lPbr90=
  • In-reply-to: <B8415163A689094689542C617ECA036650F585@I...>
  • References: <B8415163A689094689542C617ECA036650F585@I...>

On 12/9/05, Costello, Roger L. <costello@m...> wrote:
> Hi Folks,
>
> A URI is used to "identify" a resource:
>
<snip>stuff which everyone has seen a dozen times by now</snnip>

Since I haven't seen it stated explicitly yet (I may have missed it),
let me throw another perspective at this: I find that I tend to treat
the portion of the URL prior to the query string as a class identifier
and the query string as an instance identifier.  Thus:

   org/stjude/cris/totxv/patient

might identify the class of patients enrolled on the TOTXV protocol
here at St. Jude. Whether this in itself returns something useful is
up to the implementer. In our case, if no specific instance is
identifiable, we might default to bringing up a search screen (or a
list) allowing one to find (or pick) an instance.

Given class identification, then:

   org/stjude/cris/totxv/patient?patientId=123456

may return specifics on a given patient.  In general, multiple query
parameters may be needed to completely qualify complex classes, but
the principle remains the same..

This viewpoint may be application specific, but I think it's pretty
generally applicable?

--
Peter Hunsberger

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member