Help:Special property "Has type"

Jump to: navigation, search
Has type
Assigns a type to a property
Further Information
Provided by: Semantic MediaWiki
Added: 1.0
Removed: still in use
Alias: has no alias
Is optional: no
Label: not specified
Focus: not specified
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:Types lists the types available in the wiki.

For example, the page for Property:Population would specify
This is a property of type [[Has type::Number]]
as datatype number is adequate in this case.

From version 1.0 to 1.4.3, SMW 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 version 1.5.0, many-valued properties were replaced by the type Record.

See the property page Has type to see which pages use this special property on this wiki.


Note that has type can always be used verbatim in English, but many other languages have translations for this property. It is probably preferred to use the translated version.

  • German: Datentyp
  • Traditional Chinese: 設有型態
  • Simplified Chinese: 设有型态
  • Slovakian: Má typ
  • Russian: Имеет тип
  • Polish: Ma typ
  • Dutch: Heeft type
  • Korean: 이 유형
  • Hebrew: מטיפוס
  • French: A le type
  • Spanish: Tiene tipo de datos


It is possible to introduce further aliases for this (or any other special property by adding an entry to the $m_SpecialPropertyAliases array of the SMW_LanguageXX class (with XX being the language code used for the wiki). An entry for the English alias exists already.

This documentation page applies to all SMW versions from 1.5.0 to the most current version.
      Other languages: dezh-hans

Help:Special property Has type en 1.5.0