130 likes | 268 Views
EWG-BARCELONA 18-24 mars 2002. To implement re-usable schema repository. Luc MOUCHOT FRANCE CNAM-TS (French national institution for healthcare). Design method of repository. Two-step procedure : Modelling and Derivation of model XML Schema repository.
E N D
EWG-BARCELONA18-24 mars 2002 To implement re-usable schema repository Luc MOUCHOTFRANCECNAM-TS (French national institution for healthcare)
Design method of repository • Two-step procedure : • Modelling and Derivation of model • XML Schema repository
Design method of repository :processing models Background: types defined in UML H-GMD Hierarchical General Message Description To know domain : - DIM - Existing EDI Message - Nil For example : - XML - ISO 7372 Syntax and Data Directory independent Syntax and Data Directory dependent GMD General Message Description (Oriented-Object) P-GMD Physical General Message Description New background: Types defined in Data Directory The use of : - Syntax - Data Directory
Design method of repository :Model Derivation The process create 2 new models UML : H-GMD + P-GMD • Techniques to make a hierarchy : • H-GMD (syntax independant) from GMD • Then must be interpreted according a given syntax and data directory : • P-GMD (syntax and data directory independant) from H-GMD • To replace UML types by ISO 7372 types, international business • data.
Design method of repository :H-GMD ’s Element and types UML Exchanged data model H-GMD ’s Element H-GMD Objects Types defining complexType stéréotype UML : <<structure>> Types defining enumerations stereotype UML : <<enumeration>> Boolean + user enumeration+enumeration itself Classes Complex types Primitive UML Types : Integer Real String Date Time Duration DateTime Enumered types Simple types
Design method of repository : P-GMD ’s Element and types ISO 7372 P-GMD ’ Element P-GMD Exchanged data model Packages Business Components including several objects Classes Objects Complex Types Types defining Complex Type Enumered types ISO 7372 Enumered types Simple types Basic types ISO 7372
Design method of repository :translation into XML Schema REPOSITORY P-GMD schema P-GMD ’s Element Business Component schema Model CC ? Package Classes schema CC Classes Complex Types Enumered ISO CC Simple types schema Enumerated types schema Simple ISO Complex types schema A SCHEMA BY P-GMD ELEMENT XML Types
Self use • The schema can be used in definition of other schema in the same repository • Cloning • A repository can be copied, moved, or duplicated in other location • Neutrality • The repository schemas are neutral in terms of namespaces • Publication • One can publish the whole, or a part of the repository schema, through one or several namespace • Schema repository • It is an organisation of XML schemas that describes ISO 7372 compliant and re-usable object • Re-usable schema repository • Re-usable ? Why ? Re-usable schema repository
Outside Word Information System Semantic space NAMESPACE REPOS I TORY Application Application Application SPACE NAME Application Proxy XML Schemas Proxy XML Schemas Neutral XML Schemas Application Neutrality - Publication
E NS NAMESPACE ENTREPOT clones E NS proxy XML Schemas Neutral XML Schemas E NS Information System Sémantic Space Cloning
Méthode de conception de l ’entrepôt :Set of rules Derivation Rules for the hierarchical translation (from GMD to H-GMD): - Root selection - Inheritance reduction - Reduction of loop - Cardinalities reduction Application Rules of types ISO 7372 (from H-GMD to P-GMD) XML Schema Design Rules (From P-GMD to Repository): - To translate from P-GMD classes into XML Schema - To translate from P-GMD packages into XML Schema - To translate from P-GMD association into XML Schema - To translate from P-GMD inheritance into XML Schema - etc. XML schema Repository, specification V4.2 On line www.edisante.org