From Entity Relationship to XML Schema: a Graph-Theoretic Approach (Extended Abstract)

We propose a mapping from the Enhanced Entity Relationship conceptual model to the W3C XML Schema Language with the following properties: information and integrity constraints are preserved, no redundance is introduced, different hierarchical views of the conceptual information are available, the resulting XML structure is highly connected, and the design is reversible. We investigate two different ways to nest the XML structure: a maximum connectivity nesting, that minimizes the number of schema constraints used in the mapping of the conceptual schema reducing the validation overhead, and a maximum depth nesting, that keeps low the number of (expensive) join operations that are necessary to reconstruct the information at query time using the mapped schema. We propose a graph-theoretic linear-time algorithm to find a maximum connectivity nesting and show that finding a maximum depth nesting is NP-complete. We complement our investigation with an implementation of the devised translation and we embed the implemented module in a software framework for the conceptual and logical design of spatio-temporal databases.

[1]  Ramez Elmasri,et al.  Fundamentals of Database Systems , 1989 .

[2]  Clifford Stein,et al.  Introduction to Algorithms, 2nd edition. , 2001 .

[3]  Tok Wang Ling,et al.  Designing semistructured databases using ORA-SS model , 2001, Proceedings of the Second International Conference on Web Information Systems Engineering.

[4]  R. K. Shyamasundar,et al.  Introduction to algorithms , 1996 .

[5]  Martin Necaský Conceptual Modeling for XML: A Survey , 2006, DATESO.

[6]  Gerti Kappel,et al.  Integrating XML and Relational Database Systems , 2004, World Wide Web.

[7]  Angelo Montanari,et al.  ChronoGeoGraph: an Expressive Spatio-Temporal Conceptual Model , 2007, SEBD.

[8]  Carlo Combi,et al.  Conceptual modeling of XML data , 2006, SAC '06.

[9]  Sebastian Link,et al.  Know your Limits: Enhanced XML Modeling with Cardinality Constraints , 2007, ER.

[10]  Chengfei Liu,et al.  Constraint Preserving Transformation from Relational Schema to XML Schema , 2006, World Wide Web.

[11]  Giuseppe Psaila,et al.  ERX: a conceptual model for XML documents , 2000, SAC '00.

[12]  Terry A. Halpin,et al.  Object Role Modelling and XML-Schema , 2000, ER.

[13]  Carsten Kleiner,et al.  Automatic Generation of XML DTDs from Conceptual Database Schemas , 2001, GI Jahrestagung.

[14]  Veda C. Storey,et al.  Conceptual Modeling — ER 2000 , 2003, Lecture Notes in Computer Science.

[15]  Ramez Elmasri,et al.  Conceptual modeling for customized XML schemas , 2002, Data Knowl. Eng..

[16]  Reda Alhajj,et al.  Conv2XML: Relational Schema Conversion to XML Nested-Based Schema , 2004, ICEIS.