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's inline queries to display process graphs.
More about GraphViz can be found at the GraphViz homepage.
Contents |
[edit] Requisites
- Installed and running Semantic Mediawiki Extension, download from here
- Installed and running Mediawiki extension GraphViz, download from here
[edit] Install instructions
The process format is part of the Semantic Result Formats extension. Installation instructions can be found there.
The process extension is disabled by default, because it requires another extension to work. To enable it, add this line to LocalSettings.php, below the inclusion of Semantic Result Formats:
$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.
