Estimate : <2 hour work. JS.
Idea : QueryViz plugin which currently hits by default on LinguaLibre Query Service (LLQS) could have a switch to hit on other QS such as Wikidata Query Service (WDQS) and its lexemes or others.
Values :
- Lili (default): `https://lingualibre.org/bigdata/namespace/wdq/sparql?query={SPARQL}`
- wikidata: `https://query.wikidata.org/bigdata/namespace/wdq/sparql?query={SPARQL}` or `https://query.wikidata.org/sparql?query={SPARQL}`
- commons: `https://commons-query.wikimedia.org/sparql?query={SPARQL}`
On the model of `#defaultView:Map`, `#defaultView:Table` used in WDQS. ( on the [[ https://w.wiki/5QZX | top of this query ]])
Add the recognition of `#defaultEndpoint:Wikidata` which would shift the whole to service Wikidata.
This would allow to view wikidata or other endpoint's data in QueryViz.
- Likely page to edit [[ https://github.com/lingua-libre/QueryViz/blob/master/modules/ext.queryViz.QueryViz.js | ext.queryViz.QueryViz.js ]]
- [[ https://github.com/lingua-libre/QueryViz/blob/master/modules/ext.queryViz.QueryViz.js#L2 | this]] and [[ https://github.com/lingua-libre/QueryViz/blob/master/modules/ext.queryViz.QueryViz.js#L202-L206 | that ]]
- refers to [[ https://github.com/lingua-libre/operations/blob/master/mediawiki-config/LocalSettings.php | operations/mediawiki-config/LocalSettings.php ]]'s variable `QueryVizEndpoint` .
- [[ https://github.com/lingua-libre/QueryViz/issues/4 | Github issue 4 ]]