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

Re: XML Data Modellling/Linking (was RE: AfterXQuery


xml data linking
Michael Champion wrote:
> On Fri, 22 Oct 2004 21:15:54 GMT, rpbourret@r...
> <rpbourret@r...> wrote:
> 
>>Michael Kay wrote:
>>> Why can't we have multiple hierarchic views of the same network?
>>> Why do all my queries have to change depending on whether my footnotes are
>>> inline, out-of-line referenced by IDREFs, or in external documents
>>> referenced by URI? What happened to the old doctrine of data
 >>> independence?
> >
>>Hmmm... Sounds like the relational model. (Sorry, couldn't resist.)
>>
>>I think this could actually be dealt with at the query language level,
> 
> I hope you're not joking :-)
 >
> The CODASYL data model ultimately foundered because of its unwieldy
> links, and XLink foundered trying to do something similar for XML. 
> Maybe the lesson here is that the relational model approach of
> defining links *dynamically* based on relationships on the *values* of
> information items rather than predefined links really is the way to do
> what XLink tried to do.

Agreed, but it's also part of the catch.

Operators that automatically knew to follow links would have to know 
that links are in fact links. And since it is unlikely that the values 
being used to make the link are URIs, they would also need some sort of 
information about the link target.

For example, given the element <part>123</part>, it would be nice to 
link this with a document containing more information about part 123, 
but XQuery would need to know where to go looking for that document.

One possibility is some sort of external document containing link 
information, as Dave Pawson suggests. Note that this could be in the 
form of schema annotations, as this is the normal source of such 
information for XQuery. [Insert groans from the 
I-don't-like-mixing-schemas-and-queries crowd here.]

While schemas might be a good place to tell the query that an element or 
attribute represents a link, I don't think it's a good place to put 
information about where to go to resolve the link, as the schema is 
portable but location information, such as where a parts document is, is 
not.

The other obvious source of the information is the query itself, but 
then we've already got this :)

On a related point, I think it would be nice to be able to just say, 
"This is a link," without any of the additional explanatory information 
that XLink gives (type, role, etc.). The advantage of this is 
simplicity, and it really isn't that unreasonable when you think about 
it: Most interpretation of XML documents is application specific anyway, 
so why should links be any different?

-- Ron



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.