SMW’s Semantic Result Formats – Jqplotchart/Jqplotseries format – A guide
Spread the love One of the most interesting aspects of Semantic Mediawiki is the data to chart integration, done though the Semantic Result Formats extension, and using the Jqplotchart and Jqplotseries formats, which in itself are based on jqPlot. However, it’s documentation and code examples are not as thorough as one can expect. Requirements To start with, just make sure you have all the proper extensions installed, namelly: Mediawiki version prior to 1.21(*) (1.20.6 is OK) Semantic Mediawiki 1.8 – Both SWM and SRF are undergoing some changes, so it’s better to keep a specific version. Semantic Results Formats 1.8 (*) There are some reports of problems with mediawiki 1.21, which I don’t wan’t to go though right now, so to make thing simpler, just avoid this version. Then, let’s create some data to test with. To make things easier, I created a mostly self contained wiki page with most code here. But lets go through all steps: Create data I created a series of sub objects which contain dummy data. The reason for the sub objects is simple: in order to create a single page with all test data, otherwise it won’t work on some charts, as some charts need data on …