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

OGC 08-094r1 SWE Common Data Model swe:label Motion Detected swe:label swe:description True when motion was detected in the room swe:description swe:value true swe:value swe:Boolean Without the value it can serve as data descriptor for values that are encoded separately. The following example shows how it is used in SPS to define a Boolean tasking parameter. It is used as the definition of the input parameter, and so does not contain the value: swe:Boolean definition = http:mmisw.orgontq2otesttimeContinuityTest swe:label Time Continuity Test swe:label swe:description Set to true to enable time continuity test swe:description swe:Boolean

8.1.4 Text Element

The “Text” element is the XML schema implementation of the “Text” UML class defined in clause 7.2.5. The schema snippet for this element and its corresponding complex type is shown below: element name = Text substitutionGroup = swe:AbstractSimpleComponent type = swe:TextType complexType name = TextType complexContent extension base = swe:AbstractSimpleComponentType sequence element name = constraint maxOccurs = 1 minOccurs = type = swe:AllowedTokensPropertyType element name = value maxOccurs = 1 minOccurs = type = string sequence extension complexContent complexType Constraints can be expressed by using the “AllowedTokens” element detailed in clause 8.1.15. The “value” property element is of the XML schema type “string” and it can contain XML entities if special characters i.e. not allowed in XML are required. The following instance shows how this element can be used to describe a “plate number”: swe:Text definition = http:mmisw.orgontmmideviceManufacturer swe:label Manufacturer swe:label swe:value Ocean Devices, Inc. swe:value swe:Text The plate number value that would be present in the corresponding data file or stream would then have to include a value that matches the pattern such as “5491 AB 31”. 72 Copyright © 2011 Open Geospatial Consortium SWE Common Data Model OGC 08-094r1

8.1.5 Category Element

The “Category” element is the XML schema implementation of the “Category” UML class defined in clause 7.2.6. The schema snippet for this element and its corresponding complex type is shown below: element name = Category substitutionGroup = swe:AbstractSimpleComponent type = swe:CategoryType complexType name = CategoryType complexContent extension base = swe:AbstractSimpleComponentType sequence element name = codeSpace maxOccurs = 1 minOccurs = type = swe:Reference element name = constraint maxOccurs = 1 minOccurs = type = swe:AllowedTokensPropertyType element name = value maxOccurs = 1 minOccurs = type = string sequence extension complexContent complexType The “codeSpace” element is of type “swe:Reference” and thus makes use of an “xlink:href” XML attribute to reference an external dictionary, taxonomy or ontology representing the code space Please refer to the documentation of the “xlink:simpleLink” attribute group for more details. Constraints can be expressed by using the “AllowedTokens” element detailed in clause 8.1.15. The “value” property element is of the XML schema type “string”. The text content of this element should however be limited to short tokens in the case of a categorical representation. The following example shows how the “codeSpace” element can be used to give the value of a geological period: swe:Category definition = http:sweet.jpl.nasa.gov2.0timeGeologic.owlGeologicTime swe:label Geological Period swe:label swe:description Name of the geological period according to the nomenclature of the International Commission on Stratigraphy swe:description swe:codeSpace xlink:href = http:sweet.jpl.nasa.gov2.0timeGeologic.owlPeriod swe:value Jurassic swe:value swe:Category Note that the code space references an existing dictionary defined by CGI Commission for the Management and Application of Geoscience Information. This shows how SWE Common can leverage an existing community managed terminology. Alternatively it can be used without the value to describe, for instance, a “bird species” field in a biology dataset: swe:Category definition = http:sweet.jpl.nasa.gov2.0biol.owlSpecies swe:label Bird Species swe:label swe:description Bird species according to the classification of the World Bird Database swe:description swe:codeSpace xlink:href = http:www.birdlife.orgdatazonespeciesindex.html swe:Category Copyright © 2011 Open Geospatial Consortium 73