Hi, When I ask for two graphs in the same page, both are the same. E.g. the following should be different:
{{#ask: [[Category:Bases psychopédagogiques des technologies éducatives]]
|? page suivante
| format=graph
| graphcolor=yes
| graphlink=yes
| nodeshape=box
| graphname=Liens entre modules
| graphlegend=yes
| graphlabel=yes
| graphsize=10,500
| rankdir=TB
}}
{{#ask: [[Category:Bases psychopédagogiques des technologies éducatives]]
|? page suivante
|? page parente
| format=graph
| graphcolor=yes
| graphlink=yes
| nodeshape=box
| graphname=Liens entre modules 2
| graphlegend=yes
| graphlabel=yes
| graphsize=10,500
| rankdir=TB
}}
Looking at the graphviz file names. It only creates one file as opposed to two.
-rw-r--r-- 1 www-data www-data 117730 oct 1 19:08 SandBoxdigraph .png -rw-r--r-- 1 www-data www-data 2340 oct 1 19:08 SandBoxdigraph .map
In principle, Graphviz can do more than one drawing on a page.
SRF Version (latest from GIT master, 1.9 alpha)
Online example (wiki is public read / difficult signup)
- Sandbox: http://edutechwiki.unige.ch/fr/SandBox#Semantic_Mediawiki
- Intended use: http://edutechwiki.unige.ch/fr/Bases_psychop%C3%A9dagogiques_des_technologies_%C3%A9ducatives (contents may change)
- greetings ! Daniel PS: If you don't have time for fixing it (sorry my programming is too weak to help), we could add this limit to the documentation page.
The problem is in SRFGraph::getParamDefinitions (SRF_Graph.php). The solution is to change the first instance of "graphsize" to "graphname" in this function (making $params['graphname'] agree with 'srf_paramdesc_graphname').
Opened an issue: https://github.com/SemanticMediaWiki/SemanticResultFormats/issues/43