Last modified: 2008-01-19 22:27:12 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 T14253, the corresponding Phabricator task for complete and up-to-date bug report information.
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