$smwgUseCategoryHierarchy
Configuration parameter details: | |||
Name | $smwgUseCategoryHierarchy | ||
Description | Sets whether elements of the subcategory hierarchy are considered as hierarchy elements in the annotation process | ||
Default setting | true |
||
(Other) available settings |
|
||
Software | Semantic MediaWiki | ||
Since version | |||
Until version | 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 configuration parameter was introduced in Semantic MediaWiki 1.5.0Released on 7 March 2010 and compatible with MW 1.14.x - 1.17.x. and deprecated with Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x.1.
SMW_CAT_HIERARCHY
to configuration parameter $smwgCategoryFeatures
Sets the behaviour of the query features related to category handling streamlining the overall configuration of Semantic MediaWiki.1 Thus you are advised to migrate your settings in "LocalSettings.php" to the new configuration parameter since this one will be removed with the release of Semantic MediaWiki 3.1.0Released on 23 September 2019 and compatible with MW 1.31.0 - 1.33.x. in 2019.
Default setting[edit]
$smwgUseCategoryHierarchy = true;
This means that 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, i.e. when querying all elements of "B" the result will also yield all elements of "A" if "A" is a subcategory of "B".
Changing the default setting[edit]
To modify the setting to this configuration parameter, add one of the following lines to your "LocalSettings.php" file after the enableSemantics()
call:
- Disable considering the category hierarchy automatically during annotation
$smwgUseCategoryHierarchy = false;
This means that incoming links will not be interpreted like subclasses and automatically annotated with special property "Subcategory of"Lets you explicitly indicate that one category is a subcategory of another.
$smwgShowFactbox
Sets in which cases the factbox should be shown below a page.
See also[edit]
- Help page on subcategory inferencing
- Help page on special property "Subcategory of"Lets you explicitly indicate that one category is a subcategory of another
- Help page on configuration parameter
$smwgQSubcategoryDepth
Sets the maximum level of subcategory inclusion (steps within category hierarchy) when querying - Help page on configuration parameter
$smwgCategoriesAsInstances
Sets whether a category statement should be treated as an element of the category - Help page on configuration parameter
$smwgCategoryFeatures
Sets the behaviour of the query features related to category handling
References
- a b Semantic MediaWiki: GitHub pull request gh:smw:2806