Property:Has type

From SUWS-wiki
Revision as of 19:37, 11 September 2011 by DavidNewman (talk | contribs) (Added property)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

has type is a special property in Semantic MediaWiki with a built-in meaning: it assigns a type to a property. Special:Types lists the types available in the wiki. See datatypes in the Help system. For example, the page for Property:Sowndns would specify [[has type::String]]. "Has type" assumes its value is in the Type namespace, so you can omit Type:.

Note that you can't perform a semantic search for articles with this special property. Instead, use the special Properties page which gives the type of each property in use; or the special "All Pages" page to display all articles in the Property namespace.

SMW 1.0 allows many-valued properties. You specify this by listing multiple types as the value of Has type, separated by semicolons. For example, on sandbox.semantic-mediawiki.org Property:Employment takes a link to a company, a job title, and a start and end date, so it specifies its type as [[has type:=Page; String; Date; Date]].

Showing 20 pages using this property.

Showing 2 related entities.