Extension:LinkedWiki/Sparql parser

Parser functions : SPARQL

With the default endpoint
TODO
 * 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. (Test: #sparql_T2)

CHECK: TODO
 * Querying the properties of the current page (3 equivalent queries) (Test: #sparql_T4) :

With an endpoint defined in the configuration
TODO

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
CHECK: OK (bug version 2.1.1)
 * Change the headers.(Test: #sparql_T5)

Parameter: classHeaders
CHECK: ok
 * You can hide or change the style of your headers. Here, the first column has no header and is unsortable.(Test: #sparql_T6)

Example:



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

CHECK: ok
 * You can use this template in the following way:(Test: #sparql_T7)

CHECK: ok
 * And you can use a different template for each column:(Test: #sparql_T8)

Parameter: footer
CHECK: ok
 * you can remove the footer of array:(Test: #sparql_T11)

Parameter: cache
CHECK: ok
 * 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
CHECK: ok
 * 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:(Test: #sparql_T10)

Parameter: templateBare
CHECK: ok
 * you can remove the footer and the header. With the value "tableCell", you can catch only the cells.(Test: #sparql_T12)