Pages

Thursday, June 09, 2011

Plotting RDF data with a Semantic Media Wiki

Smwplot
I was not aware of that earlier, but data you have present in a semantic form in MediaWiki can be plotted using jqplot.

The wiki source for the plot in this screenshot looks like:

{{#ask: [[Category:Measurements]] [[Has Study::{{PAGENAME}}]] [[Has Endpoint::PercentageNonViableCells]]
| ?Has Endpoint Value
| format=jqplotbar
| sort=Has Endpoint Value
| order=ascending
| height=250
| width=600
}}

I am wondering if there is a {{#sparql: equivalent that I can use.

4 comments:

  1. By use of some MediaWikie extension?

    ReplyDelete
  2. Yes. I'll add the wiki source to the post now.

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Ah, ok, so you didn't need to install an extra extension? Nice.

    Reg. inline SPARQL queries, I think a few of these extensions can do that.

    ReplyDelete