OMG's XML Interchange Format XMI

Prof. Mario Jeckle

Fachhochschule Furtwangen [email protected] http://www.jeckle.de

XML4BPM, Marburg, 2004-03-25 OMG's XML Metadata Interchange Format XMI jeckle.de .Jeckle: OMG's XML Metadata InterchangeFormat XMI. XML4BPM, Marburg,2004-03-25 M. production Schema technologies Turning models into languages related XML production Document O XML MOF Interchange Metadata modeling Background Meta- XML Interchange Diagram interchange (meta) Application data learned lessons 3 OMG's XML Metadata Interchange Format XMI jeckle.de .Storingabusiness proce 2. Storingdescriptionsofconcrete businessprocesses, 1. Application ofXMIcan betwofolded: .Jeckle: OMG's XML Metadata InterchangeFormat XMI. XML4BPM, Marburg,2004-03-25 M. Business Process ManagementData uiespoesmngmn metamodel business process management itselfas metamodel i.e. the i.e. instancesofasingle metamodel ... id name< XMI forInterchanging ss management model, /characteristic> aninstance ofacommon 4 OMG's XML Metadata Interchange Format XMI jeckle.de .Jeckle: OMG's XML Metadata InterchangeFormat XMI. XML4BPM, Marburg,2004-03-25 M. Metamodel Hierarchy Four Layer OMG's Background: Document Production Production Schema • • XML Metadata Interchange Model Serializations based onXMI 5 OMG's XML Metadata Interchange Format XMI jeckle.de • Strongly influenced byUML2.0'sinfrastructure Strongly • MOF 2.0unifies • Platform-independent metadata • .Jeckle: OMG's XML Metadata InterchangeFormat XMI. XML4BPM, Marburg,2004-03-25 M. (shared vision of reusing core modeling concepts) (shared vision ofreusingcoremodeling the ModelDrivenArchitecture •JMI productionprinciplesforXMLSchema XMI • 1.0 1.2 XMI • MOF 1.4 • Background: MetaObjectFacility Redefinitions, Package Merge ...) Redefinitions, Association Generalization, Import, (Associations, MOF Core MOF2 Unified Modeling Language 2.0 Language Modeling Unified uses static parts OCL Operations, Packages) (Classes, Properties, Essential MOF Infrastructure dynamic parts uses uses managementfoundation of Interchange structure Diagram Super- encodes 6 OMG's XML Metadata Interchange Format XMI jeckle.de 10.XML isavendor and platform neutral standard XMLforms thebasis ofRDF andtheSemantic Web 9. XMLtransfers HTMLtoXHTML 8. XMLiswell-introduces, but 7. XML isamodularapproach 6. XMLisafamilyof techniques 5. XMLprovides averbosetextualserialization 4. XMListext,but not meantforreading 3. XMLlookssimilartoHTML 2. XML textuallyencodesstructureddata 1. Background: ExtensibleMarkup Language .Jeckle: OMG's XML Metadata InterchangeFormat XMI. XML4BPM, Marburg,2004-03-25 M. conceptually notthatnew 8 OMG's XML Metadata Interchange Format XMI jeckle.de •XML Linking (XLink) XML Schema(XSD) • XML CoreStandard (XML) • .Jeckle: OMG's XML Metadata InterchangeFormat XMI. XML4BPM, Marburg,2004-03-25 M. Provides mechanisms for general purpose • Provides structural rulesforencoding • Provides encodingof(meta) data • links among XML entities schemata describingdata and metadata alue">value t" type="string"/> 9 OMG's XML Metadata Interchange Format XMI jeckle.de • • • • .Jeckle: OMG's XML Metadata InterchangeFormat XMI. XML4BPM, Marburg,2004-03-25 M. Producing XML SchemataandDocuments eo:ls xmi:id="f 31..." name="Person"> ..." name="John Doe"/> "e56..." name="Name" Name :String Person 10 OMG's XML Metadata Interchange Format XMI jeckle.de • • • .Jeckle: OMG's XML Metadata InterchangeFormat XMI. XML4BPM, Marburg,2004-03-25 M. Producing XML SchemataandDocuments eo:ls xmi:id="c82... eo:ls xmi:id="a69... type="Company" lower="1" Person " name="Company"/> " name="Person"> aggregationKind 2..." name="worksFor" okfr1..* worksfor href is composite Company ) 11 OMG's XML Metadata Interchange Format XMI jeckle.de • • .Jeckle: OMG's XML Metadata InterchangeFormat XMI. XML4BPM, Marburg,2004-03-25 M. Producing XML SchemataandDocuments xmi:id="d49..."> xmi:id="d49..."> xlink:href="#f92..."/> Person okfr1..* worksfor Company 12 OMG's XML Metadata Interchange Format XMI jeckle.de Proof ofconcept: UML2.0's and MOF2.0'sXMI • schema anddocumentproduction rulesare XMI • isalsousedfortransferring MOF-based XMI • iscurrentlytosomeextendsuccessfully deployed XMI • .Jeckle: OMG's XML Metadata InterchangeFormat XMI. XML4BPM, Marburg,2004-03-25 M. production rules XMI's serializations are produced byapplying implemented onaprototypebasis (e.g.,CWMI,SPEM...) metamodels tools) (import andexportfacilities areprovidedbyCASE for interchangingUML-based models (Meta)Data Interchange XMI Applications: 13 OMG's XML Metadata Interchange Format XMI jeckle.de • UML 1.x's XMI serializationlackssupportof XMI UML 1.x's • M . dsnwpcaet h metamodel UML 2.0addsnewpackage tothe • XMI/XML encodedinformationmaybe • .Jeckle: OMG's XML Metadata InterchangeFormat XMI. XML4BPM, Marburg,2004-03-25 M. representation of a model encoding information onthegraphic for encodinggraphical information tools such asXSLT processed furtherbyXML general purpose iga Interchange Diagram XMI Applications: Interchange Diagram XMI + 14 OMG's XML Metadata Interchange Format XMI jeckle.de M . dsnwpcaet h metamodel UML 2.0 adds new package to the • .Jeckle: OMG's XML Metadata InterchangeFormat XMI. XML4BPM, Marburg,2004-03-25 M. for encoding graphical information iga Interchange Diagram XMI Applications: ... 2003'> ULMdlxii lma1f:9bf6b-fa ae='oe 'iSeiiain= 'false' isSpecification 1' ='model name sot='as'iLa fle sbtat='false'> ='false' isAbstract ='false' isLeaf isRoot 1.0 XMI Writer Netbeans zoom ='1.0'> 0.0 0.0 403.0 540.0 0.0 0.0 yeno='ClassDiagram'/> typeInfo .semanticModel>

UML 2.0 adds data describing "classical" graphicsl representation model data 15 OMG's XML Metadata Interchange Format XMI jeckle.de Generating vector-basedgraphical • Prototype implemented by FHF • .Jeckle: OMG's XML Metadata InterchangeFormat XMI. XML4BPM, Marburg,2004-03-25 M. to transferXMIinto SVG representation of UML modeldatausingXSLT XMI DI + iga Interchange Diagram ...... 'org.omg.xmi.namespace.UML' = xmlns:UML ='1.2' xmi.version ='UTF-8' encoding '1.0' = version = '1.0'> zoom = 'false'> isAbstract 'false' = isLeaf 'false' = isRoot 1.0 XMI WriterNetbeans ULSmlSmniMdllmn m.d='lsm:aa10fc:f9cbbf26cb:-7fd1' presentation = ''0.0 0.0 403.0 540.0 0.0 0.0 yeno='ClassDiagram'/> = typeInfo XMI Applications: ... odelElement[attribute::typeInfo='ClassDiagram']]/attribute::xmi.id"/> select="//UML:Diagram[position()=1][child::UML:GraphElement.semanticModel/UML:SimpleSemanticM indent="yes"/> method="xml" media-type="image/svg+xml" xmlns:UML="org.omg.xmi.namespace.UML" xmlns="http://www.w3.org/2000/svg" ... odelElement[attribute::typeInfo='ClassDiagram']]/attribute::xmi.id"/> select="//UML:Diagram[position()=1][child::UML:GraphElement.semanticModel/UML:SimpleSemanticM name="filling"> name="diagramID" indent="yes"/> method="xml" media-type="image/svg+xml" xmlns:UML="org.omg.xmi.namespace.UML" xmlns="http://www.w3.org/2000/svg" test="not($fillWith)">white test="$fillWith"> name="filling"> href="templates_for_cd_dd.xsl"/> test="not($fillWith)">white test="$fillWith">

Neu mit UML 2.0: „klassische“ graphische Modelldaten Modelldaten XSLT ...... xmlns="http://w version="1.0" xmlns:UML="org.omg.xmi.namespace.UML"> width="550" height="433" xmlns:UML="org.omg.xmi.namespace.UML"> width="550" height="433" id="start_trans_arrowhead" L 105 0 markerHeight="11"orient="0" fill="none"> viewBox="010"10 0 refX="10" refY="5" markerWidth="11" L 105 0 orient="180" fill="none"> refX="10" refY="5" markerWidth="11" markerHeight="11" L 105 0 fill="none"> refY="5" markerWidth="11" markerHeight="11" orient="auto" 0L L 105 0 fill="white"> refY="5" markerWidth="11" markerHeight="11" orient="auto" 0 L 0 10 5L 0 L fill="white"> refY="5"markerWidth="11" markerHeight="11" orient="auto" 10 5L 0 L fill="none"> refY="5"markerWidth="11" markerHeight="11" orient="auto" 10 5L 0 L orient="180" fill="none"> refX="10" refY="5"markerWidth="11" markerHeight="11" 10 5L 0 L markerHeight="11" orient="0" fill="none"> viewBox="00 1010" refX="10" refY="5"markerWidth="11" ww.w3.org/2000/svg" 16 OMG's XML Metadata Interchange Format XMI jeckle.de • Person .Jeckle: OMG's XML Metadata InterchangeFormat XMI. XML4BPM, Marburg,2004-03-25 M. not implemented properly arbitrary netsmay leadtoincompatibilityif Flexible serialization oftreestructuresfrom Heterogeneity Problem Inherent XMI's Project Employee XMI Applications: empNo :PNo String : name Lessons Learned Employee Person 1..1 pays for 1..* in works Assignment are out carried 0..5 ae y1..* payed by budget :Currency budget start :Date String : name project Employee Employee Project Person Project Person 17 OMG's XML Metadata Interchange Format XMI jeckle.de • • .Jeckle: OMG's XML Metadata InterchangeFormat XMI. XML4BPM, Marburg,2004-03-25 M. Interchange ofVisualModel Data accepted bythemarked implementations but currentlynotwidely Well-working asproved byprototype Schema ProductionRules XMI's Currently only oneimplementation – Some unsolvedissues – Now standardized – Initially highlydesiredby themarket – available (Poseidon) XMI Applications: Lessons Learned 19 OMG's XML Metadata Interchange Format XMI jeckle.de .Jeckle: OMG's XML Metadata InterchangeFormat XMI. XML4BPM, Marburg,2004-03-25 M. background information on XMI Get these slides andsome 20