uml to xsd. assumptions basic understanding of uml basic understanding of xml basic understanding of...

21
UML to XSD

Upload: gilbert-harvey-walters

Post on 03-Jan-2016

241 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: UML to XSD. Assumptions Basic Understanding of UML Basic Understanding of XML Basic Understanding of XSD schemas Basic Understanding of UML Basic Understanding

UML to XSDUML to XSD

Page 2: UML to XSD. Assumptions Basic Understanding of UML Basic Understanding of XML Basic Understanding of XSD schemas Basic Understanding of UML Basic Understanding

AssumptionsAssumptions

• Basic Understanding of UML

• Basic Understanding of XML

• Basic Understanding of XSD schemas

• Basic Understanding of UML

• Basic Understanding of XML

• Basic Understanding of XSD schemas

Page 3: UML to XSD. Assumptions Basic Understanding of UML Basic Understanding of XML Basic Understanding of XSD schemas Basic Understanding of UML Basic Understanding

Discussion PointsDiscussion Points

• AIXM Features, Objects and Properties

• AIXM UML modelling concepts

• GML concepts– Dynamic Features– GML Object-Property concept– Feature identification

• AIXM Features, Objects and Properties

• AIXM UML modelling concepts

• GML concepts– Dynamic Features– GML Object-Property concept– Feature identification

Page 4: UML to XSD. Assumptions Basic Understanding of UML Basic Understanding of XML Basic Understanding of XSD schemas Basic Understanding of UML Basic Understanding

FeaturesFeatures

• Real World• Fundamental objects• Change in time• UML Class

• Real World• Fundamental objects• Change in time• UML Class

 stereotype

  Obstacle

name : txtNamety pe : codeObstacleTy pemarkingPattern : codeObstacleMarkingPattern...markingFirstColour : codeColour...markingSecondColour : codeColour...constructionStatus : codeStatusConstruction...groupOf Obstacles : codeYesNo...remarks : txtRmk

<<f eature>>

Page 5: UML to XSD. Assumptions Basic Understanding of UML Basic Understanding of XML Basic Understanding of XSD schemas Basic Understanding of UML Basic Understanding

ObjectsObjects

• Do not exist alone• 0…M• UML class

• Do not exist alone• 0…M• UML class

  

ObstaclePart

+ v erticalExtent : v alDistVer...+ v erticalExtentAccuracy : v alDistVer...

<<object>>0..*0..*

Obstacle

+ name : txtName+ ty pe : codeObstacleTy pe+ markingPattern : codeObstacleMarkingPattern...+ markingFirstColour : codeColour...+ markingSecondColour : codeColour...+ constructionStatus : codeStatusConstruction...+ groupOf Obstacles : codeYesNo...+ remarks : txtRmk

<<f eature>>

+madeOf

Page 6: UML to XSD. Assumptions Basic Understanding of UML Basic Understanding of XML Basic Understanding of XSD schemas Basic Understanding of UML Basic Understanding

PropertiesProperties

Attributes and Relationships about the Feature or Object.

Attributes and Relationships about the Feature or Object.

  

Obstacle

name : txtNamety pe : codeObstacleTy pemarkingPattern : codeObstacleMarkingPattern...markingFirstColour : codeColour...markingSecondColour : codeColour...constructionStatus : codeStatusConstruction...groupOf Obstacles : codeYesNo...remarks : txtRmk

<<f eature>>

Simple Properties

Page 7: UML to XSD. Assumptions Basic Understanding of UML Basic Understanding of XML Basic Understanding of XSD schemas Basic Understanding of UML Basic Understanding

PropertiesProperties

Obstacle

name : txtNametype : codeObstacleTypemarkingPattern : codeObstacleMarkingPatternmarkingFirstColour : codeColourmarkingSecondColour : codeColourconstructionStatus : codeStatusConstructiongroupOfObstacles : codeYesNo

<<feature>>

0..11

isEffective

0..11Timetable

(from Time Management)

<<object>>

DesignatedPoint

designator : codeIdDesigPtty pe : codeTy peDesigPtname : txtName

<<f eature>>

PointRef erence

role : codeTy peRole

<<f eature>>

0..*1 0..*1

locates

Uni-directional association used when the relationship refers to a feature.

Composition Aggregation used when the property describes an attribute(s) with cardinality = many.

Page 8: UML to XSD. Assumptions Basic Understanding of UML Basic Understanding of XML Basic Understanding of XSD schemas Basic Understanding of UML Basic Understanding

PropertiesProperties

Navaid

type : codeTypeNavaididentifier : codeIdNavAidlandingCategory : codeCatLdgAidoperationalStatus : codeStatusNavaidflightChecked : codeYesNo

<<feature>>

0..*

0..*

0..*composedOf

0..*NavaidEquipment

codeId : codeIdNavAidname : txtNamecodeEmmission : codeEmRdomobile : codeYesNomagneticVariation : valAngleMagVardateMagneticVariation : dateYearoperationalStatus : codeStatusNavaidflightChecked : codeYesNo

<<feature>>

NavaidComposition

collocationGroup : noSeqmarkerPosition : codePsnIlsprovidesNavigableLocation : codeYesNo

<<object>>

Standard UML association class is used to describe attributes about the relationship.

Page 9: UML to XSD. Assumptions Basic Understanding of UML Basic Understanding of XML Basic Understanding of XSD schemas Basic Understanding of UML Basic Understanding

PropertiesProperties

NavaidEquipment

+ codeId : codeIdNavAid+ name : txtName+ codeEmmission : codeEmRdo+ geoidUndulation : valDistVer

(from NavaidsPoints)

<<feature>> VOR

+ codeType : codeTypeVor+ frequency : valFreq+ codeTypeNorth : codeTypeNorth+ declination : valAngleMagVar+ magneticVariation : valAngleMagVar+ dateMagneticVariation : dateYear

(from NavaidsPoints)

<<feature>>

Inheritance - The specialized feature inherits all of the properties of the more general feature.

Page 10: UML to XSD. Assumptions Basic Understanding of UML Basic Understanding of XML Basic Understanding of XSD schemas Basic Understanding of UML Basic Understanding

Discussion PointsDiscussion Points

• AIXM Features, Objects and Properties • AIXM UML modelling concepts

• GML concepts– Dynamic Features– GML Object-Property concept– Feature identification

• AIXM Features, Objects and Properties • AIXM UML modelling concepts

• GML concepts– Dynamic Features– GML Object-Property concept– Feature identification

Page 11: UML to XSD. Assumptions Basic Understanding of UML Basic Understanding of XML Basic Understanding of XSD schemas Basic Understanding of UML Basic Understanding

Dynamic FeatureDynamic Feature

• Change over time• Timeslice

• Change over time• Timeslice

 

Page 12: UML to XSD. Assumptions Basic Understanding of UML Basic Understanding of XML Basic Understanding of XSD schemas Basic Understanding of UML Basic Understanding

GML Object – Property ConceptGML Object – Property Concept

1. Create Type

2. Define attributes and relationships

Page 13: UML to XSD. Assumptions Basic Understanding of UML Basic Understanding of XML Basic Understanding of XSD schemas Basic Understanding of UML Basic Understanding

Object - TypeObject - Type

3. Create object

4. Assign type to object

Page 14: UML to XSD. Assumptions Basic Understanding of UML Basic Understanding of XML Basic Understanding of XSD schemas Basic Understanding of UML Basic Understanding

Discussion PointsDiscussion Points

• AIXM Features, Objects and Properties • AIXM UML modelling concepts• GML concepts

– Dynamic Features– GML Object-Property concept

– Feature identification

• AIXM Features, Objects and Properties • AIXM UML modelling concepts• GML concepts

– Dynamic Features– GML Object-Property concept

– Feature identification

Page 15: UML to XSD. Assumptions Basic Understanding of UML Basic Understanding of XML Basic Understanding of XSD schemas Basic Understanding of UML Basic Understanding

Feature IdentificationFeature Identification

• AIXM Feature Identification requirements

• Identification provided by GML

• AIXM Identification

• AIXM Feature Identification requirements

• Identification provided by GML

• AIXM Identification

Page 16: UML to XSD. Assumptions Basic Understanding of UML Basic Understanding of XML Basic Understanding of XSD schemas Basic Understanding of UML Basic Understanding

AIXM Identification RequirementsAIXM Identification Requirements

• System independent • Globally unique• Need not be understood• Remain the same over time

• Repeatable within a GML document

• System independent • Globally unique• Need not be understood• Remain the same over time

• Repeatable within a GML document

Page 17: UML to XSD. Assumptions Basic Understanding of UML Basic Understanding of XML Basic Understanding of XSD schemas Basic Understanding of UML Basic Understanding

GML IdentificationGML Identification

• gml:id a local ID <aixm:PointReference gml:id="IDPR1"><aixm:PointReference gml:id=“_001">

• gml:identifier<gml:identifier codeSpace=”urn:UUID”>d6cd9be0-15d4-

11da-8cd6-0800200c9a66</gml:identifier> <aixm:identifier

codeSpace="www.faa.gov/avn/avnis">1111</aixm:identifier>

<aixm:identifier codeSpace="www.faa.gov/ato/usnof">53232</aixm:identifier>

• gml:id a local ID <aixm:PointReference gml:id="IDPR1"><aixm:PointReference gml:id=“_001">

• gml:identifier<gml:identifier codeSpace=”urn:UUID”>d6cd9be0-15d4-

11da-8cd6-0800200c9a66</gml:identifier> <aixm:identifier

codeSpace="www.faa.gov/avn/avnis">1111</aixm:identifier>

<aixm:identifier codeSpace="www.faa.gov/ato/usnof">53232</aixm:identifier>

Page 18: UML to XSD. Assumptions Basic Understanding of UML Basic Understanding of XML Basic Understanding of XSD schemas Basic Understanding of UML Basic Understanding

Property TypeProperty Type

1. Created property type to define the relationship.

2. If the relationship points to an object, include object in the property type

3. If the relationship points to a feature, include attribute xlink:href.

Page 19: UML to XSD. Assumptions Basic Understanding of UML Basic Understanding of XML Basic Understanding of XSD schemas Basic Understanding of UML Basic Understanding

XLINK:HREFXLINK:HREF

Within the Document:

<aixm:uses_PointReference xlink:href="#IDPR1" />

External to the Document:

<aixm:usedOn_Procedure xlink:href ="www.faa.gov/avnis#//InstrumentDepartureProcedure[aixm:identifer='55423'

or (timeSlice/InstrumentDepartureProcedureTimeSlice/interpretation='BASELINE' and timeSlice/InstrumentDepartureProcedureTimeSlice/designator='BODINE RNAV') and /substring(gml:beginPosition,1,10) &gt;= '2006-05-11' and (substring(gml:endPosition,1,10) &lt;= '2006-05-11' )" "/>

Within the Document:

<aixm:uses_PointReference xlink:href="#IDPR1" />

External to the Document:

<aixm:usedOn_Procedure xlink:href ="www.faa.gov/avnis#//InstrumentDepartureProcedure[aixm:identifer='55423'

or (timeSlice/InstrumentDepartureProcedureTimeSlice/interpretation='BASELINE' and timeSlice/InstrumentDepartureProcedureTimeSlice/designator='BODINE RNAV') and /substring(gml:beginPosition,1,10) &gt;= '2006-05-11' and (substring(gml:endPosition,1,10) &lt;= '2006-05-11' )" "/>

Page 20: UML to XSD. Assumptions Basic Understanding of UML Basic Understanding of XML Basic Understanding of XSD schemas Basic Understanding of UML Basic Understanding

SummarySummary

• AIXM Features, Objects and Properties • AIXM UML modelling concepts• GML concepts

– Dynamic Features– GML Object-Property concept– Feature identification

• AIXM Features, Objects and Properties • AIXM UML modelling concepts• GML concepts

– Dynamic Features– GML Object-Property concept– Feature identification

Page 21: UML to XSD. Assumptions Basic Understanding of UML Basic Understanding of XML Basic Understanding of XSD schemas Basic Understanding of UML Basic Understanding

Questions?Questions?