Base Abstract Complex Types
OGC 08-094r1 SWE Common Data Model
complexContent complexType
The “AbstractSWEIdentifiable” complex type derives from “AbstractSWE” and adds three identification elements. These elements are to be used as described in the UML
section of this standard.
The following XML elements and complex types are defined in the “simple_components.xsd” schema file:
element name
= AbstractDataComponent
abstract =
true type
= swe:AbstractDataComponentType
substitutionGroup =
swe:AbstractSWEIdentifiable complexType
name =
AbstractDataComponentType abstract
= true
complexContent extension
base =
swe:AbstractSWEIdentifiableType attribute
name =
definition type
= anyURI
use =
required attribute
name =
updatable type
= boolean
use =
optional attribute
name =
optional type
= boolean
use =
optional default
=fals e
extension complexContent
complexType
The “AbstractDataComponent” complex type adds XML attributes as defined in the UML class with the same name. The meaning of the corresponding UML class attributes
is detailed in clause 7.2.2.
Requirement
http:www.opengis.netspecSWE2.0reqxsd-simple-componentsdefinition-resolvable
Req 62. The “definition” attribute shall contain a URI that can be resolved to the
complete human readable definition of the property that is represented by the data
component.
element name
= AbstractSimpleComponent
abstract =
true substitutionGroup
= swe:AbstractDataComponent
type =
swe:AbstractSimpleComponentType complexType
name =
AbstractSimpleComponentType abstract
= true
complexContent extension
base =
swe:AbstractDataComponentType sequence
element name
= quality
type =
swe:QualityPropertyType minOccurs
= maxOccurs
= unbounded
element name
= nilValues
type =
swe:NilValuesPropertyType minOccurs
= sequence
attribute name
= referenceFrame
type =
anyURI use
= optional
attribute name
= axisID
type =
string use
= optional
extension complexContent
complexType
The “AbstractSimpleComponent” complex type adds XML attributes as defined in the UML class with the same name. The meaning of the corresponding UML properties is
detailed in clause 7.2.3. The “definition” attribute is mandatory on all elements derived
70
Copyright © 2011 Open Geospatial Consortium
SWE Common Data Model OGC 08-094r1
from “AbstractSimpleComponentType” see Req 18 of UML model. This is enforced by a Schematron pattern.
As the XML schema snippet shows, this abstract element contains two important property elements “quality” and “nilValues” as well as two attributes “referenceFrame”
and “axisID” implementing the corresponding attributes in the UML. Since all simple data components defined in this schema derive from this base type, these elements and
attributes are available on all of them. Examples in the following sub-clauses show their usage. Detailed content of the “Quality” and “NilValues” elements that are the values of
“QualityPropertyType” and “NilValuesPropertyType” respectively are given in clause 8.1.13 and 8.1.14.
Most simple data components defined in the following sub-clauses also allow for the definition of constraints via the “constraint” property element. When such constraints are
specified, the value of the component either inline or in a separate data block shall always satisfy these constraints.
The “definition” attribute is a URI that shall be resolvable to a human readable description of the property being measured or any other referenced concept. It is also
recommended that an XML representation of this information can be retrieved via content negociation.
Requirement
http:www.opengis.netspecSWE2.0reqxsd-simple-componentsinline-value-constraint-valid
Req 63. The inline value included in an instance of a simple data component shall
satisfy the constraints specified by this instance.