|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 "Has type"
Assigns a datatype to a property
|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:Has type|
The Has type property is a special property in Semantic MediaWiki with a built-in meaning: it assigns a datatype to a property. Special page "Types"Lists all available datatypes lists the datatypes available in the wiki.
For example, the page for property "Population" would specify
[[Has type::Number]] as datatype "Number"Holds integer and decimal numbers, with an optional exponent is adequate in this case. To make the datatype setting more human readable it is suggested to add the following syntax to the page which also provides a bit of context for the reader:
This is a property of type [[Has type::Number]]
From version Semantic MediaWiki 1.0Released on 31 December 2007 and compatible with MW 1.9.x - 1.12.x. to Semantic MediaWiki 1.4.3Released on 15 August 2009 and compatible with MW 1.13.x - 1.16.x., Semantic MediaWiki allowed many-valued properties. Types for these properties were specified by listing multiple types as the value of "Has type", separated by semicolons. Starting with Semantic MediaWiki 1.5.0Released on 7 March 2010 and compatible with MW 1.14.x - 1.17.x., many-valued properties were replaced by datatype "Record"Holds compound property values that consist of a short list of values with fixed type and order.
See the page of special property "Has type" to see which pages use this special property on this wiki.