From: doug b. <db...@vi...> - 2012-12-18 18:15:15
|
Hello all, My goal is to build dynamic graphs based on SPARQL queries. I have the Graphviz Extension up and working, as well as the LinkedWiki extension to do SPARQL queries against my external triple store (4store). The LinkedWiki extension offers a #wsparql parser function that can pass the results of the query into a Widget. I have installed the Widget Extension and built a "Graphtest" Widget that tries to invoke the Graphviz extension: <graphviz border='frame' outputType='png'> digraph <!--{$name|default:'ChaCha'|escape:'html'}--> { node [shape=square]; <!--{if is_array($rows)}--> <!--{foreach from=$rows item=i}--> <!--{$i.app|escape:'html'}--> [label="<!--{$i.app|escape:'html'}-->"]; <!--{/foreach}--> <!--{/if}--> } </graphviz> But here is my problem: when I test the Widget with #widget, it simply outputs everything between <graphviz> and </graphviz> without invoking the Graphviz Extension. Can a Widget invoke another extension? Any one have any better ideas? Here are my versions: SMW: 1.7.1 Widgets: 0.9.2 Graphviz: 0.9.1 LinkedWiki: 2.0.0 alpha 1 Thanks, Doug |