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

Re: ID/IDREF is evil

  • From: Peter Hunsberger <peter.hunsberger@gmail.com>
  • To: Kurt Cagle <kurt.cagle@gmail.com>
  • Date: Wed, 19 Feb 2014 22:29:32 -0600

Re:  ID/IDREF is evil
This has bugged me also off and on again over the years. So to make Rick's suggestion explicit (at least I think it might have been a suggestion); do you think the world would survive if we just said damn the standards Spock and we all started using some sort of convention like: 


???


Peter Hunsberger


On Wed, Feb 19, 2014 at 10:07 PM, Kurt Cagle <kurt.cagle@gmail.com> wrote:
Rick,

Sometimes all you have is a local context, or, more usual, you have a an implicit global context where each identifier is bound to the explicit URI of the overall entity (which may or may not be it's URL, obviously - messaging systems in particular make the question of URLs problematic at times). I get that. The problem I'm raising is actually two-fold. The first is basically that there is no way of explicitly referring to an external entity with a NIEM s:ref, which inherits from the XSD xs:IDREF definition, because this definition is explicitly and intrinsically local. This means that if a resource references another reference, because of the XSD basis of NIEM, you MUST include the referenced entity in the message, regardless of whether it has changed in any way from what may currently exist in the original data context. s:id isn't really an issue - you can always conventionally bind that - but the IDREF itself will not validate if the referenced resource is not available in the same context. This is the argument I've been trying to make for a while.

BTW, for what it's worth I have no problem with ID/IDREF patterns if you KNOW that your context has clearly articulated contextual identifiers. It's when XML leaves the context of a file or database and becomes a message that things become problematic. 

Kurt

Kurt Cagle
Invited Expert, XForms Working Group, W3C
Managing Editor, XMLToday.org



On Wed, Feb 19, 2014 at 7:24 PM, Rick Jelliffe <rjelliffe@allette.com.au> wrote:

While I do think that every document at every significant granularity should have a persistent universal identifier (PRESTO), and while I think id's are great in an 80/20 YAGNI kind of way,  I don't think we should knock id's just because they have document scope: uri fragment # is pretty practical.
For the uses where document scope is not good enough, would getting rid of IDs improve things? It does not seem to follow.
The problem

On 20/02/2014 10:47 AM, "Kurt Cagle" <kurt.cagle@gmail.com> wrote:
Webb,

Thanks for the clarification - this is the first time that I have heard that there was an open world assumption on NIEM XML messages. I understand the need for message id/idref pairs being local, but without the OW assumption, this has always seemed problematic to me.

So, let me ask you a modeling question. You have a weak (i.e., has the potentially to be not immediately dereferenceable) association to an entity that does have a global identifier. Would it be legal to model an explicit named object (such as <ChildRef> for <Child>), with the assumptions that 1) <ChildRef> is a proxy, 2) rdf:about is a valid construct, and 3) child: has a prefix attribute or some other mechanism for resolving the CURIE?

<Person>
       <Name>...</Name>
       <ChildRef rdf:about="child:JaneDoe"/>
</Person>

 I know some people have been working on a NIEM RDF, but the documentation on the ground for it is sparse.





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.