Help:Configuration parameter "$smwgUseCategoryHierarchy"

From semantic-mediawiki.org
Jump to: navigation, search
edit with form (experimental)


Title $smwgUseCategoryHierarchy
Description Sets whether Semantic MediaWiki should consider MediaWiki's subcategory hierarchy as hierarchy elements in the annotation process
Default setting
true
Software Semantic MediaWiki
First version supported
Last version supported still available
Configuration Query settings
Keyword category · subcategory · inclusion · category hierarchy · hierarchy inferencing

$smwgUseCategoryHierarchy is a configuration parameter that sets whether Semantic MediaWiki should consider MediaWiki's subcategory hierarchy as hierarchy elements in the annotation process. The setting was introduced in Semantic MediaWiki 1.5.0Released on 7 March 2010 and compatible with MW 1.14.x - 1.17.x..

If set to true which is the default setting, subcategories will always be interpreted like subclasses and automatically annotated with special property "Subcategory of"Lets you explicitly indicate that one category is a subcategory of another.

This means that when querying all elements of "B" the result will also yield all elements of "A" if "A" is a subcategory of "B".

In case this setting is disabled with false, then subclass relationships can still be given explicitly by using special property "Subcategory of"Lets you explicitly indicate that one category is a subcategory of another on a category page. Note that only if the setting is false will such annotations be shown in the factbox if enabled with parameter configuration parameter $smwgShowFactboxNo description was provided..

See also