The document discusses XML Metadata Interchange (XMI) which uses XML to transfer metadata and model information between tools and repositories. XMI allows the interchange of any metadata based on the Meta-Object Facility (MOF) standard, including UML models and the Common Warehouse Metamodel (CWM). It defines XML document type definitions (DTDs) for validating metadata streams.
Injustice - Developers Among Us (SciFiDevCon 2024)
XML Metadata Interchange (XMI)
1. U ni ys
s
We eat, sleep and drink this stuff (metadata)!
XML Metadata Interchange (XMI)
From UML Object Models to
XML DTDs and Documents
OMG TC Meeting
November 15-18 ; Cambridge
Sridhar Iyengar
Unisys Fellow
Unisys Corporation
sridhar.iyengar2@unisys.com
Copyright 1999, UNISYS Corporation Slide 1
2. Topics Covered
s Introduction
s OMG Modeling and Metadata Architecture
– XMI, UML and MOF
– Applied to Enterprise Application Development,
CORBA Components, Data Warehousing
– Coming : Document Management, Business
Objects, Vertical Domains, EAI
s How can OMG (across various groups), OAG,
OASIS work together
Copyright 1999, UNISYS Corporation Slide 2
3. Model & Metadata based
Integration : Sample Initiatives
s Modeling Technologies
– Modeling OMG UML, (Meta)Modeling OMG MOF
s Metadata Integration Technologies
– W3C XML, OMG XMI, OMG MOF
s Information/Content Models, Meta Models, DTDs
– OMG UML, Data Warehousing CWM, CORBA CCM,
Document Management, MDC OIM, Knowledge
Management, OMG EAI WG, .. OMG Vertical domains,
OAG, OASIS, BizTalk..
s Middleware Infrastructure
– CORBA/CCM, EJB, COM+, HTTP, XML, SOAP...
Copyright 1999, UNISYS Corporation Slide 3
4. OMG Overview
• About 800 member companies, world’s largest software
consortium.
• Founded April 1989.
• Small staff (27 full time); no internal development. In
U.S.A., Germany, Japan, U.K, Australia, India.
• Started the Object World series of conferences, which
continues as COMDEX/Enterprise.
• Dedicated to creating and popularizing object-oriented
standards for application integration and development
Copyright 1999, UNISYS Corporation Slide 4
5. OMG History : Major Events
s 1989 OMA Vision & Architecture
s 1991 CORBA 1.0
s 1995 CORBA 2.0 IIOP - CORBA
InteroperabilityDemo
s 1997 MOF and UML Adopted, Domain
specs begin to be adopted
s 1998 XMI Specification & Demo
s 1999 XMI, CORBA 3.0 Components
s 2000 CWM, XML/CORBA, EAI...
Copyright 1999, UNISYS Corporation Slide 5
12. OMG - Modeling and Metadata
Standards
s Object Analysis & Design Facility : Unified
Modeling Language (UML)
s Model driven Metadata Management : Meta
Object Facility (MOF)
s Stream based Model Interchange Format : XML
Metadata Interchange (XMI)
s Data Warehouse Management : Common
Warehouse Metamodel (CWM*)
s Business Objects : Business Object Initiative
(BOI*)
*In development
Copyright 1999, UNISYS Corporation Slide 12
14. MOF Overview
s Foundation for OMG repository (meta
data) architecture
– Defines metamodels starting with the UML
– Provides generic meta-object interfaces (common to
MOF and all MOF defined Meta-models...)
– Provides MOF-IDL mapping to automate generation of
concrete object interfaces for specific metamodels
– Provides MOF-XML mappings to automate generation
of XML DTDs and Documents (XMI specification)
– Can also be used with COM using COM/CORBA
Interoperability software
s MOF uses UML for (meta)modeling
Copyright 1999, UNISYS Corporation Slide 14
15. MOF Architecture
< < C O R B A ID L M o d u le > >
Discover & M O F 1 .1 R e fle c t ive
Manipulate
metadata
< < OM G M e ta -m e t a m o d e l> >
M O F M o de l
Model using
UML/MOF
precisely
Find and Manage M O F F a c ilit y
Metadata
Repositories
Copyright 1999, UNISYS Corporation Slide 15
16. MOF Model
(short for MOF meta-metamodel)
s Shares the UML core concepts
– Behavioral extensions (operations and constraints) added
for repository/metaobject manipulation
s Intentionally not ‘thin’ to support better
integration/alignment with UML
s Defined using UML notation diagram,
constraints (OCL) and textual description
– Self describing; MOF IDL, DTD generated from MOF
s Interfaces used to create and manipulate MOF
compliant metamodels and models
Copyright 1999, UNISYS Corporation Slide 16
17. OMG MOF 1.1/1.3 Model
Contains ModelElement +c onstrainedE lement
0..1 1.. *
0..* Constrains
+container
{ordered} 0..*
Namespace Feature Constraint
+containedElement
+subtype
Generaliz es
0..* GeneralizableElement BehavioralFeature St ruc turalFeature
+supertype
{ordered} 0..*
Package Classifier Operation Reference MofAttribute
0.. * +referent
RefersTo
Dat aType Class Association +referencedEnd
1
AssociationEnd
Copyright 1999, UNISYS Corporation Slide 17
18. MOF/UML Tools
Interoperability Options
Tool/App Tool/App
MetaObject Facility
MOF/Repository write read
Reflective
Model Transfer
DTD Generation Intermediate Stream/File (XML)
(XMI)
Object
Model Access Analysis &
Design(UML)
Unisys/IBM et al proposal Facility
Copyright 1999, UNISYS Corporation Slide 18
19. UML 1.3 : All Diagrams
B e h a vio ra l_ E le m e n t s
Model business
(fro m U M L ) processes
A c t iv it y _ G ra p h s
( fro m B e h a v io ra l _E le m e n t s )
C o l l a b ora ti o ns S t a t e _ M a c h in e s
Us e_C as es
(fro m B e h a vio ra l_ E l e m e n t s ) (fro m B e h a vio ra l_ E l e m e n t s )
(fro m B e h a vio ra l_ E l e m e n t s )
M o d e l_ M a n a g e m e n t
(fro m U M L )
C o m m o n _ B e h a vi o r
(fro m B e h a vio ra l_ E l e m e n t s )
F o u n d a t io n
(fro m U M L )
E x t en s i on _
Model business
Core
(fro m F o u n d a t i o n )
M e c h a n is m s
(fro m F o u n d a t i o n )
data/structures
D a ta _ Ty p e s
(fro m F o u n d a t i o n )
Copyright 1999, UNISYS Corporation Slide 19
20. Overview of XMI
XML Metadata Interchange
s Use W3C eXtensible Markup Language (XML)
for the transfer syntax and interchange format
– Specify XML Document Type Definitions (DTD) to
enable transfer and verification of
• MOF based metamodels (using MOF DTD)
• UML based models (using UML DTD), etc.
s Specify a precise MOF (UML subset) to XML
mapping
– Use of OCL to specify stream production rules
– Allows interchange of any MOF based metamodel
– Enables automatic generation of DTDs
s Unisys, IBM,Oracle, Platinum, DSTC and others
Copyright 1999, UNISYS Corporation Slide 20
21. Open Metadata Interchange with XMI
S oftware
Des ign App1 App2
As s ets
Development
XMI R epos itory App6 App3
T ools
v
s
Databas e
R eports
S chema App5 App4
N*N-N = 30 bridges written
6 bridges written by 6 vendors.
by N = 6 vendors.
Versioning issues.
Copyright 1999, UNISYS Corporation Slide 21
22. XMI Simplified
OMG Documents : ad/98-10-05, ad/98-10-06
XML UML
UML
Models
CWM
UML
Models*
MOF
UML
MetaModels
Syntax and Encoding
X XML Streams (Models)
(Many - based on each metamodel DTD)
MOF M Validate
Metadata Definitions
& Management I UML 1.1
DTD
CWM* MOF 1.1
DTD DTD
XML DTD (MetaModels)
UML (1 per metamodel used for validation)
Metamodel
Analysis & Design
Copyright 1999, UNISYS Corporation Slide 22
23. How to use XMI
s Define the domain or technology specific model
– Middleware models are usually called metamodels by
OMG
– Use UML - only knowledge of Class modeling needed to
get started
s Export model to XMI processor which generates
– XML DTDs for the specific (meta) model
– XML documents that conform to the DTD
s Manage the Models, DTDs and documents in a
MOF/XMI compliant distributed repository
Copyright 1999, UNISYS Corporation Slide 23
24. UML 1.3/MOF/XMI Generation
A p p ly UM L to M O F Tra ns fo rm a tio n Rule s
to p ro d uce p hys ica l m e ta m o d e l
< < M odel> > < < M odel> >
UM L 1 .3 L o g ica l UM L 1 .3 P hysica l
M e ta m o d e l M eta m o d e l
< < XM I D TD> > < < XM L D oc um ent> > < < M O F --> ID L> >
UM L 1 .3 X ML D TD UM L 1 .3 UM L 1 .3
X M L D o cum e nt M O F C O RB A ID L
M O F - -> X M L M a p p ing i M O F --> X M L d o cum nt M O F --> C O RB A ID L
n XM I 1 .0 S p e c M a p p ing in X M I 1 .0 M a p p ing in M O F 1 .3
S pec sp e c
IB M & U nisys DTD G e n
Unisys X M L G e n Unisys ID L G e n
Copyright 1999, UNISYS Corporation Slide 24
27. XMI 1.1 Overview
s Addresses verbosity issues of XMI 1.0
s Incorporates XML namespaces
s Readability significantly improved
Copyright 1999, UNISYS Corporation Slide 27
28. XMI for Application Development
OMG November 98 Demo
Web VA DTD VA
Rose
Sphere TC Gen Java
XMI IBM
VisualAge XMI
Oracle
Repository Select
XMI
XMI
XMI
Oracle Unisys XMI Enterprise
Designer
XMI UREP XMI
XMI XMI Non-XMI
Rational Select
MOF Repositories
Rose Enterprise
DTDGen
Copyright 1999, UNISYS Corporation Slide 28
29. OMG Common Warehouse
MetaModel
s Scope
– Data Warehouse lifecycle metadata management
s Initial submission : IBM, Unisys, NCR, Hyperion,
Oracle, Genesis, UBS, Dimension EDI...
– Metamodel - Single logical & physical!
– Generated XML DTDs
– Generated MOF - IDL mappings
– Generated XML document
s For final submissions
– Improve based on feedback, vendor specific
metamodels, well formedness rules, demos
Copyright 1999, UNISYS Corporation Slide 29
30. CWM Overview
Common Warehouse Metamodel
Warehouse Warehouse Warehouse
Management Process Operation
Data
Transformation OLAP
Analysis
Data Object-
Record-
Oriented Relational MDDB XML
Resources Oriented
(UML)
Warehouse Warehouse
CWMFoundation
Management Deployment
Foundation UML 1.3
(Foundation, Behavioral_Elements, Model_Management)
Copyright 1999, UNISYS Corporation Slide 30
31. CWM MetaModel Architecture
CW MFo unda ti on
(fr o m L o g ical View)
W a re house De ploym e nt
(fro m L o g ica l Vie w)
Re la tiona l M DDB XML
Re cordOrie nte d
(fr o m L o g ical View) (fro m L o g ica l Vie w) (f rom L ogi c al Vi ew)
(fr o m L o g ical View)
Tra nsform a tion Ola p
(fr o m L o g ical View) (fro m L og ical View)
W a re house P roce ss W a re house Ope ra tion
(fro m Lo g ical View)
(fr o m L o g ical View)
Copyright 1999, UNISYS Corporation Slide 31
34. CWM : Record Oriented
1 structu ral Featu re
Classifier type *
Attribute ModelElement
Package
(from Core) (from C or e)
(from Model_Management) (from Core)
valueCondition FieldValueCondition
Field
value : Expression
*
1
Record File
Cl ass
+file
(from Cor e)
* FixedOffsetField
RecordToFile offset : Integer
offsetUnitBits : Integer
{ordered}
* +record
Record
<<0..1>> fieldDelimiter : String Group /ownedElement
/ElementOwnership
<<0..1>> recordDelimiter : String * *
isFixedWidth : Boolean 1 /ownedElement 1
isSelfDescribing : Boolean /namespace
<<0..1>> skipRecords : Integer /namespace
/ElementOwnership
<<0..1>> textDelimiter : String
<<0..1>> formatName : String
CWM Record-Oriented
Copyright 1999, UNISYS Corporation Slide 34
35. MOF, UML and XML Integration :
Suggestions
s Use UML for analysis and design of metamodels (these are
models after all!)
s Define and manage metamodels/profiles using the MOF
– Use UML based modeling tools, or MOF interfaces (normative) or
XMI
– Enables life cycle meta data interoperability and design reuse
across metamodels
– Relationships and Subtyping across metamodels supported by the
MOF
s Use XML for exchanging metadata via OMG XMI
s Use MOF-IDL mappings for concrete IDL interfaces to
metamodels
s Inherit MOF Reflective interfaces for interoperable meta
objects across meta-models
Copyright 1999, UNISYS Corporation Slide 35
36. Importance of (Meta)modeling
s Provides a regular and rigorous infrastructure at a
higher level of abstraction
s Furnishes an architectural basis for extensions and
evolution of software
s Facilitates alignment with other standards that use a
metamodel architecture
– Potentially eliminate or evolve redundant standards (eg: CDIF
now endorses XMI)
s Supports interoperability and integration across
domains at the semantic level
s Use UML to design metamodels and models, MOF
to implement and manage them and XMI to
interchange them over the Internet
Copyright 1999, UNISYS Corporation Slide 36
37. Lessons Learned
s Tool Interoperability issues (vendor politics!)
s Distributed systems are inherently more complex
s Coarse VS Fine grained metadata access
– Don’t use fine grained interfaces over a network if you
need to manipluate lots of complex objects
s Use XML/XMI for exchanging metadata across
network using standard DTDs for validation
s Use fine grained interfaces (MOF, DOM, Java) on
desktop
s Replication and Versioning issues
s Limitations of current standards
Copyright 1999, UNISYS Corporation Slide 37
38. OMG use of UML, MOF and XMI
Domains
(Soon) Electronic Telecom Manufacturing Utility
Commerce
Financial Transportation Simulation Life Sciences
CWM - Data Business
UML CORBA
Warehouse Objects
Platform
(Now)
Copyright 1999, UNISYS Corporation Slide 38
39. OMG Use of UML/XMI/MOF
for EAI
s These technologies address modeling, interchange
and metadata management for various problem
domains
s EAI/IAI have to solve the problem of managing the
complexity of heterogenous application integration
s Work on UML profile for Messaging and EAI RFP is
in progress
– Integration with UML for modeling business processes,
document structures
– XMI for metadata
– XML (potentially XMI) for data : Send issues to XMI RTF
Copyright 1999, UNISYS Corporation Slide 39
40. Extending XML Possibilities
Power of UML, MOF
and XMI frameworks
Using XML is the first
real opportunity to
allow applications to
Semantic XMI be connected
Level of Abstraction
Integration
without excessive
XML Integration support from
systems integrator
Component API Integration and domain experts.
Application Integration Tools The biggest benefit is
speed of delivery
Hand coded integration which is by far the
critical issue for
eBusiness
enablement.
Copyright 1999, UNISYS Corporation Slide 40
41. OMG and OAG Opportunity
s OAG has a development process that is moving
towards UML
– Use of OMG UML for modeling and design process
– Use of XMI for DTD (soon Schema) generation
– Use of XMI for model/document interchange
– Use of MOF/XMI for metadata repository interoperability
s OMG is developing domain specifications and has
just started an EAI Working Group
– Use of OAG BODs by OMG?
– Use of OMG domain specs (after UML and XML’isation)
by OAG?
s OMG has established OASIS liasion
Copyright 1999, UNISYS Corporation Slide 41
43. Concluding Thoughts
s Ensuring a unified distributed meta object
architecture is key to solving the heterogeneous
integration problem
s Most customers have and will continue to have
components and information from multiple
sources that need integration
s CORBA/EJB, DCOM/ActiveX, MOF/XMI
(Metadata), UML (Modeling) need to work
together with the content (business models,
BODS…)
s Modeling and Metadata matters - Master it : Use it
in your domain
Copyright 1999, UNISYS Corporation Slide 43
44. References & further reading
s Object Oriented Strategies, Dec 1995, 1998 - OO Repositories : Paul
Harmon
s Implementing a Corporate Repository, Adrienne Tannenbaum (Wiley)
s Unisys Repository Information Model Technical Overview
– http://www.unisys.com/Products/urep, follow links to documents
s Common Object Request Broker Architecture 2.0, March 1995
s OMG Common Facilities RFI #3 - Repositories
s Unisys Response to RFI#3, OMG TC document tc/95-11-05
s OMG Object Analysis & Design RFP ad/96-05-01
s OMG Common Facilities RFP 5 - Meta Object Facility cf/96-05-02
s Unisys et al OMG Meta Object Facility Response, ad/97-08-14,15
s Rational et al OMG OADF (UML) Response , ad/97-08-10
s Unisys et al XML Metadata Interchange (XMI) proposal, ad/98-10-05, 06
s www.marketplace.unisys.com/urep; www.ibm.com/ad;
www.microsoft.com
Copyright 1999, UNISYS Corporation Slide 44
45. Unisys and UREP are registered trademarks of Unisys
Corporation.
OMG is a registered trademark, and ORB, OMG IDL and
CORBA and CORBA are trademarks of Object Management
Group, Inc.
OLE & COM are trademarks of Microsoft Corp.
All other trademarks owned by respective organizations