Last modified: 2009-12-23 17:40:42 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 T22039, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20039 - Category and subcategory semantics should be configurable
Category and subcategory semantics should be configurable
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on: 21108
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-02 12:53 UTC by Markus Krötzsch
Modified: 2009-12-23 17:40 UTC (History)
0 users

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


Attachments

Description Markus Krötzsch 2009-08-02 12:53:47 UTC
All MediaWiki categories are currently interpreted like classes, i.e. as named collections of objects that relate to each other based on the objects they contain. In particular, subcategory relationship is interpreted as class containment.

This is not always appropriate: many categories are just "topics" so that subcategories may not be subclasses. It would be useful if one could configure the desired semantics either globally or individually for each category.
Comment 1 Markus Krötzsch 2009-11-03 16:52:56 UTC
This could be realized by simply having an explicit sub-class property as suggested in Bug 21108, and to simply have a global switch that disables automatic subclassing based on MW subcategories. Adding dependency.
Comment 2 Markus Krötzsch 2009-12-23 17:40:42 UTC
It is now possible to use the property "subcategory of" to explicitly define a category to be a subcategory of another one. A configuration option $smwgUseCategoryHierarchy (default: "true") has been added to determine whether or not MediaWiki's subcategory hierarchy (based on [[Category:Foo]] statements on category pages) should still be used as before. If this setting is disabled, then the Factbox will show subcategory annotations explicitly, otherwise they will not be shown there.

Independently, but somewhat related, there is also a new setting $smwgCategoriesAsInstances (default "true") that defines if category pages should be considered as elements of a category Foo if they contain statements of the form [[Category:Foo]]. By default, SMW will thus take MediaWiki's category annotation on category pages to mean bith subcategory and instance of, where both features can be disabled. If disabled, there is no alternative way of making category pages into instances of some other category.

Inline queries with the new internal property will work properly only after doing another setup/data refresh after upgrade (the DB layout has been extended slightly).

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


Navigation
Links