Extension:SparqlResultFormat

Description
SparqlResultFormat is a free, open-source extension to MediaWiki that lets you query different Sparql endpoints and represent output data in various formats.

Installation

 * 1) Unzip the downloaded zip file to the extensions folder of your mediawiki and rename it to 'SparqlResultFormat'.
 * 2) Include the following line at the end of your LocalSettings.php:
 * 3) Check documentation at the Special:SparqlResultFormat page on your mediawiki

Formats & Examples
These examples works with Wikidata sparql query endpoint.

Define it in your LocalSettings.php $wgSparqlEndpointDefinition['wikidata'] = array(		'url' => 'https://query.wikidata.org/sparql',		'connectionTimeout' => 0,		'requestTimeout' => 30);

Node graph
Members of European Union with their capitals



Bar Chart
Top 20 countries by population size