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

Re: RDDL: Should xlink:arcrole or xlink:role be the primary way todispat

  • From: Jonathan Borden <jborden@m...>
  • To: Ron Daniel <rdaniel@i...>
  • Date: Wed, 10 Jan 2001 15:37:52 -0500

xlink arcrole usage
Ron Daniel wrote:

>
> One thing I don't know is what you are referring to by the
> distinction between 'primary' and 'secondary'.  What is
> the difference and why is it important?

The idea is that normally only one value is specified, e.g. only
xlink:arcrole or xlink:role. The prior version of the spec specified:

<!ATTLIST rddl:resource
        xlink:role CDATA #FIXED http://www.rddl.org/#resource
..>

But as it currently stands, its only a default. The "primary" attribute is
intended to be used by most software to dispatch on a given resource. e.g.

    getResource(namespaceURI, arcrole) vs.
    getResource(namespaceURI, role)

In fact my initial Java API and implementation
(http://www/rddl.org/org/rddl) provides a Namespace interface:

import java.util.SortedMap;
import java.util.Iterator;

public interface Namespace {
 public abstract SortedMap getResourcesFromArcrole(String arcrole);
 public abstract SortedMap getResourcesFromHref(String href);
 public abstract SortedMap getResourcesFromRole(String href);
 public abstract SortedMap getResourcesFromTitle(String title);
 public abstract Resource getResourceFromId(String id);
 public abstract Iterator getResources();
 public abstract String getURI();
}

but the typical usage of a 'RDDL URL' is as follows:

    RDDLURL rurl = new RDDLURL(namespace-URI, arcrole-URI); // note: this
could just as easily be 'role-URI'
    InputStream is = rurl.getInputStream();

which dispatches on an xlink:arcrole URI (this being defined as 'primary').
The 'secondary' attribute is used to disambiguate between multiple resources
with the same 'primary' attribute.

......
>
> Is there a list of the sorts of documents you want to associate
> with the namespace URI, and the sorts of things you want to
> do with those documents?
>
http://www.rddl.org/arcrole.htm is a document we've been working on --
intended as a list of commonly used resource formats.

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