Subcategory?

From semantic-mediawiki.org

> Subcategories in deeper levels of the category hierarchy (for instance, those in Category:Developer documentation) are not included in the results. It is not currently possible in SMW to query for subcategories in all levels of the category hierarchy.

I don't understand this sentence (what is "deeper levels", do we have a reference that makes this statement valid)?

A query like :

{{#ask: [[Category:SubCategoryLevelQuery]]
 |?Category
}}

with SubCategoryLevelQuery -> SubCategoryLevelQuery1 -> SubCategoryLevelQuery2 -> SubCategoryLevelQuery3 is resolved correctly.

$GLOBALS['smwgQSubcategoryDepth'] is of importance.

13:10, 1 September 2015

Thanks for responding so quickly. What you describe is not the same thing: it does not give us a list of subcategories but a list of pages that are included in those subcategories. There are probably workarounds (yes, using printout parameters such as ?Category may be a starting point), but the categories themselves are not the primary results produced by a query. Mmm, maybe the wording 'query for' could be changed to reflect this more clearly.

14:15, 1 September 2015