Extension:Semantic Result Formats/process format
From MediaWiki.org
Process format is a format bringing together the MediaWiki Graphviz extension and Semantic MediaWiki. It allows Semantic MediaWiki' inline queries to display process graphs.
This extention have been uploaded to SVN and will be available in the next SRF release.
More about GraphViz can be found at the GraphViz page.
Contents |
[edit] Requisites
- Installed and running Semantic Mediawiki Extension, download from here
- Installed and running Mediawiki extension GraphViz, download from here
- please use the improved version from [1] including the local wiki URLs.
[edit] Install instructions
The process format is part of the Semantic Result Formats. Installation instructions can be found there.
Note that it may be a bit troublesome to install the GraphViz extension due to its current bad maintenance. It would be great if someone cleaned that up.
The process extension is disabled by default, because it requires another extension to work. Please add this line to LocalSettings.php:
$srfgFormats[] = 'process';
[edit] Additional query parameters
| Parameter | Type | default | Notes |
| graphname | String | ProcessQueryResult | Names the process graph |
| clustercolor | color names | lightgrey | Colors the cluster boxes |
| showroles | Yes or No | Yes | Shows the corresponding roles in the graph |
| showresources | Yes or No | No | Shows the corresponding resources in the graph |
| graphvalidation | Yes or No | No | Displays the process steps in red which do not have a assigned role |
| graphsize | pointf | none | Specifies the size of the graph |
[edit] Semantic query example
{{#ask: [[Category:Process Step]] [[Category:{{PAGENAME}}]]
| ?has OrSuccessor=hasorsuccessor
| ?has Successor=hassuccessor
| ?has ConTrueSuccessor=hascontruesuccessor
| ?has ConFalseSuccessor =hasconfalsesuccessor
| ?has Condition=hascondition
| ?has Role=hasrole
| ?uses Resource=usesresource
| ?has Status=hasstatus
| format=process
| graphsize=12,12
| graphvalidation=no
| showroles=yes
| showstatus=yes
| showresources=yes
| clustercolor=lightgrey
}}
[edit] Further documentation and examples
To see an example in action go to Process-Demo-Wiki.