AllowedTimes Element Requirements Class: Basic Types and Simple Components Schemas Requirements Class

SWE Common Data Model OGC 08-094r1 Note that unbounded intervals are also possible when ISO 8601 notation is used. In all other cases mixing decimal and ISO 8601 notation is forbidden. If the “uom” element indicates that ISO 8601 is the unit, then constraints shall be expressed using ISO 8601 notation as well, otherwise constraints shall be expressed with decimal numbers with the scale specified by “uom”. This is enforced by a Schematron pattern Req 36.

8.1.18 Simple Component Groups

Three XML element groups as well as the corresponding property types are defined in the schema in order to simplify their use in external schemas. group name = AnyScalar choice element ref = swe:Boolean element ref = swe:Count element ref = swe:Quantity element ref = swe:Time element ref = swe:Category element ref = swe:Text choice group group name = AnyNumerical choice element ref = swe:Count element ref = swe:Quantity element ref = swe:Time choice group group name = AnyRange choice element ref = swe:QuantityRange element ref = swe:TimeRange element ref = swe:CountRange element ref = swe:CategoryRange choice group The “AnyScalar” group contains all scalar representations, “AnyNumerical” only numerical representations and the “AnyRange” group includes all range components. Copyright © 2011 Open Geospatial Consortium 89 OGC 08-094r1 SWE Common Data Model

8.2 Requirements Class: Record Components Schema Requirements Class

http:www.opengis.netspecSWE2.0reqxsd-record-components Target Type XML Instance Dependency http:www.opengis.netspecSWE2.0requml-record-components Dependency http:www.opengis.netspecSWE2.0reqxsd-simple-components XML Schema elements and types defined in the “record_components.xsd” schema implement all classes defined in the “Record Components” UML packages. Requirement http:www.opengis.netspecSWE2.0reqxsd-record-componentsdependency-simple-components Req 67. An XML instance passing the “Record Components Schema” conformance test class shall first pass the “Basic Types and Simple Components Schemas” conformance test class. Requirement http:www.opengis.netspecSWE2.0reqxsd-record-componentsschema-valid Req 68. The XML instance shall be valid with respect to the XML grammar defined in the “record_components.xsd” XML schema as well as satisfy all Schematron patterns defined in “record_components.sch”.

8.2.1 DataRecord Element

The “DataRecord” element is the XML schema implementation of the “DataRecord” UML class defined in clause 7.3.1. The schema snippet for this element and its corresponding complex type is shown below: element name = DataRecord type = swe:DataRecordType substitutionGroup = swe:AbstractDataComponent complexType name = DataRecordType complexContent extension base = swe:AbstractDataComponentType sequence element name = field maxOccurs = unbounded complexType complexContent extension base = swe:AbstractDataComponentPropertyType attribute name = name type = NCName use= required extension complexContent complexType 90 Copyright © 2011 Open Geospatial Consortium