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

Re: Best Practice for URI construction?

  • To: Michael Kay <mike@s...>
  • Subject: Re: Best Practice for URI construction?
  • From: Ian Graham <ian.graham@u...>
  • Date: Sat, 10 Dec 2005 12:41:19 -0500
  • Cc: 'Chris Burdess' <dog@b...>, "'Costello, Roger L.'" <costello@m...>,'XML Developers List' <xml-dev@l...>
  • In-reply-to: <200512101629.jBAGT4aD026907@b...>
  • References: <200512101629.jBAGT4aD026907@b...>
  • User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803

query string best practices
Perhaps a better approach is to ask how people or software expect - or 
should expect - URLs to behave (when dereferenced) when they are 
modified in some way.

I recall some PhD research on this (someone from University of Victoria, 
I believe, about 8 years ago, but I can't recall the author's name).

One observation/result was that a substantial fraction of users expect 
truncating a URL at 'natural' places to return meaningful results. This, 
for example, is one of the intuitive 'search' algorithms people use when 
a link doesn't work. As an example, if

http://somewhere.org/US/IL/

is a valid URL, then truncating this to

http://somewhere.org/US/

should both work and provide meaningful information.

Similarly a person would expect:

http://somewhere.org/US/?st=IL

To degrade naturally when truncated to

http://somewhere.org/US/

However, if you have complicated name/value pairs in the URL query string:

http://somewhere.org/?st=IL&co=US

Then (if I remember correctly) there is no natural truncation, since 
there is no natural hierarchy in the order of query string data. Users 
tend to just chop off the entire query string, and try what's left.

The research had a lot of other interesting observations ... just can't 
recall what they were.... and can't find the paper or remember then name 
of the woman who did the work ...

Ian

Michael Kay wrote:

>>Doesn't that beg the question of whether these things are resources at
>>all, given that resources appear to be defined as "objects on the
>>Internet" by Tim B-L in RFC 1630?
> 
> 
> If we confined ourselves to objects on the internet, life would be much
> easier. Unfortunately, a lot of people seem to be keen on using URIs to
> identify objects in the real world.
> 
> Michael Kay
> http://www.saxonica.com/
> 
> 
> 
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> 
> The list archives are at http://lists.xml.org/archives/xml-dev/
> 
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://www.oasis-open.org/mlmanage/index.php>
> 

-- 
Ian Graham
H: 416.769.2422 / W: 416.513.5656 / E: <ian . graham AT utoronto . ca>

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.