[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Best Practice for URI construction?

  • 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...>

querystring multiple parameters
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.