Last modified: 2011-12-16 02:51:53 UTC
Any reasonable person would expect that {{#tree:root=xxx|{{#generateTree:property=Subcategory of}} actually produced a list of categories and pages in those categories. However, it always shows nothing.
What does this have to do with SMW? It does not have #tree and #generateTree parser hooks.
That the treeview plugin uses the SMW engine to do its queries, and there is no possible property that actually produce the expected result.
Then it's a treeview issue and not an SMW one?
Not really. The only possible way I have found to get the answer to the question is to combine two queries. {{#ask:[[Subcategory of::+]] |?Subcategory of |format=broadtable |limit=99999 }} and {{#ask:[[Category:x]] |?Category |format=broadtable |limit=99999 }} Both of these do in my opinion not provide the data I would expect. The sub category query only shows categories, and not pages. The Category one shows only pages, but not categories. So it is not really possible to provide a query to treeview to perform the expected result.
You might want to make use of sub properties, see http://semantic-mediawiki.org/wiki/Help:Inferencing I don't really understand the issue though, but as far as I understand it, it's not a bug in SMW, but a feature request, so I changed this to "enhancement".
Isnt that exactly what I am writing I am doing? Except they dont work like one would expect them to. There is no query that will give you all pages in a given category along with the tree structure through the sub category hierarchy.