User talk:Dapete/Catgraph

Add topic
From Meta, a Wikimedia project coordination wiki
Latest comment: 6 years ago by Dapete in topic Außer Betrieb?


Please leave new messages on User talk:Dapete/vCat.


Bitte hinterlasse neue Nachrichten auf User talk:Dapete/vCat.

dead link[edit]

The link to the source code is dead. Der Link zum Sourcecode ist tot.

Google found the sources at another location - I updated the link to where I guess the code is.
ChrisRing 23:08, 18 December 2008 (UTC)Reply

Feature request[edit]

Hi, is there a way to tell catgraph to look for hidden categories as well? Apparently it does not? Regards, --Eusebius 10:11, 18 March 2009 (UTC)Reply

Since it does (at least now), it seems like an option to ignore them would be helfpul. Thank you. --AVRS 19:12, 30 May 2009 (UTC)Reply

I hope for this option, too. --Diwas 15:11, 14 September 2009 (UTC)Reply
It works. Thank you very much. --Diwas 20:03, 30 November 2009 (UTC)Reply

äÄ etc.[edit]

Hey Dapete,
can you integrate "charset=latin1" at the second line of the dot file for german articles/cats [1] . Thx for the great tool, Conny 18:26, 26 March 2009 (UTC).Reply


Hi, in the documentation is wrote "A value of 0 (default) shows the supercategories, a value of 1 shows the subcategories.", how to see all the subcategories ? I see only the first range. Thanks --Sisyph 19:14, 25 January 2010 (UTC)Reply

I experience the same problem on the Danish Wikipedia but not on Commons. --Heb 09:34, 21 January 2011 (UTC)Reply

Parameters page[edit]

Hi, would it be possible to add default parameters for form page to be coming also from query string? Eg i would like to link to catgraph's form page from finnish wikipedia categories and set the category parameter to be users current category but not execute the graph yet so there would be some context for the user and user can change parameters if he or she wants. -- 06:53, 10 July 2010 (UTC)Reply


"ignore hidden categories" does not work for me. The checkbox is ignored. For example shows a category named "hidden categories" despite ignorehidden=1. Besides, it would be wonderful, if the user could also input the name of an article, not only the name of categories. e.g. "Article:Apple" would find "Category:Fruits" and supercategories. --Boardersparadise 11:08, 5 April 2011 (UTC)Reply

That's already possible - if you use the form at, under "Show categories" select "article categories" and just enter the name of the article. If you build the URI manually, you have to use sub=article, e.g. --dapete 15:47, 5 April 2011 (UTC)Reply
thanks for your answer, dapete. Sorry that I missed that. It does indeed work for articles now, but I get wrong results. For example does produce a graph. However the results are wrong. According to the graph, the hierarchically lowest ranking category is "Problem behavior" whereas the supercategories for Catch-22_(logic) are "English idioms | Paradoxes | Catch-22 | Metaphors referring to war and violence". Those are shown in the graph, too, but in higher ranking, so that the viewer has no clue, which of the 100+ categories displayed is in deed a supercategory of Catch-22_(logic) and which isn't.
Other example: is supposed to show "Science" and its supercategories. However "Science" cannot be found on the map. And what about the checkbox "ignore hidden categories"? --Boardersparadise 17:04, 5 April 2011 (UTC)Reply
I think I solved all of this:
  • With ignorehidden=1, the name of the category was always replaced by the title of one of the other categories due to a bug; so "Catch-22 (logic)" is now shown at the bottom again.
  • ignorehidden=1 now actually works - both for subcategories and for article categories. The problem, partly, seems to be in the database - but I've worked around that and solved the other bugs I found after that.
  • Re the second example, actually "Science" was in there, but not at the bottom - due to the chaotic category structure. I have now forcibly moved the "root" category to the bottom. In this case, "Perception" still ends up at the bottom as well; but at least the one you want to look at isn't lost somewhere in the middle.
If anything is still not working correctly, please let me know. --dapete 22:27, 5 April 2011 (UTC)Reply
WOW!!! thank so much, you fixed all of the bugs, so wonderful!! ok, there is still a tiny problem left, but I guess this would be easy to solve. If you choose format=svg and links=graph your script forgets the user settings. For example, if you set ignorehidden=1 and then click on another field in the graph, the graph is reloaded and centered to the new field, but the hidden categories have reappeared. So the user can't browse the graph with hidden categories permanently hidden. Do you see what I mean? --Boardersparadise 22:41, 6 April 2011 (UTC)Reply
Ah, I remember now, I had seen that, and tried to fix it, but didn't have time to check if it had worked... which it had obviously not. I have looked at it again, and this time it should be fixed. --dapete 17:14, 7 April 2011 (UTC)Reply
perfect now! thanks so much Pete! --Boardersparadise 17:21, 7 April 2011 (UTC)Reply


As a member of connectivity project I am working on golem tool for articles and categorytree connectivity evaluation. For categorytree analysis data presentation (like this one) we are looking for a tool, which is capable of drawing graphs with links for a given group of categories identified as a strongly connected component in categorytree. Strongly connected components in oriented graph implies existence of paths from any category in it to any other.

With help of golem we can list categories in any strongly connected component in categorytree (in prectice we are interested in components larger than just a single article, therefor in the link given above you can seek for links not having "_1" at the end of the text), but this format is not very suitable for wikipedia editors, and we want the graph to be visualized somehow.

As a visualization framework catgraph looks amazing for this purpose, but I did not manage to find a way of right use for our puspose. Is it possible to draw a graph with links for a predefined set of categorytree members. Usually graphs we want to show are from 2 to sometimes 365 (as in the page linked) in size. Mashiah Davidson 21:40, 13 January 2012 (UTC)Reply

Hi Mashiah, a quick look at the code told me it could be done, so I did it (of course it was more complicated than I thought, as usual). You can now supply more than one cat=... parameter OR use one cat=... parameter with several categories separated by '|'. See this example. I don't know how useful this would be to you for many categories - catgraph will not include more than 100 categories in generated images. You would have to use 'format=dot' (which does not limit the number) and create an image from that yourself. However there is a reason for the 100 category limit - the graph images become extremely large, and often unreadable, depending on which categories you look at. --dapete 11:39, 14 January 2012 (UTC)Reply

Problem with meta[edit]

Hello - wow this is awesome! I am really enjoying exploring this and think it could be very useful for me! One thing I am having trouble with is visualizing the categories for meta. I select "Meta," and then leave the Language field blank, as indicated in the instructions. But regardless, I still get this error: "Could not find wiki 'meta' in language 'en'" Even if I then DO put in a different language (e.g., "de"), the exact same error message occurs. Any thoughts? It is very possible I'm doing something idiotic :) Jwild (talk) 19:45, 2 August 2012 (UTC)Reply

Should work again. It was broken because the internal name of Meta changed from "meta" to "wikimedia" at some point. --dapete 22:00, 2 August 2012 (UTC)Reply

Super and subcategories[edit]

Hallo Dapete, Catgraph ist ein sehr nützliches Hilfsmittel für mich, um in Kategorien den Überblick zu behalten. Und ich liebe es. Gibt es eine Möglichkeit, Ober- und Unterkategorien gleichzeitig darzustellen mit der angegebenen in der Mitte? Und könnte es möglich sein Zirkelbezüge hervorzuheben? Danke für dieses Tool und viele Grüße von -- Mapmarks (talk) 22:23, 14 January 2013 (UTC)Reply

Passing template cat parameter[edit]

How could it be done naturally? {{Catgraph|For example}} -> -- Abc82 (talk) 05:11, 7 August 2013 (UTC)Reply

You can use the urlencode magic word. "For example" becomes "For_example" using this:
{{urlencode:For example|WIKI}}
A full link can be built like this:
[{{urlencode:Kölner Dom|WIKI}}]
--dapete 15:57, 10 August 2013 (UTC)Reply

Außer Betrieb?[edit]

Heute bin ich auf den Catgraph gestoßen, aber leider funktioniert er nicht. Anstatt eines Diagramms liefert er die Fehlermeldung: Failed to open mysql connection to 'sql-toolserver'. Ist das ein temporäres Problem oder wurde der Service aufgegeben? Gibt es evtl. Ersatz? --Fir99 (talk) 20:11, 2 February 2014 (UTC)Reply

Catgraph läuft noch, aber der Toolserver im Augenblick nicht bzw. nicht richtig. Keine Ahnung was das Problem ist, falls es morgen nicht weg ist hake ich mal nach. --dapete 21:58, 2 February 2014 (UTC)Reply
Gibt es hierzu Neuigkeiten? Eine funktionsfähige Einbindung von vCat via common.js/vector.js ist mangels aktueller Dokumentation nicht leicht umsetzbar. --Angerdan (talk) 20:52, 15 February 2018 (UTC)Reply
@Angerdan, ich weiß ehrlich gesagt nicht, was du damit sagen willst. Hier ging es um ein Problem mit Catgraph auf dem alten alten Toolserver, beides gibt es nicht mehr, Neuigkeiten gibt es dazu also auch nicht. Die Doku unter User:Dapete/vCat sollte genauso gut (oder schlecht) sein wie die von Catgraph es war. Was konkret fehlt dir? Alles Weitere bitte auf User talk:Dapete/vCat, diese Seite hier ist nur noch als Archiv gedacht. --dapete 15:22, 17 February 2018 (UTC)Reply