XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Equivalence of hierarchical and flat data formats

To expand on this, the first level of equivalence between two data models is to show that there's a one-to-one correspondence between their value spaces. That's tricky to achieve, but feasible. To do a perfect one-to-one correspondence, you tend to find that the representation in one of the models is rather contorted and unnatural, and in practice people tend to prefer mappings that are imperfect but more natural - we see that all the time with XML-to-JSON mappings.

The second level of equivalence is to show that there's a one-to-one correspondence between the state transitions (updates) supported by the two models. That's very much harder.

Michael Kay
Saxonica


As it happens, I completed my PhD 47 years ago, and it was on the subject of mappings between relational data models and network (Codasyl) models. The key conclusion was that it's very easy to do a mapping that supports all the same retrieval queries, but doing a mapping that supports exactly the same set of permitted updates is well nigh impossible.

One of the issues here is ordering. As soon as you start representing relationships using primary and foreign keys, you lose any natural way of representing order in the relationship, and if you try to represent order for example by using sequence numbers, then it becomes very hard to allow update primitives like "insert a new item at the start" without also allowing other update primitives that you don't want to allow.

Michael Kay
Saxonica




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


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS