Special property "Corresponds to"

From semantic-mediawiki.org
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
Key:
_CONV
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"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.

Proportional conversions

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.

Example

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]]

Positional references

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

Example

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>.

See also

References

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