Special property "Corresponds to"

From semantic-mediawiki.org
Jump to: navigation, search
Corresponds to
Gives the conversion factor for some unit of a physical quantity and the possible names for that unit
Further Information
Provided by: extension "Semantic MediaWiki "Semantic MediaWiki (SMW) is a free, open-source extension to MediaWiki that lets you store and query data within the wiki's pages. Semantic MediaWiki is also a full-fledged framework, in conjunction with many spinoff extensions, that can turn a wiki into a powerful and flexible knowledge management system. All data created within SMW can easily be published via the Semantic Web, allowing other systems to use this data seamlessly.
Added: 1.0
Removed: still in use
Alias: has no alias
Optional: no
Visible: yes
Annotable: yes
Declarative: yes
Setting: not specified
Focus: not specified
In this wiki: Property:Corresponds to

The Corresponds to property is a special property in Semantic MediaWiki with a built-in meaning: it gives the conversion factor for some unit of a physical quantity and the possible names for that unit. See the help page on Custom units for details on using this special property.

You can use this special property with properties of datatype "Quantity" or "Number". For example, the page for a "Has wattage" property might contain:

[[Corresponds to::1 W, Watt, Watts]]
[[Corresponds to::0.001 kW]]
[[Corresponds to::0.0013410220 hp, bhp, horsepower]]

For proportional conversions, as in the above example, datatype "Quantity" is set to the property. In case of non-proportional conversion datatype "Number" or an extra datatype is used. So far only datatype "Temperature" exists as an extra datatype of this kind.

Since Semantic MediaWiki 2.4.0 the position as suffix or prefix of the declared unit defines the display of the respective annotated data values.1

[[Corresponds to::€ 1]]
[[Corresponds to::1.06 USD, US$, $]]

See an example page on <sandbox.semantic-mediawiki.org>. See also the property page "Corresponds to" to see which pages use this special property on this wiki.


  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:1329