Modeling XML. XML Schema Languages DTD, XML Schema, Relax NG Specification of structure of XML documents What elements and attributes can be used Problems.

Slides:



Advertisements
Similar presentations
Using UML, Patterns, and Java Object-Oriented Software Engineering Chapter 2, Modeling with UML, Part 4 UML 2 Metamodel.
Advertisements

Visualization Kenny Inthirath.  Reviewing a Suitable Technique to Use  Scope and Purpose  What types of models can be represented?  Architectural.
IEC Substation Configuration Language and Its Impact on the Engineering of Distribution Substation Systems Notes Dr. Alexander Apostolov.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 8 Slide 1 System modeling 2.
BIS Database Systems School of Management, Business Information Systems, Assumption University A.Thanop Somprasong Chapter # 6 Advanced Data Modeling.
Amit, Keyur, Sabhay and Saleh Model Driven Architecture in the Enterprise.
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 8 Slide 1 System models.
Chapter 6 Methodology Conceptual Databases Design Transparencies © Pearson Education Limited 1995, 2005.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Lecture Fourteen Methodology - Conceptual Database Design
Fundamentals, Design, and Implementation, 9/e COS 346 Day 2.
Chapter 4 Entity Relationship (E-R) Modeling
Methodology Conceptual Database Design
Foundations This chapter lays down the fundamental ideas and choices on which our approach is based. First, it identifies the needs of architects in the.
UML Class Diagrams: Basic Concepts. Objects –The purpose of class modeling is to describe objects. –An object is a concept, abstraction or thing that.
Roles and Responsibilities Jahangheer Shaik. Service Specification Specification requires development of three inter-related documents CIM, PIM and PSM.
ARCH-6: UML Modeling with Enterprise Architect Phillip Magnay Technical Architect.
International Telecommunication Union ITU-T Study Group 17, Moscow, 30 March – 8 April 2005 New Recommendations on ODP Arve Meisingset Rapporteur Q15.
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.
Implementation of ISO Encoding Joint Nordic Implementation project Morten Borrebæk Norwegian Mapping Authority,
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 7 Slide 1 System models l Abstract descriptions of systems whose requirements are being.
Chapter 4 System Models A description of the various models that can be used to specify software systems.
System models Abstract descriptions of systems whose requirements are being analysed Abstract descriptions of systems whose requirements are being analysed.
Methodology - Conceptual Database Design Transparencies
Software School of Hunan University Database Systems Design Part III Section 5 Design Methodology.
Methodology Conceptual Databases Design
1 Chapter 15 Methodology Conceptual Databases Design Transparencies Last Updated: April 2011 By M. Arief
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/1 Copyright © 2004 Please……. No Food Or Drink in the class.
Introduction to MDA (Model Driven Architecture) CYT.
©Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapter 7 Slide 1 System models l Abstract descriptions.
Methodology - Conceptual Database Design. 2 Design Methodology u Structured approach that uses procedures, techniques, tools, and documentation aids to.
Methodology: Conceptual Databases Design
Team Dosen UMN Database Design Connolly Book Chapter
Conceptual Database Design
Chapter 7 System models.
Model Driven Development An introduction. Overview Using Models Using Models in Software Feasibility of MDA MDA Technologies The Unified Modeling Language.
System models l Abstract descriptions of systems whose requirements are being analysed.
CS 4310: Software Engineering Lecture 4 System Modeling The Analysis Stage.
Modified by Juan M. Gomez Software Engineering, 6th edition. Chapter 7 Slide 1 Chapter 7 System Models.
Sommerville 2004,Mejia-Alvarez 2009Software Engineering, 7th edition. Chapter 8 Slide 1 System models.
Methodology - Conceptual Database Design
 What is Modeling What is Modeling  Why do we Model Why do we Model  Models in OMT Models in OMT  Principles of Modeling Principles of Modeling 
XASTRO Metamodel. CCSDS SAWG2 Presentation Outline XASTRO-1 Metamodel XASTRO-2 Metamodel Alignment with Model Driven Architecture.
Object Oriented Software Development
XML Schemas: From Design to Exploitation and Back Again Irena Mlýnková, Martin Nečaský Charles Univeristy in Prague Svratka 2008.
Technical Overview The Fastest Way to Create Architecture!
Databases Illuminated Chapter 3 The Entity Relationship Model.
® A Proposed UML Profile For EXPRESS David Price Seattle ISO STEP Meeting October 2004.
The Model-Driven DDI Approach Arofan Gregory, Jon Johnson, Flavio Rizzolo, Marcel Hebing.
1 Technical & Business Writing (ENG-715) Muhammad Bilal Bashir UIIT, Rawalpindi.
Chapter 5 System Modeling. What is System modeling? System modeling is the process of developing abstract models of a system, with each model presenting.
XASTRO-2 Presentation CCSDS SAWG th November 2004.
Yu, et al.’s “A Model-Driven Development Framework for Enterprise Web Services” In proceedings of the 10 th IEEE Intl Enterprise Distributed Object Computing.
® IBM Software Group © 2009 IBM Corporation Viewpoints and Views in SysML Dr Graham Bleakley
Chapter 5 – System Modeling Lecture 1 1Chapter 5 System modeling.
CHESS Methodology and Tool Federico Ciccozzi MBEES Meeting Sälen, January 2011 January 2011.
Defects of UML Yang Yichuan. For the Presentation Something you know Instead of lots of new stuff. Cases Instead of Concepts. Methodology instead of the.
Data Modeling Using the Entity- Relationship (ER) Model
Methodology Conceptual Databases Design
Software Engineering Lecture 4 System Modeling The Analysis Stage.
Methodology Conceptual Database Design
Web Application Modeling
Abstract descriptions of systems whose requirements are being analysed
Advanced Database Models
Chapter 2, Modeling with UML, Part 4 UML 2 Metamodel
Evaluating Compuware OptimalJ as an MDA tool
UML profiles.
Constructing MDA-based Application Using Rational XDE for .NET
Methodology Conceptual Databases Design
Presentation transcript:

Modeling XML

XML Schema Languages DTD, XML Schema, Relax NG Specification of structure of XML documents What elements and attributes can be used Problems Complexity Too technical for non-technical people Absence of semantics

XML Schema Languages Real applications Different groups of users viewing problem domain from different viewpoints  various types of XML documents ("XML views") in system

XML Schema Languages Data Data > PurchaseRequest > PurchaseResponse > Catalogue > SalesReport

XML Schema Languages One real-world concept (e.g. customer or product) represented in various types of XML documents in different ways Description distributed across various XML schemas redundancy & incompleteness Lack of complete & non-redundant description

XML Schema Languages HL7 exchanging medical records UBL exchanging business data ISO20022 exchanging financial data common charasteristics: Hundreds of XML schemas

XML Schema Visualization XML Spy, Stylus Studio, Oxygen XML Editor, … Visualization of each construct of particular XML schema language Usually XML Schema

XML Schema Visualization

Easier to understand XML schemas Just visualization – does not provide complete & non-redundant description

Model-Driven Architecture IDEA: describe data at various levels of abstraction PIM (Platform-Independent Model) Description of data independent of any data model and particular user view PSM (Platform-Specific Model) Description of data from particular user view Description of implementation in particular data model (relational, xml)

PIM Diagram

PSM Diagram – Relational Schema

Model-Driven Architecture Can be naturally applied on designing XML as well PSM = UML class model extended with set of stereotypes for modeling constructs of particular XML schema language Enterprise Architect PSM for XML Schema

PSM Diagram

PSM Diagram – Relational DB

Model-Driven Architecture Allows describing problem domain independently of XML Complete and non-redundant description No or weak binding between PIM and PSM level in recent tools

A Tool for XML Data Modeling

XCase Software Project ‘XSEM - Proof of concept’ project at MFF UK March – December 2008 Supervisor: Martin Nečaský, PhD Team members: Jakub Klímek, Lukáš Kopenec, Lucie Kučerová, Jakub Malý, Kateřina Opočenská Official website: Download & sources: Almost 4000 downloads so far! Presented at ITAT 2008

XCase Overview XCase implements XSEM, a conceptual model for XML data XSEM is based on MDA (Model-Driven Architecture) Platform Independent Model (PIM): UML class diagram XML-independent conceptual description of problem domain Platform-Specific Model (PSM): Extended UML class diagram Introduced new constructs for modeling XML hierarchy

XCase Design Process

XCase PIM Level Support of all well-known UML class diagram constructs: Classes Class attributes Class operations Associations Binary associations, n-ary associations Aggregations, compositions Association classes Generalizations

XCase PSM Level New constructs to UML class diagram: Attribute container Models attributes that should be expressed as XML elements instead of XML attributes Content choice Models variants in the content of PSM class Content container Models XML element that has no semantic equivalent at the PIM level (i.e. no equivalent PIM class) Class union Models a mixture (union) of instances of two or more PSM classes.

Ensuring PIM – PSM Consistency Dynamic propagation of changes: 1] from PIM diagrams to corresponding PSM diagrams New PIM association added → new child available in PSM Association cannot be removed from PIM if corresponding association is still present in PSM New attribute added in PIM → available in PSM Attribute removed from PIM → warning about removing from PSM Attribute changes in PIM propagated to corresponding attribute in PSM Automatic propagation: name, data type, default value User asked for confirmation: multiplicity 2] from PSM diagrams to corresponding PIM diagrams User can propagate free PSM attribute to PIM

XML Schema Derivation 1 XML Schema document derived from 1 PSM diagram Automatic derivation Starts in root PSM classes and proceeds recursively to their descendants Each PSM construct is translated to appropriate XML Schema construct Derived schemas are not saved within XCase project Can be derived, edited and saved anytime again

Live show begins …