Page MenuHomePhabricator

parser should recognize "Category:+"
Closed, DeclinedPublic

Description

SMW does not recognize "Category:+" as a wildcard, which is inconsistent with the rest of the way SMW operates. Apparently, it's a special case that needs to be recognized, apart from interpreting "+" as a category.

https://bugzilla.wikimedia.org/show_bug.cgi?id=29891#c2

...the reason that [[Category:+]] does not work is simply that it is
ambiguous with SMW's way of searching for pages in the category called "+".
Since this is not a valid page, the query ends up having no conditions and all
pages are returned.


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=18319

Details

Reference
bz29900

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:30 PM
bzimport set Reference to bz29900.

Is there any use case for querying for pages that have some arbitrary category without saying which category it is? I do not really see what useful information the resulting list of pages could give you, unless you use categories only in a very limited sense (and ensure that all other users do the same).

At the time I posted this bug report, I think what I was trying to do was find uncategorized pages that also matched some specific semantic query. I might have also been trying to organize categories using their own "meta" semantic data.

Aklapper subscribed.

The Semantic MediaWiki developers requested in https://phabricator.wikimedia.org/T64114 to move their task tracking to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues and to close remaining tasks in Wikimedia Phabricator. If you still face the problem reported in this task in a supported version of SMW, please feel free to transfer your report to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues . We are sorry for the inconvenience.