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

Re: Comparable considered necessary


comparable equals

Simon St.Laurent wrote:
>
> I think the largest concrete problem I have with URIs is their lack of a
> common mechanism for saying this equals that.

Two URIs are equal if they are textually identical; that
much should be apparent.

IMO, the only sensible scheme is to strengthen this to 
"if _and only if_" they are textually identical.  Adding 
any other criteria starts down a very steep slippery
slope into unmanageable complexity.

> I can live without
> ordering for names, so that's not a big deal, but the lack of clarity on
> things like:
>
> HTTP://MONASTICXML.COM
> vs.
> http://monasticxml.com
> vs.
> http://monasticXML.com
>
> is pretty much killing, even without issues of relative and absolute,
> query strings, etc.

The only sensible thing to do is to treat all three of
these as distinct URIs.  One _could_ argue that since
the 'http' scheme uses a server-based naming authority,
and since hostnames are case-insensitive according to DNS,
that the latter two should be considered equal.

But there's that slippery slope:  according to DNS,
'monasticxml.org', 'www.monasticxml.org', and '66.45.6.211'
are _also_ equivalent (at least today).


> The lack of clarity - heck, the outright refusal to acknowledge the
> question - about how to get from an identifier to a resource or back
> again - is the nails in the coffin.

I disagree; refusing to acknowledge the question is the
only sensible thing to do.  Asking "Do these two URIs identify
the same resource?" is like asking "are the chair in my living
room and the chair in my dining room both shadows of the
same Platonic Chair?"  Better to unask the question; you
can't reliably get a useful answer.

"Are X and Y the same URI?" is answerable.  "Do X and Y identify
the same resource?" is not.


--Joe English

  jenglish@f...

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.