Help:$smwgUseCategoryHierarchy
Title | $smwgUseCategoryHierarchy |
Description | Sets whether Semantic MediaWiki should consider MediaWiki's subcategory hierarchy in querying. |
Default setting | true |
Software | Semantic MediaWiki |
Introduced with | 1.5.0 |
Deprecated with | still available |
Configuration | Query settings |
Keyword | Category · Sub-category · Inclusion · Category hierarchy · Hierarchy inferencing |
Referenced by | N/A |
$smwgUseCategoryHierarchy
is a configuration parameter that sets whether Semantic MediaWiki should consider MediaWiki's subcategory hierarchy in querying. The setting was introduced in Semantic MediaWiki 1.5.0.
If set to true
(default setting), subcategories will always be interpreted like subclasses. For example, if "A" is a subcategory of "B" then a query for all elements of "B" will also yield all elements of "A".
In case this setting is disabled with false
, then subclass relationships can still be given explicitly by using the special property "Subcategory of" on some category page. Only if the setting is false
will such annotations be shown in the factbox (if enabled with parameter $smwgShowFactbox
).
See also parameter $smwgCategoriesAsInstances
.