|Found errors or typos? Just edit the page or leave a message on the talk page.|
The English language documentation is canonical and most up to date.
Special property "Corresponds to"
Gives the conversion factor for some unit of a physical quantity and the possible names for that unit
|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.|
|Removed:||still in use|
|Alias:||has no alias|
|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"Holds values that describe quantities, containing both a number and a unit or datatype "Number"Holds integer and decimal numbers, with an optional exponent.
See also the property page "Corresponds to" to see which pages use this special property on this wiki.
For proportional conversions, as shown in the example below, datatype "Quantity" is set to the property. In case of non-proportional conversion either datatype "Number" or a designated datatype is used. So far only datatype "Temperature"Holds temperature values (similar to type Quantity) exists as an extra datatype of this kind.
The page of a property called "Has wattage" might contain:
[[Corresponds to::1 W, Watt, Watts]] [[Corresponds to::0.001 kW]] [[Corresponds to::0.0013410220 hp, bhp, horsepower]]
Since Semantic MediaWiki 2.4.0Released on 9 July 2016 and compatible with MW 1.19.0 - 1.27.x. the position as suffix or prefix of the declared unit defines the display of the respective annotated data values.1
The page for a property called "Has currency" might contain:
[[Corresponds to::€ 1]] [[Corresponds to::1.06 USD, US$, $]]
See also the respective example page on <sandbox.semantic-mediawiki.org>.
- Semantic MediaWiki: GitHub pull request gh:smw:1329