Last modified: 2008-01-19 22:27:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 12253 - query doesn't return pages where object is in category namespace
query doesn't return pages where object is in category namespace
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Markus Krötzsch
http://ontoworld.org/wiki/Property:Ha...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-12-09 08:10 UTC by S Page
Modified: 2008-01-19 22:27 UTC (History)
0 users

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


Attachments

Description S Page 2007-12-09 08:10:52 UTC
I noticed the query on the http://ontoworld.org/wiki/Property:Has_category page doesn't return anything, yet there are many instances of this property.  I suspect the magic word "category" in the property name "has category" causes problems, as a query for [[Has instance::+]] works fine; or maybe there's a problem retrieving objects of properties in the namespace "Category:".

I tried to reproduce this on my own install, and the query worked with one test relation [[Has category::Germany]] in the wiki but failed with the test relation [[Has test::Category:Germany]] in the wiki.

Feel free to reassign this back to me for more research.
Comment 1 S Page 2007-12-09 08:47:38 UTC
I think it's my latter hypothesis; when the object of the property is in the namespace "Category:", queries for that property don't return it. See the test at http://ontoworld.org/wiki/SMW_unit_test:Test_relation2.

Do you have to specify the namespace for the objects of queries?

Also see the query in http://ontoworld.org/wiki/Property:Has_subclass, it leaves out a number of pages with this property.
Comment 2 Markus Krötzsch 2007-12-28 10:26:47 UTC
A standard feature of SMW is to restrict sematnic queries to certain namespaces. By default, these namespaces are MAIN and IMAGE, and thus category pages are not considered in page positions in queries. This can be changed manually for single queries, or globally by extending the default namespace settings of the wiki. It is also possible to disable this filtering feature completely. I have added details on how to do that to http://ontoworld.org/wiki/SMW_unit_test:Test_relation2.
Comment 3 S Page 2008-01-19 22:27:12 UTC
The bug is now FIXED because shortly before SMW 1.0 Markus changed the default to $smwgQDefaultNamespaces = NULL, so there are no default namespace restrictions for queries.

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


Navigation
Links