Last modified: 2011-12-16 02:51:53 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T35157, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33157 - "Subcategory of" is useless in tree generation
"Subcategory of" is useless in tree generation
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-15 08:14 UTC by davh
Modified: 2011-12-16 02:51 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description davh 2011-12-15 08:14:02 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.
Comment 1 Jeroen De Dauw 2011-12-15 16:14:25 UTC
What does this have to do with SMW? It does not have #tree and #generateTree parser hooks.
Comment 2 davh 2011-12-16 01:53:41 UTC
That the treeview plugin uses the SMW engine to do its queries, and there is no possible property that actually produce the expected result.
Comment 3 Jeroen De Dauw 2011-12-16 01:54:29 UTC
Then it's a treeview issue and not an SMW one?
Comment 4 davh 2011-12-16 02:05:21 UTC
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.
Comment 5 Jeroen De Dauw 2011-12-16 02:35:26 UTC
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".
Comment 6 davh 2011-12-16 02:51:53 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links