"Seegrid will be due for a migration to confluence on the 1st of August. Any update on or after the 1st of August will NOT be migrated"

UML Stereotypes and Tagged Values for GML Application Schemas

Contents

Related pages



Summary of GML stereotypes

The first set of stereotypes corresponds primarily the set described in Table E.1 of ISO 19136:2007 (GML 3.2.1), and are suitable for a domain model that is ready for direct conversion to XML as a GML Application Schema.

Stereotype name Scope Use XML Implementation
«Application Schema»
«applicationSchema»
Package Complete application schema An XML Schema in a single XML namespace
«FeatureType»
«featureType»
Class Feature-type XML element whose XML Schema-type is derived from gml:AbstractFeatureType
noStereotype «Type»
«type»
Class Referenceable objects other than features XML element whose XML Schema-type is derived from gml:AbstractGMLType
«DataType»
«dataType»
Class Structured data type XML element with a complex content model; does not have identity and must appear inline
«Union»
«union»
Class Arbitrary set of alternative classes Choice group whose members are GML Objects or Features, or objects corresponding to DataTypes
«CodeList»
«codeList»
Class Extensible enumeration Union of an enumeration of string values and a pattern
«Enumeration»
«enumeration»
Class Fixed enumeration Enumeration of string values

Some additional stereotypes have been found useful in domain modelling. These are packaged as a separate "UML Profile" for use in the HollowWorld environment.

Stereotype name Scope Use XML Implementation
«Leaf» Package Convenient group of elements within an application schema Single XML Schema document
«PrimitiveType» Class Structured data type Class which has a "canonical" pre-defined XML encoding
«property» attribute, associationRole property local element (a) having a simple type (b) containing a complex type, or (c) using the GML in-line or by-reference pattern

A set of tagged-values is prescribed for each stereotype, to specify information required for the XML implementation derived from the model. See GML stereotypes and associated tagged values for more detail.

ISO GML stereotypes and associated tagged values

NOTE: Tag usage is described in ISO 19136:2007 Annex E, except for tags in italics which relate to proposed extensions to the standard . Tags in bold are mandatory .
UML element GML Application Schema implication UML Tagged values
All elements   documentation=string
The first group of UML elements are related to packaging and namespaces
Package The default mapping is one W3C XML Schema document per package targetNamespace=anyURI
xmlns=NCName
xsdDocument=string
version=string
«Application Schema» Components in a single XML Namespace targetNamespace=anyURI
xmlns=NCName
xsdDocument=string
version=string
«Leaf» Components described in a single W3C XML Schema Document xsdDocument=string  
The second group of elements are classes carrying various stereotypes
Classes in the first group are implemented as global XML Schema Type Definitions. They are used to define content models for XML elements representing simple properties
«Enumeration» Type defined as a restriction of W3C XML Schema string with enumeration values  
«CodeList» Type defined as the union of an enumeration and a string pattern "other:value", or a reference to a dictionary
the tags in italics are mandatory for FullMoon processing when asDictionary=true
asDictionary=boolean default="false"
codeSpace=anyURI
dictionaryIdentifier=anyURI
memberIdentifierStem=anyURI
Classes in the next group are implemented as global XML Schema element declarations, supported by global XML Schema Type Definitions. The substitutionGroup affiliation is the element representing the parent class. Note: Abstract classes have the abstract attribute set "true"
«DataType» Global element with a complexType whose content model is normally implemented as a <sequence> of elements representing the properties noPropertyType=boolean default="false"
byValuePropertyType=boolean default="false"
«Type»
or no stereotype
Global element with a complexType whose content model is a <sequence> of elements representing the properties. The type definition is immediately or transitively derived from AbstractGMLType,
else if xmlSchemaType has a value it has a special implementation as the given XML Schema type
noPropertyType=boolean default="false"
byValuePropertyType=boolean default="false"
xmlSchemaType=QName
«FeatureType» Global element with a complexType whose content model is a <sequence> of elements representing the properties. The type definition is immediately or transitively derived from AbstractFeatureType noPropertyType=boolean default="false"
byValuePropertyType=boolean default="false"
Other class types
«Union» Named choice-group whose members are GML Objects or Features, or objects corresponding to DataTypes noPropertyType=boolean default="false"
Properties
Attribute Local element within the content model (i.e. the complexType definition) of a DataType, ObjectType or FeatureType
* the name of the property is given by the attribute name
* when the UML type of the attribute is a class stereotyped «Enumeration» or «CodeList», the type of the property element is the XML Schema type mapped to the attribute type or target class
* when the UML type of the attribute is a class stereotyped «DataType», the property element has a complexType following the "inline" pattern described in GML 3.2 clause 7, that contains the element with the name of the target class
* when the UML type of the attribute is a class stereotyped «Type» or «FeatureType», the property element has a complexType following the standard by-value or by-reference pattern described in GML 3.2 clause 7
inlineOrByReference=(inline,byReference,inlineOrByReference) default="inlineOrByReference"
sequenceNumber=integer
isMetadata=boolean default="false"
ownedBy=string
Association end Local element within the content model (i.e. the complexType definition) of a DataType, Type or FeatureType
* the name of the property is given by the roleName on the target end of a navigable association
* when the UML type of the association target is a class stereotyped «DataType», the property element has a complexType following the "inline" pattern described in GML 3.2 clause 7, that contains the element with the name of the target class
* when the UML type of the association target is a class stereotyped «Type» or «FeatureType», the property element has a complexType following the standard by-value or by-reference pattern described in GML 3.2 clause 7
inlineOrByReference=(inline,byReference,inlineOrByReference) default="inlineOrByReference"
sequenceNumber=integer
isMetadata=boolean default="false"
isCollection=boolean default="false"
ownedBy=string

INSPIRE stereotypes and associated tagged values

The INSPIRE project specifies a variant set of stereotypes and tagged values in INSPIRE Generic Conceptual Model Clause 9.6.3.

Stereotype Model element Description Tagged Value Description
applicationSchema Package An INSPIRE application schema according to ISO 19109 and the Generic Conceptual Model. [ISO 19109] targetNamespace Target XML namespace of the application schema [ISO 19136]
xmlns Namespace prefix to be used as short form of the target namespace [ISO 19136]
version Current version of the application schema [ISO 19136]
gmlProfileSchema URL of the schema location of a GML profile (optional) [ISO 19136]
xsdDocument Name of an XML Schema document to create representing the content of this package [ISO 19136]
xsdEncodingRule XML Schema encoding rule to apply (iso19136_2007 or iso19139_2007) [D2.7]
leaf Package A package that is not an application schema and contains no packages. [ISO/TS 19103] n/a n/a
featureType Class A spatial object type. [ISO 19136] inspireConcept URN reference to the feature concept in the INSPIRE Feature Concept Dictionary Register [GCM]
xsdEncodingRule XML Schema encoding rule to apply (iso19136_2007, iso19136_2007_INSPIRE_Extensions or iso19139_2007) [D2.7]
noPropertyType Surpress creation of a standard property type that supports inline or by-reference encoding (applies to ISO 19136:2007 encoding rule). Always set to false in INSPIRE. [ISO 19136]
byValuePropertyType Create a property type that requires that the instance is encoded inline (applies to ISO 19136:2007 encoding rule). Always set to false in INSPIRE. [ISO 19136]
isCollection Identifies the feature type as a feature collection. [ISO 19136]
placeholder Class A class that acts as a placeholder for a class, typically a spatial object type, that will be specified in the future as part of another spatial data theme. The class should at least have a definition, but may otherwise have a preliminary or no specification. see featureType see featureType
type Class A conceptual, abstract type that is not a spatial object type. [ISO/TS 19103] xsdEncodingRule XML Schema encoding rule to apply (iso19136_2007, iso19136_2007_INSPIRE_Extensions or iso19139_2007) [D2.7]
noPropertyType Suppress creation of a standard property type that supports inline or by-reference encoding (applies to ISO 19136:2007 encoding rule). Always set to false in INSPIRE. [ISO 19136]
byValuePropertyType Create a property type that requires that the instance is encoded inline (applies to ISO 19136:2007 encoding rule). Always set to false in INSPIRE. [ISO 19136]
isCollection Identifies the feature type as a spatial object collection. [ISO 19136]
xmlSchemaType If the type has a canonical XML Schema encoding the XML Schema typename corresponding to the data type shall be given as the value (applies to ISO 19136:2007 encoding rule) [ISO 19136]
dataType Class A structured data type without identity. [ISO/TS 19103] xsdEncodingRule XML Schema encoding rule to apply (iso19136_2007, iso19136_2007_INSPIRE_Extensions or iso19139_2007) [D2.7]
noPropertyType Suppress creation of a standard property type that supports inline or by-reference encoding (applies to ISO 19136:2007 encoding rule). Always set to false in INSPIRE. [ISO 19136]
isCollection Identifies the feature type as a spatial object collection. [ISO 19136]
union Class A structured data type without identity where exactly one of the properties of the type is present in any instance. [ISO/TS 19103] xsdEncodingRule XML Schema encoding rule to apply (iso19136_2007, iso19136_2007_INSPIRE_Extensions or iso19139_2007) [D2.7]
noPropertyType Suppress creation of a standard property type that supports inline or by-reference encoding (applies to ISO 19136:2007 encoding rule). Always set to false in INSPIRE. [ISO 19136]
enumeration Class An enumeration. xsdEncodingRule XML Schema encoding rule to apply (iso19136_2007, iso19136_2007_INSPIRE_Extensions or iso19139_2007) [D2.7]
codeList Class A code list. xsdEncodingRule XML Schema encoding rule to apply (iso19136_2007, iso19136_2007_INSPIRE_Extensions or iso19139_2007) [D2.7]
asDictionary Encode code list as externally managed dictionary (applies to ISO 19136:2007 encoding rule). Always true in INSPIRE. [ISO 19136]
import Dependency The model elements of the supplier package are imported. n/a n/a
voidable Attribute, association role If a characteristic of a spatial object is not present in the spatial data set, but may be present or applicable in the real world, the property shall receive this stereotype. If and only if a property receives this stereotype, the value of void may be used as a value of the property which shall imply that the characteristic is not present in the spatial data set, but may be present or applicable in the real world. It is possible to qualify a value of void in the data with a reason using the VoidValueReason type. n/a n/a
lifeCycleInfo Attribute, association role If in an application schema a property is considered to be part of the life-cycle information of a spatial object, the property shall receive this stereotype. n/a n/a
version Association role "If in an application schema an association role ends at a spatial object type, this stereotype denotes that the value of the property is meant to be a specific version of the spatial object, not the spatial object in general. n/a n/a

 
Topic revision: r16 - 15 Oct 2010, UnknownUser
 

Current license: All material on this collaboration platform is licensed under a Creative Commons Attribution 3.0 Australia Licence (CC BY 3.0).