Property:Has type

From SUWS-wiki
(Added property)
 
mNo edit summary
 
Line 4: Line 4:
[[Special:Types]] lists the types available in the wiki.
[[Special:Types]] lists the types available in the wiki.
See [[Help:Properties_and_types#Datatypes|datatypes in the Help system]].   
See [[Help:Properties_and_types#Datatypes|datatypes in the Help system]].   
For example, the page for [[Property:Sowndns]] would specify <tt><nowiki>[[has type::String]]</nowiki></tt>.  "Has type" assumes its value is in the Type namespace, so you can omit ''Type:''.
For example, the page for [[Property:Title]] would specify <tt><nowiki>[[has type::String]]</nowiki></tt>.  "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|special Properties page]] which gives the type of each property in use; or the [[Special:Allpages|special "All Pages" page]] to display all articles in the Property namespace.
Note that you can't perform a semantic search for articles with this special property. Instead, use the [[Special:Properties|special Properties page]] which gives the type of each property in use; or the [[Special:Allpages|special "All Pages" page]] to display all articles in the Property namespace.

Latest revision as of 22:56, 11 September 2011

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