© 2005-2006 The ATHENA Consortium. 6-3b. Atlas Transformation Language (ATL) Tutorial / Exercise,

Slides:



Advertisements
Similar presentations
ACM 97 Brenda Laurel Actor and Researcher, Computer and Theater Arts, Interval Research Corporation The Long Term Impacts of Information Technology on.
Advertisements

© The ATHENA Consortium From PIM4SOA to Web Services,
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 1.
Based on material developed in ATHENA (IST ) and MODELWARE (IST ) 6-1c. MOFScript - Model to Text Transformation,
© 2007 ATLAS Nantes 1 Atlas Model Weaver Use Case: Aspect Oriented Modeling Marcos Didonet Del Fabro Atlas Group (INRIA & LINA), Université de Nantes,
Presented by Farhana Islam (CU ) Md Riyadh (CU ) Comparison Between Two Model Transformation Frameworks: Kermeta and ATL Presentation.
Families to Persons © 2007 ATLAS Nantes "Families to Persons" A simple illustration of model-to-model transformation Freddy Allilaire Frédéric Jouault.
© The ATHENA Consortium. CI2: The ATHENA Interoperability Framework Module 2: e-Procurement Scenario Furniture Sector 2.
Lime Survey Training For School Managers and Program Associates.
Department of Computer Science Business Information Systems 1 Model Interchange between ARIS and Eclipse EMF Heiko Kern and Stefan Kühne {kern,
MDA and QVT in Together Architect 2006  Pavel Kobiakov, Borland Software Corporation  06 December 2005.
Telecom and Informatics :: INF5120 :: Mansur Abbasi & Svein Melby Assignment 1 – First aid - Clarifications, issues and insight.
1Business Models – REA Ontology Resources Events Agents The REA Ontology.
ACM 97 Bandwidth and Pizza Reed Hundt Chairman, Federal Communications Commission.
IBM Software Group © 2005 IBM Corporation University of Nantes Eclipse dayMarch 2005 The Eclipse Modeling Framework and the IBM Model Transformation Framework.
XML Metadata Interchange (XMI)
Formalizing Material Flow Diagrams How can an MDE approach be used to improve the design process of material handling systems? Robert-Jan Bijl.
© The ATHENA Consortium. CI2: The ATHENA Interoperability Framework Module 3: Collaborative Product Development Scenario Aeronautics and Aerospace.
ReturnLocation.com An Overview for Users: Equipment Providers and Motor Carriers.
Advanced Applications Of Model-to-Model Transformation © 2008 INRIA Advanced Applications Of Model-to-Model Transformation Hugo Bruneliere & Frédéric.
© The ATHENA Consortium. EM1 - Enterprise Modelling as a way to achieve Interoperability Module 4 - How does Enterprise Modelling address these.
© The ATHENA Consortium From PIM4SOA to Peer-2-Peer (P2P),
© The ATHENA Consortium. AP5 – Principles of Model-Driven Interoperability Learn about model-driven interoperability, metamodelling, UML profiles.
© The ATHENA Consortium. EM1 - Enterprise Modelling as a way to achieve Interoperability Module 2 - What are the current methods and tools for.
© The ATHENA Consortium Metamodelling,
UML2 Package Merge Usage scenarios and their effect on XMI and Java API interoperability Bran Selic, Jim Amsden, Kenn Hussey Oct, 2003.
© The ATHENA Consortium. CI2: The ATHENA Interoperability Framework Module 1: The ATHENA Interoperability Framework.
A Guide to Secure Web Services with GJXML Hey I downloade d an IEPD! Cool, how do you write a web service? I use.NET Moo! I use Java.
ATL The ATLAS Transformation Language. 2 ATL (ATLAS Transformation Language) ATL transformation pattern ATL metamodel Helpers – Operation helpers – Attribute.
1/10/2010 These materials are prepared only for the students enrolled in the course Distributed Software Development (DSD) at the Department of Computer.
Siemens Corporate Research Prec+Goals Requirements Concept Implementation Results+Metrics Demo How to develop an editor for the Eclipse RCP? Ulrich Dinger.
© The ATHENA Consortium UML Profiles and Domain-Specific Languages (DSLs),
Lecture 14 Extensible Stylesheet Language Transformations : XSLT.
© The ATHENA Consortium. CI3 - Practices of Interoperability in SMEs Carrier-Shipper Scenario.
© The ATHENA Consortium. EM1 - Enterprise Modelling as a way to achieve Interoperability Module 1 - What is Enterprise Modelling?
Transforming Documents „a how-to of transforming xml documents“ Lecture on Walter Kriha.
Verification and Validation in the Context of Domain-Specific Modelling Janne Merilinna.
ASME C&S Training Module C4 MODULE C - LEGAL SUBMODULES C1. Conflict Of Interest/Code Of Ethics C2. Antitrust C3. Torts C4. Intellectual Property C5. Speaking.
© The ATHENA Consortium. AP6 – Model-Driven Development of Interoperable Web Services, Agents and P2P Solutions Learn about model transformations.
© The ATHENA Consortium. CI2: The ATHENA Interoperability Framework Module 5: Supply Chain Management (SCM) Automotive sector.
© The ATHENA Consortium. EM1 - Enterprise Modelling as a way to achieve Interoperability Module 5 - Enterprise modelling establishment methodology.
Treasure Hunt - project development overall status - November 2011.
An ATL Example © 2005 ATLAS Nantes An ATL Example The BibTeXML to DocBook Transformation ATLAS group (INRIA & LINA), University of Nantes, France.
NA-MIC National Alliance for Medical Image Computing BRAINSCut General Tutorial Eun Young(Regina) Kim University of Iowa
ModelPedia Model Driven Engineering Graphical User Interfaces for Web 2.0 Sites Centro de Informática – CIn/UFPe ORCAS Group Eclipse GMF Fábio M. Pereira.
© The ATHENA Consortium. EM1 - Enterprise Modelling as a way to achieve Interoperability Module 3 - What interoperability problems does Enterprise.
ModTransf A Simple Model to Model Transformation Engine Cédric Dumoulin.
Web services. Introduction to WSDL. February 23, 2006.
Introduction To Model-to-Model Transformation © 2008 INRIA Introduction To Model-to-Model Transformation Hugo Bruneliere & Frédéric Jouault INRIA.
Based on material developed in ATHENA (IST ), INTEROP (IST ) and MODELWARE (IST ) 6-1b. Atlas Transformation Language (ATL) with RSM.
These materials are prepared only for the students enrolled in the course Distributed Software Development (DSD) at the Department of Computer.
© The ATHENA Consortium. CI3 - Practices of Interoperability in SMEs Proposed Solutions.
Copyright © 2010 Obeo, Made available under the Eclipse Public License v SCA Tools (Helios) Release Review Planned Review Date: June 11, 2010.
NA-MIC National Alliance for Medical Image Computing BRAINSCut General Tutorial Eun Young(Regina) Kim University of Iowa
5S Training Exercise For editable or customized versions of this 5S training exercise contact through leanmanufacturingtools.org For editable or customized.
Business Informatics Group Institute of Software Technology and Interactive Systems Vienna University of Technology Favoritenstraße 9-11/188-3, 1040 Vienna,
1 Example Uses of Java Reflection Explained Simply.
Adult Education Block Grant Webinar April 8, 2016.
4 Copyright © 2004, Oracle. All rights reserved. Validating XML by Using XML Schema.
© The ATHENA Consortium. Ontology based support to Enterprise Interoperability.
© The ATHENA Consortium. 5-2b. Eclipse Modeling Framework (EMF) Tutorial / Exercise,
5-4b. Eclipse Process Framework (EPF) Tutorial / Exercise
The need for Programming Languages
Do I need permission to use this?
How To Value Stream Map For a customized or editable version of this lean manufacturing presentation please contact through Leanmanufacturingtools.org.
Permission to copy for class and home.
How To Send Online Assessments
Primary Helpers.
© Healthcare Inspirations. All rights reserved
Working Party on Noise (GRB) General information and WP.29 highlights
Presentation transcript:

© The ATHENA Consortium. 6-3b. Atlas Transformation Language (ATL) Tutorial / Exercise,

2 © The ATHENA Consortium. Exercise Objective –Hands-on experience with ATL –Develop a PIM4SOA information to XSD model transformation References –The Atlas Transformation Language Home Page –ATL in Eclipse Technical requirements –Eclipse 3.2 –EMF –ATL needs: antlr mdr-standalone

3 © The ATHENA Consortium. Transformation overview Ecore PIM4SOA meta-model ATL PIM4SOA-2-XSD XSD meta-model outputXSD modelPIM conforms to is tranformed into

4 © The ATHENA Consortium. PIM4SOA metamodel

5 © The ATHENA Consortium. Simple XSD metamodel

6 © The ATHENA Consortium. The mapping mapped to

7 © The ATHENA Consortium. The input model

8 © The ATHENA Consortium. Create an ATL project

9 © The ATHENA Consortium. Models and metamodels

10 © The ATHENA Consortium. Create an ATL file

11 © The ATHENA Consortium. ATL rules and helpers Two kind of rules –Matched rules: Declarative transormation Specify source and target Specify the way to generate target –Called rules: Imperative transformation Seen as some kind of helpers Helpers –Viewed as equivalent to Java methods –Factorized code called from different points in transformation

12 © The ATHENA Consortium. Document2Schema rule Document2Schema{ from doc : PIM4SOA!Document to sch : XSD!XSDSchema( document <- doc.name, targetNamespace <- ' }

13 © The ATHENA Consortium. Entity2ComplexType helper context PIM4SOA!Entity def : getAssociations() : PIM4SOA!Entity = PIM4SOA!Association.allInstances() ->select(assoc | assoc.container = self); rule Entity2ComplexType{ from ent : PIM4SOA!Entity to ct : XSD!XSDComplexType( name <- ent.name, xsd_attribute <- Sequence{ent.attribute}, xsd_element <- ent.getAssociations() ) }

14 © The ATHENA Consortium. Association2Element and Attribute2Attribute rule Association2Element{ from assoc : PIM4SOA!Association to el : XSD!XSDElement( name <- assoc.name, type <-assoc.contained) } rule Attribute2Attribute{ from att : PIM4SOA!Attribute to el : XSD!XSDAttribute( name <- att.name, type <- att.type ) }

15 © The ATHENA Consortium. ItemType2SimpeType rule ItemType2SimpleType{ from it : PIM4SOA!ItemType( -- transform only ItemTypes and not Entities it.oclIsKindOf(PIM4SOA!Entity)= false ) to st : XSD!XSDSimpleType( name <- it.name )

16 © The ATHENA Consortium. Run the file

17 © The ATHENA Consortium. The result <xmi:XMI xmi:version="2.0" xmlns:xmi=" xmlns:xsd="

18 © The ATHENA Consortium. This course has been developed under the funding of the EC with the support of the EC ATHENA-IP Project. Disclaimer and Copyright Notice: Permission is granted without fee for personal or educational (non-profit) use, previous notification is needed. For notification purposes, please, address to the ATHENA Training Programme Chair at In other cases please, contact at the same address for use conditions. Some of the figures presented in this course are freely inspired by others reported in referenced works/sources. For such figures copyright and all rights therein are maintained by the original authors or by other copyright holders. It is understood that all persons copying these figures will adhere to the terms and constraints invoked by each copyright