Status: | effective |
Progress: | 100% |
Version: | 1.0+ |
Help:Datatype "Temperature"
Temperature | |
---|---|
Holds temperature values (similar to type Quantity) | |
Further information | |
Provided by: | Semantic MediaWiki |
Since version: | 1.0 |
Until version: | still in use |
Datatype ID: | _tem
|
In this wiki: | Temperature |
Table of Contents | |
Contents |
The datatype temperature is for temperature values. Unlike other physical quantities, temperature has to be a built-in type in SMW, because conversions between temperature scales can't be expressed as simple conversion factors in user-defined custom units.
Its possible units are
- K, kelvin, kelvins
- °C, Celsius, centigrade
- °F, Fahrenheit
- °R, Rankine
Temperature is a physical dimension whose standard unit is the K temperature unit in the International System of Units (SI).
Temperatures are rarely used in practical wikis. The feature is mainly provided as an example of how to realize own unit conversions by writing a simple PHP file. Indeed, the implementation of the temperature type could easily be copied and adapted to obtain support for other special datatypes that do not fit into the unit conversion framework of SMW.
The format of this datatype in RDF Export is XSD Double.
Examples[edit]
- API example