SensorML 2.0 Examples
Hello World - Friendly, Helpful Sensor
An example of a sensor description with minimal information provided. The header information [highlighted section] defines the schema and namespaces. Except for the gml:id value and the element type (i.e. SimpleProcess, AggregateProcess, PhysicalComponent, or PhysicalSystem), it will be the same for all SensorML documents (so just copy and paste it).
The only other required element is the gml:identifier which must contain a unique ID of some sort (a UUID, URN, URL, or simple text). This ID should be used to identify any service or resource associated with this sensor.
To be useful, a sensor description should at a minimum tell "what it measures" and "where it is". Since a sensor in SensorML is simply a physical process that outputs a measurement, then "what it measures" is provided in the sml:outputs element. "Where it is" is provided by the sml:position element.
SensorML uses the OGC SWE Common Data specification for describing data within inputs, outputs, parameters, capabilities, and characteristics. The swe:Quantity element requires that one reference an online resolvable definition of the Quantity in order to be very specific about what is being measured and to provide some chance for interoperability between various sensor communities. These definition can come from online dictionaries or ontologies.