Skip to content

🌻 MediaWiki extension adding a <query> tag to display sparql queries results inside wiki pages

Notifications You must be signed in to change notification settings

lingua-libre/QueryViz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

45 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

QueryViz

🌻 MediaWiki extension adding a <query> tag to display sparql queries results inside wiki pages.

Requirements

To complete

Installation

In /mediawiki-config/LocalSettings.php, add :

# Activate QueryViz extension
wfLoadExtension( 'QueryViz' );
$wgQueryVizEndpoint = "https://lingualibre.org/bigdata/namespace/wdq/sparql"; // Or your chosen default endpoint

For Lingualibre, see also /operations : LinguaLibre set up repository.

Update

Deploy:

  1. Go to host server : login
  2. cd /opt/mediawiki/x.xx/extensions/QueryViz # x.xx being your MediaWiki version
  3. git pull

Test on live website via private windows :

  • If work : we won !
  • if breaks : roll back change git reset --hard a0d3fe6 with the correct commit id found from Github

Structure

  β”œβ”€β”€ bin/build.sh : building script, copies few js.
  β”œβ”€β”€ i18n/ : translation files
  |     β”œβ”€β”€ en.json : English
  |     β”œβ”€β”€ fr.json : French
  |     └── qqq.json : guides
  β”œβ”€β”€ includes/TagHandler.php : load config, inject queryviz base html with empty loading element.
  β”œβ”€β”€ modules/
  |     β”œβ”€β”€ ext.queryViz.QueryViz.js : call the sparql, received data, built and inject corresponding html table.
  |     β”œβ”€β”€ ext.queryViz.WikidataSearchWidget.js : ? <believed to not be active>
  |     β”œβ”€β”€ ext.queryViz.js : ?
  |     └── ext.queryViz.css : css
  └── Hooks.php : parse page, call upon <query> the function TagHandler.php .
  

Contribute

Demo

See examples of use on LinguaLibre website: LinguaLibre:Stats, Help:SPARQL, Category:DataViz

About

🌻 MediaWiki extension adding a <query> tag to display sparql queries results inside wiki pages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published