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

Re: URI for class names and native data types

corba uri

Clark C . Evans writes:
 > On Tue, Dec 18, 2001 at 01:15:43PM -0000, Leigh Dodds wrote:
 > | For Java purposes, why not use the javadoc URI?
 > | e.g. http://java.sun.com/j2se/1.3/docs/api/java/lang/Integer.html
 > works across multiple languages.  After reading the
 > RFC a bit more, I was thinking something like this:
 >    type://language/the/package/path#classname

Some comments:

  1.  The "//" is the hostname separator, and doesn't make sense for
      this kind of URN.  So your template becomes


  2.  I can see how you make names for classes in modules, but there's
      more to it than that.  Most languages (not all) have some types
      for which there is no corresponding named type in the package
      namespace.  Numeric types often fall into this category; think
      of "int" in C/C++.  How could these be spelled?  Perhaps there
      needs to be another "chunk" to the URNs.  Let's try this, and
      change the "chunk separator" to ":" instead of "/", to make it
      more easily distinguished:


      A class in a package/module might then be:


  3.  Have you considered types that are defined abstractly rather
      than for a specific programming language?  Say, in an interface
      definition language such as CORBA IDL, or some other formal


There are still (huge!) potential problems with these, I think.
Versioning is as much a problem here as in other areas, and would
probably need to be dealt with.  Naming conflicts exist in the space
being described, as well, so it's hard to name types that have the
same name by coincidence: suppose two companies build their own
MailSystem::Server interface using CORBA, and your job is to write a
report explaining which one your employer should adopt.


Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Zope Corporation


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.
First Name
Last Name
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.