© Krumbein / Kudrass ADBIS | 2003 September 3-6, 2003, Dresden, Germany {kudrass | Thomas Kudrass, Tobias Krumbein Rule-Based.

Slides:



Advertisements
Similar presentations
Three-Step Database Design
Advertisements

the Entity-Relationship (ER) Model
What is XML? a meta language that allows you to create and format your own document markups a method for putting structured data into a text file; these.
XML: Extensible Markup Language
ISO DSDL ISO – Document Schema Definition Languages (DSDL) Martin Bryan Convenor, JTC1/SC18 WG1.
An Introduction to XML Based on the W3C XML Recommendations.
Database Systems: Design, Implementation, and Management Tenth Edition
Database Systems: Design, Implementation, and Management Ninth Edition
Introduction to Databases
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 13-1 COS 346 Day 25.
Visual Web Information Extraction With Lixto Robert Baumgartner Sergio Flesca Georg Gottlob.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
File Systems and Databases
TU/e eindhoven university of technology / faculty of mathematics and informatics Exporting Databases in XML DTD A Conceptual and Generic Approach Philippe.
File Systems and Databases Hachim Haddouti
Fundamentals, Design, and Implementation, 9/e COS 346 Day 2.
XML –Query Languages, Extracting from Relational Databases ADVANCED DATABASES Khawaja Mohiuddin Assistant Professor Department of Computer Sciences Bahria.
Chapter 4 Entity Relationship (E-R) Modeling
Sebastian Bitzer Seminar Semistructured Data University of Osnabrueck May 2, 2003 XML An introduction in relation to semistructured.
Modeling & Designing the Database
Introduction to XML This material is based heavily on the tutorial by the same name at
1 Advanced Topics XML and Databases. 2 XML u Overview u Structure of XML Data –XML Document Type Definition DTD –Namespaces –XML Schema u Query and Transformation.
Chapter 14 & 15 Conceptual & Logical Database Design Methodology
4/20/2017.
10/14/2001 Coping with Semantics in XML Document Management Thomas Kudrass Leipzig University of Applied Sciences Department of Computer Science and Mathematics.
Management of XML Documents in Object-Relational Databases Thomas Kudrass Matthias Conrad HTWK Leipzig EDBT-Workshop XML-Based Data Management Prague,
CSE314 Database Systems Data Modeling Using the Entity- Relationship (ER) Model Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson Ed Slide Set.
XML-to-Relational Schema Mapping Algorithm ODTDMap Speaker: Artem Chebotko* Wayne State University Joint work with Mustafa Atay,
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
Week 1 Lecture MSCD 600 Database Architecture Samuel ConnSamuel Conn, Asst. Professor Suggestions for using the Lecture Slides.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
Lecture 6 of Advanced Databases XML Schema, Querying & Transformation Instructor: Mr.Ahmed Al Astal.
Session II Chapter 2 – Chapter 2 – XSLhttp://
Database Systems: Design, Implementation, and Management Ninth Edition
9/14/2012ISC329 Isabelle Bichindaritz1 Database System Life Cycle.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/1 Copyright © 2004 Please……. No Food Or Drink in the class.
A Z Approach in Validating ORA-SS Data Models Scott Uk-Jin Lee Jing Sun Gillian Dobbie Yuan Fang Li.
XML과 Database 홍기형 성신여자대학교 성신여자대학교 홍기형.
Introduction to MDA (Model Driven Architecture) CYT.
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
Chapter 27 The World Wide Web and XML. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.27-2 Topics in this Chapter The Web and the Internet.
Processing of structured documents Spring 2002, Part 2 Helena Ahonen-Myka.
SaveUML System design. System overview Possible...
1 A Demo of Logical Database Design. 2 Aim of the demo To develop an understanding of the logical view of data and the importance of the relational model.
XML Databases by Sebastian Graf Hier beginnt mein toller Vortrag.
Chapter 27 The World Wide Web and XML. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.27-2 Topics in this Chapter The Web and the Internet.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
XML and Its Applications Ben Y. Zhao, CS294-7 Spring 1999.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
XML A Language Presentation. Outline 1. Introduction 2. XML 2.1 Background 2.2 Structure 2.3 Advantages 3. Related Technologies 3.1 DTD 3.2 Schemas and.
DatabaseIM ISU1 Fundamentals of Database Systems Chapter 3 Data Modeling Using Entity-Relationship Model.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
1 Storing and Maintaining Semistructured Data Efficiently in an Object- Relational Database Mo Yuanying and Ling Tok Wang.
XML Notes taken from w3schools. What is XML? XML stands for EXtensible Markup Language. XML was designed to store and transport data. XML was designed.
Data Modeling Using the Entity- Relationship (ER) Model
XML: Extensible Markup Language
Data Modeling Using the Entity- Relationship (ER) Model
Entity- Relationship (ER) Model
Entity-Relationship Model
Database Processing with XML
Conceptual data modeling
File Systems and Databases
Lec 3: Object-Oriented Data Modeling
Data Model.
Database Design Hacettepe University
Chapter 7: Entity-Relationship Model
CSE591: Data Mining by H. Liu
Presentation transcript:

© Krumbein / Kudrass ADBIS | 2003 September 3-6, 2003, Dresden, Germany {kudrass | Thomas Kudrass, Tobias Krumbein Rule-Based Generation of XML DTDs from UML Class Diagrams

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 2 Motivation XML Databank Design UML to XML Data Model UML to DTD Design Process for XML-DB Conclusions Outlook Overview Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 3 Motivation Growing Importance of XML –standard representation –different data expressed in XML Different Applications –data exchange / data representation / data storage Different Requirements Classification of XML Documents –document-centric, semistructured, data-centric Heterogeneity of XML not always desired –definition of a schema to restrict structure and content (e.g., for XML databases) Lack of Design Tools for Schemas Definition mostly intuitive –e.g., by tree-based graphical tools (XML Spy,...) Semantics of Data not guaranteed –Different views on data Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 4 Motivation Complexity  correct schema Redundancy cannot be avoided Later changes of the data model expensive Growing usage of XML  requires efficient management and re-use  XML databases Up to now no complete design methodology for XML databases Target of our work –Development of an XML DB design –XML schema-independent modelling (conceptual model) –automatic generation of a DTD as XML DB schema Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 5 XML DB Design Three-Level Design Process –Conceptual Model modeling of the information requirements –Logical Schema (DTD as XML schema) storage and representation of the data and the data model –Physical Level indexes and access paths Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 6 XML DB Design Physical Level Document- Processing Documents Design of XML Conceptual Logical Level Conceptual XML Databases Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 7 XML DB Design Three-Level Design Process –Conceptual Model modeling of the information requirements –Logical Schema (DTD as XML schema) storage and representation of the data and the data model –Physical Level indexes and access paths Classification of XML documents –Document-centric (unstructured, irregular) –Semistructured (data- und document-centric components) –Data-centric (structured, regular) No uniform XML DB design for all document types Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 8 XML DB Design document-centricsemistructureddata-centric conceptual level modeling of stucture and content modeling of structure and content modeling of structure tree-based XML editorsER, UML, ORM logical level document model / updates to structure / content data model / document model queries / updates to structure / content data model queries / updates to content SGML, XML XPath, DOM, XQuery OEM, XML Lorel, XQuery relational DM object-oriented DM XML SQL, OQL, XQuery physical level storage of structure at value level storage of structure at schema and value level storage of structure at schema level files full-text index structure index generic storage of graphs DOM relational DB object-relational DB object-oriented DB Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 9 Documents Design of XML- Conceptual UML to XML Data Model ER ORM UML Conceptual LevelLogical Level Supports Object Modelling Classic Design Method Superset of Entity Relationship Model Standardized Exchange Format with XMI CASE tool independent Modelling possible Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook XML Data Model

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 10 XML Data Model UML to XML Data Model Conceptual LevelLogical Level c1caca r c2 DTD Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 11 UML to DTD UML Model Document Type Definition Model Instance XML Document Instance ofValid with Transformation into Same Data Semantics Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 12 UML Class Diagram Class Name, abstract Inheritance / Generalization Child, Parents Package Name Association Name optional, 2..* members Association Class Name Association End Role name, Multiplicity, Navigability, Type Attribute Name [min..max] : Type Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 13 Class –Properties represented as attributes –Can take part at associations –instances = objects –unique XML element definition –can possess properties as attributes –can have subelements –instances = elements –Uniqueness by ID attribute UML Classes to DTD Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook Person name : String > street : String > zip : String > city : String

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 14 UML Attributes to DTD UML AttributeXML AttributeXML Element primitive / complex datatypes primitive datatypeprimitive / complex datatype any multiplicity[0..1] and [1..1]any multiplicity property-stringnot supportedproperty-string as attributes default value not supported initial valueonly fixed valuenot supported value listenumeration supportednot supported scope of definitionlocal scopeglobal scope access propertiesnot supported Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 15 UML Attributes to DTD Transformation as XML attributes <!ATTLIST Person name CDATA #REQUIRED birthday CDATA #IMPLIED sex (M|F) “M“ NMTOKENS #REQUIRED address CDATA #REQUIRED> Transformation as XML elements <!ELEMENT Person(name,birthday?,sex,( , ?, ?, ?, ?),address)> Person name : String birthday : Date[0..1] sex : (M|F)=“M“ String[1..5] address : Address Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 16 UML Associations to DTD Hierarchy –Use of element – subelement relationship –Only 1:n relationship possible, otherwise redundancy –Subelement always bound to the life span of the parent element –Problemes with recursions in model –Only applicable for read-only data Association Element –Global element representing the association –IDREF references to class elements of the association –No definition of multiplicity –No type integrity Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 17 UML Associations to DTD References with ID/IDREF –Class element contains subelement with IDREF Attribute to reference the related class elements –Any multiplicity can be represented –No type integrity, only use of naming conventions –Only unidirectional associations can be represented –No guarantee for mutual references in bidirectional associations XLink und XPointer –Predefined Attributes –Simple / Extended XLinks available –Links among multiple documents possible –No type integrity, check depends on XML processor Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 18 UML Associations to DTD References with ID/IDREF CompanyEmployee has works in 0..* + Employee 1 + Company <!ATTLIST Employee id ID #REQUIRED > <!ATTLIST Ref_Employee.Company Company IDREF #REQUIRED> <!ATTLIST Company id ID #REQUIRED > <!ATTLIST Ref_Company.Employee Employee IDREF #REQUIRED> Role Name Multiplicity Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 19 Association Classes and N-ary Associations Same mapping alternatives as for associations –Hierarchical relationship – association attributes add to the subelement –Association Element – contain the association attributes –References with ID/IDREF - association attributes add to the reference element (are stored twice) –XLink and XPointer – contain the association attributes –resolution into a Class and two binary association N-ary associations –Association Element and XLink can only represent a N-ary association –resolution into a Class and N binary association Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 20 Association Classes to DTD References with ID/IDREF CompanyEmployee 0..* + Employee 1 + Company Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook Contract beginn : Data end : Date salary : Double

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 21 UML Composition to DTD Exclusive part-whole relationship Lifespan of parts are bound to the whole Hierachical relationship provides suitable semantics CompanyDepartment ◄ has ► 1..* + Departments 1 + Company <!ELEMENT Company (Ref_Company.Department+) <!ELEMENT Department (...) Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 22 UML Generalization to DTD Parameter Entities –defined for attributes and subelements of superclasses –subclass inherits attributes using parameter entities –single inheritance only Embedded Elements –superclass embedded into the subclass element –superclass element substituted by a choice list that contains the superclass element and all its subclass elements –multiple inheritance possible Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 23 UML Generalization to DTD Person Name : String Employee job : String Parameter Entities <!ENTITY % PersonAttList “ id ID #REQUIRED Name CDATA #REQUIRED”> <!ATTLIST Employee %PersonAttList; Job CDATA #REQUIRED > Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook Embedded Elements

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 24 UML to XML Data Model conceptual levellogical level XSLT Prozessor DTD Rational Rose other CASE tools Unisys Rose XML Tools XML DB Transformation Tool XSL Stylesheet XMI Document Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 25 Evaluation of the DTD Transformation Advantages-widely accepted standard Drawbacks-weak data typing -no type integrity -global element definitions only -no object-oriented constructs (e.g., generalization) -no XML Syntax Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 26 Conclusions Separate conceptual and logical level Advantages of the XML DB Design –better quality of database / DB schema –preserve data semantics –early detection and elimination of errors –cost savings by conceptual modeling –quick changes possible –design can be verified vs. the requirements –better readibility and understanding by graphical representation Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 27 Conclusions Problems –UML is object-oriented, XML tree-based –Classes and associations in UML XML has no concept for associations (embedding of child elements corresponds with aggregation) –No 1:1-Mapping of UML to XML structures Mapping of UML to XML ambiguous (several possibilities) Choice of mapping alternatives are Design Decisions –Transformation not lossless but loss of information can be determined Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 28 Outlook Use of name spaces to avoid naming conflicts Evaluate OCL Constraints Transformations to XML Schema and Tamino Schema Definition Better Implementation with XSLT and XPath 2.0 possible ? Adaptation of the XSL-Stylesheets to the new version of Unisys Rose XML Tools - no 100 % XMI- Standard Dynamic Transformation –Multi-level XSLT-Transformation Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 29 Outlook Parameter XML Document Generic Stylesheet XMI Document Generic Stylesheet XSLT Prozessor Generated Schema Motivation XMLDB Design UML  DM UML  DTD Design Process Conclusions Outlook

© Krumbein / Kudrass Rule-Based Generation of XML DTDs from UML Class Diagrams 30 Thank you very much for your attention