Extension:LinkedWiki/Sparql parser

The SPARQL parser is able to build a table in your Wiki with results of a SPARQL query. You can customize this table with templates for each columns of your tables.

With the default endpoint

 * Querying without the parameter "endpoint" is possible but the variable $wgLinkedWikiConfigDefaultEndpoint has to be in the localsettings (see installation). By default the extension uses the endpoint of Wikidata.


 * Querying the properties of the current page :

With a specific endpoint
Print a simple Array with the following results:


 * Querying of the default endpoint and all the graphs of this endpoint.

Parameter: headers

 * Change the headers.

Parameter: classHeaders

 * You can hide or change the style of your headers. Here, the first column has no header and is unsortable.

Example:



Parameter: templates
With an example of template like Template:Test1 , and


 * You can use this template in the following way:


 * And you can use a different template for each column:

Parameter: footer

 * you can remove the footer of array:

Parameter: cache

 * Your data may be very volatile and you need accordingly to refresh the result of this query each time. To do so, you can disable the cache with the cache parameter, as follows:

Parameter: debug

 * Well, you can add several parameters at the same time but doing so, the wiki text can be very hard to debug. This parameter gives you the result of this parser before the last parsing of mediawiki:

Parameter: templateBare

 * you can remove the footer and the header. With the value "tableCell", you can catch only the cells.