Hi Maarten,
first, sorry for the late reply, I was on holiday.
On Sun, 22 Dec 2013 13:42:25 +0100
Maarten Dammers <maarten(a)mdammers.nl> wrote:
[...]
On Commons Daniel Schwen started two discussions related to categories:
*
https://commons.wikimedia.org/wiki/Commons:Village_pump#Category_.22tree.22…
*
https://commons.wikimedia.org/wiki/Commons:Village_pump#Commons_Category_In…
I used to have a simple child->parent database at the Toolserver, it
broke down and if Catgraph
(
https://wikitech.wikimedia.org/wiki/Nova_Resource:Catgraph) is a good
alternative, I'd rather use that.
Use cases (all at Wikimedia Commons):
* Make a report of loops. I want a report for each length: 0 being self
categorized, 1 being A->B->A, 2 being A->B->C->A etc.
* Give a number of categories and filter out overcategorization
(Category:Berlin + Category:Germany -> Category:Berlin)
Can this be done with catgraph?
I think so. This is a little tool I wrote to find cycles in WP
categories:
http://tools.wmflabs.org/render-tests/catcycle-dev/catcycle.py
But we don't have Commons categories yet. I'll look into importing
commons, then get back to you.
Cheers,
Johannes
--
Johannes Kroll
Softwareentwickler
Wikimedia Deutschland e.V. | Tempelhofer Ufer 23-24 | 10963 Berlin
Tel. (030) 219 158 26-0
http://wikimedia.de
Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e.V.
Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg
unter der Nummer 23855 B. Als gemeinnützig anerkannt durch das
Finanzamt für Körperschaften I Berlin, Steuernummer 27/681/51985.