Help:Datatype "Temperature"

Holds temperature values (similar to type Quantity)
Further Information
Provided by: Semantic MediaWiki
Added in version: 1.0
Removed in version: still in use
Datatype ID:
In this wiki: Temperature
Table of 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

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.

Related query syntax elements


Help pageSyntax elementDescription
#ask: annotation query marker
Marks an inline query as part of an annotation1
#ask: control query marker
Allows to dynamically alter a result display without the need to reload a page2
#ask: deferred query marker
Marks an inline query as deferred from regular parsing2
#ask: hierarchy depth restriction
Restricts the hierarchy depth of a query3
#ask: printout column alignment
Defines an alignment for the content of a printout column
#ask: printout column width
Defines a width for a printout column4
#ask: printout sorting order
Defines the sorting order for printout statements (dot chain syntax)5


  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:2572
  2. a b  Semantic MediaWiki: GitHub pull request gh:smw:2398 (Add support for @deferred mode)
  3. ^  Semantic MediaWiki: GitHub issue gh:smw:2662
  4. ^  Semantic MediaWiki: GitHub pull request gh:smw:2677
  5. ^  Semantic MediaWiki: GitHub pull request gh:smw:2073