xml examples aixm 5 rc2. topics overview of xml schema definition language (xsdl) –schema...

18
XML Examples AIXM 5 RC2

Upload: madilyn-ayling

Post on 16-Dec-2015

236 views

Category:

Documents


5 download

TRANSCRIPT

XML ExamplesXML Examples

AIXM 5 RC2

TopicsTopics

• Overview of XML Schema Definition Language (XSDL)– Schema components– AIXM use of XSDL

• Example from the AIXM 5 RC2 xsd files – VerticalStructure (a generalization on

structures that includes obstacles)– Obstacle Areas

• Overview of XML Schema Definition Language (XSDL)– Schema components– AIXM use of XSDL

• Example from the AIXM 5 RC2 xsd files – VerticalStructure (a generalization on

structures that includes obstacles)– Obstacle Areas

General SchemeGeneral Scheme

• AIXM is modelled using UML• Scripts within the UML model are used to

generate XSD files. These files act as schema definitions for the AIXM data

• The AIXM data is defined as XML files• Software (Java, XSLT, etc) is used to transform

the XML data to HTML to be viewed by a browser

• AIXM is modelled using UML• Scripts within the UML model are used to

generate XSD files. These files act as schema definitions for the AIXM data

• The AIXM data is defined as XML files• Software (Java, XSLT, etc) is used to transform

the XML data to HTML to be viewed by a browser

UML Model XSD files XML files HTML view

Sample AIXM Data: RunwaySample AIXM Data: Runway

Sample AIXM Data: Runway ElementSample AIXM Data: Runway Element

Sample AIXM Data: Runway ElementSample AIXM Data: Runway Element

XML Schema Definition Language (XSDL)XML Schema Definition Language (XSDL)

• Member of the XML family of standards• XML schema is composed of pre-defined components:

– Primary components:• Element declarations• Attribute declarations• Simple type definitions • Complex type definitions

– Secondary components:• Attribute group definitions• Model group definitions• Identity-constraint definitions• Notation declarations

– Dependent components:• Model groups• Annotations• Attribute uses• Particles and wildcards

• Member of the XML family of standards• XML schema is composed of pre-defined components:

– Primary components:• Element declarations• Attribute declarations• Simple type definitions • Complex type definitions

– Secondary components:• Attribute group definitions• Model group definitions• Identity-constraint definitions• Notation declarations

– Dependent components:• Model groups• Annotations• Attribute uses• Particles and wildcards

AIXM use of XSDLAIXM use of XSDL

• Datatype definitions: – define AIXM features to encompass detailed aeronautical

domain information accurately.• Extension and restriction of datatypes:

– define and reuse datatype definitions within the schema.• Element and attribute declarations:

– define AIXM features.• Annotation and documentation:

– to enable users to understand the contents of the AIXM XSD files.

• Additional schema components: – to incorporate the use of the Geographical Mark-up Language

(GML), and to make use of additional concepts available in XSDL.

• Datatype definitions: – define AIXM features to encompass detailed aeronautical

domain information accurately.• Extension and restriction of datatypes:

– define and reuse datatype definitions within the schema.• Element and attribute declarations:

– define AIXM features.• Annotation and documentation:

– to enable users to understand the contents of the AIXM XSD files.

• Additional schema components: – to incorporate the use of the Geographical Mark-up Language

(GML), and to make use of additional concepts available in XSDL.

VerticalStructure includes ObstaclesVerticalStructure includes Obstacles

ElevatedCurve(from Geometry)

<<object>>ElevatedSurface

(from Geometry)

<<object>>ElevatedPoint

(from Geometry)

<<object>>

LightElement

colour : CodeColourTypeintensity : CodeLightIntensityTypetype : CodeLightSourceTypestatus : CodeStatusOperationsType

(from Shared)

<<object>>

11

hasPosition

VerticalStructurePartGeometry<<choice>>

0..10..1

hasCurveShape

0..10..1

hasSurfaceShape

0..10..1

hasPointShape

Timetable(from Time Management)

<<object>>

MarkerBeacon(from Navaids Points)

<<feature>>

VerticalStructureLighting

lighted : CodeYesNoTypelightingICAOStandard : CodeYesNoTypestatus : CodeStatusOperationsType

<<feature>>

0..n0..n

isComposedOf

0..10..1

isEffective

VerticalStructurePart

verticalExtent : ValDistanceTypeverticalExtentAccuracy : ValDistanceType

<<object>>

+horizontalProjection

VerticalStructure

name : TextNameTypetype : CodeVerticalStructureTypeconstructionStatus : CodeStatusConstructionTypematerial : CodeMaterialTypemarkingPattern : CodeVerticalStructureMarkingTypemarkingFirstColour : CodeColourTypemarkingSecondColour : CodeColourTypemarkingICAOStandard : CodeYesNoTypegroup : CodeYesNoType

<<feature>>

0..10..1

isActiveBy

0..10..1

isMarkedBy

0..10..1

isInstal ledOn

1..n1..n

isMadeOf

VerticalStructure elementVerticalStructure element

• Parent is <schema>– A Global element

• Of type VerticalStructureType• Inherits from the AbstractAIXMFeature

– Defined in XML as a substitutionGroup

• Parent is <schema>– A Global element

• Of type VerticalStructureType• Inherits from the AbstractAIXMFeature

– Defined in XML as a substitutionGroup

AbstractAIXMFeatureAbstractAIXMFeature

VerticalStructureType and reference to the TimeSlicePropertyTypeVerticalStructureType and reference to the TimeSlicePropertyType

complexType definition for VerticalStructureTimeSliceType

complexType definition for VerticalStructureTimeSliceType

ObstacleArea elementObstacleArea element

AirportHeliport(from AirportHeliport)

<<feature>>RunwayDirection

(from Runway)

<<feature>>OrganisationAuthority

(from Organisation)

<<feature>>

Surface(from Geometry)

<<object>>ObstacleAreaOrigin

<<choice>>

0..1+owner 0..1 0..1+owner 0..10..1+owner 0..1

ObstacleArea

type : CodeObstacleAreaType

<<feature>>

11

hasExtent

11

isDefinedFor

VerticalStructure<<feature>>

0..* 0..*0..* 0..*

hasObstacle

“ObstacleArea” element definition“ObstacleArea” element definition

• The “ObstacleArea” element is of datatype “ObstacleAreaType”

• “ObstacleAreaType” is an XSD complexType with complexContent

– It extends a primitive datatype that is also complexType

– It makes reference to “timeSlice”• “timeSlice” references a

TimeSlicePropertyType that references a TimeSlice definition

• The “ObstacleAreaTimeSlice” element is of datatype “ObstacleAreaTimeSliceType”

• The datatype declaration makes reference to the element group “ObstacleAreaPropertyGroup”

• The “ObstacleArea” element is of datatype “ObstacleAreaType”

• “ObstacleAreaType” is an XSD complexType with complexContent

– It extends a primitive datatype that is also complexType

– It makes reference to “timeSlice”• “timeSlice” references a

TimeSlicePropertyType that references a TimeSlice definition

• The “ObstacleAreaTimeSlice” element is of datatype “ObstacleAreaTimeSliceType”

• The datatype declaration makes reference to the element group “ObstacleAreaPropertyGroup”

“ObstacleAreaPropertyGroup” group of element definitions“ObstacleAreaPropertyGroup” group of element definitions

• The “ObstacleAreaPropertyGroup” group of element definitions containes three elements

• It also includes three elements that define relationships to other AIXM features

• The “ObstacleAreaPropertyGroup” group of element definitions containes three elements

• It also includes three elements that define relationships to other AIXM features

<choice> section of the “ObstacleAreaPropertyGroup” group <choice> section of the “ObstacleAreaPropertyGroup” group

• The three possible choices are defined as XSDL elements

• These elements are associations in the UML model

• The three possible choices are defined as XSDL elements

• These elements are associations in the UML model

UML for ObstacleAreaUML for ObstacleArea

ObstacleAreaOrigin<<choice>>

Surface

horizontalAccuracy : ValDistanceType

(from Geometry)

<<object>>

ObstacleArea

type : CodeObstacleAreaType

<<feature>>

11

isDefinedFor 11

hasExtent

Note

propertyName : TextDescriptionType

(from Notes)

<<object>>

0..*0..*

hasAnnotations

VerticalStructure

name : TextNameTypetype : CodeVerticalStructureTypeconstructionStatus : CodeStatusConstructionTypematerial : CodeMaterialTypemarkingPattern : CodeVerticalStructureMarkingTypemarkingFirstColour : CodeColourTypemarkingSecondColour : CodeColourTypemarkingICAOStandard : CodeYesNoTypegroup : CodeYesNoType

<<feature>>

0..*

0..*

0..*

0..*

hasObstacle

0..*0..* hasAnnotations