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

Re: Re: Why REST was Re: URIs are simply names


data uri creator
David Carlisle wrote:


>
> > Yep. Namespaces do work. As I said: a URI is just a name. A namespace
name
> > is a URI. It all works.
>
> Saying a namespace name is a URI is a) inaccurate as it is a URI
> reference, and b) not the same as saying a namespace is a resource,
> don't conflate the name with the thing.

Correct, a namespace name is a URI reference. Most namespace names, except
in RDF applications are proper URIs. RDF considers a URI reference to
identify an (RDF) resource, so I think everyone should be happy on this
count. I do agree that the status of what a URI reference ought identify
needs to be clarified -- people do seem to have different opinions about
that.

But as you say, XML namespaces do work in practice. So there is no real
problem.

>
>
> But part of that working is accepting the possibility that a given
> string can refer to one thing if used as a namespace name and another if
> used as a URI.

No I think using a namespace name as a URI (or URI reference assuming the
issue is clarified) is perfectly correct.

>
> The same is true of
> <x:x xmlns:x="data:,x"/>
> You may think it's a bad namespace name (actually I've used it quite a
> lot in XSLT stylesheets once my previous preferred namespace of "x"
> was deprecated.)

I am not saying it is an _illegal_ namespace name, just not one I would
recommend deploying a large scale application on. You are allowed to use
this URI (reference) for whatever purpose you choose, and I completely agree
that you are allowed to create this. The "data" scheme may be the single
exception to the rule that the creator of the URI is allowed to say what it
means, i.e. what resource it identifies, because one might take the position
that the resource _is_ the identified string "x" ... but I haven't given
this much thought. I suppose one might say that it is the _entity_ which
equals "x". Perhaps this is the exception that proves the rule. In any case
when you use such a namespace name, you are clearly indicating to me that
you do not indend to assign any semantics to this namespace. You certainly
have that right.

Really, the way I should have stated it to the initial question: Does the
namespace equal the resource?

What the resource _is_ depends on the intentions of the creator of the URI
(reference). In many cases the URI reference is _intended_ to identify a
namespace in which case the identified resource _is_ the namespace. In other
cases the creator of the document intends to use the namespace simply as
syntactic punctuation -- the "data" scheme seems quite acceptable for this.
In the end it all depends on what the creator of the namespace intends.

Jonathan




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.