rawgraphs / rawgraphs-app

A web interface to create custom vector-based visualizations on top of RAWGraphs core
https://rawgraphs.io
Apache License 2.0
8.66k stars 1.84k forks source link

Data load from Wikidata Query Service (WQS) #189

Closed JBPressac closed 8 months ago

JBPressac commented 5 years ago

Hello, I found a link to http://wikidata.rawgraphs.io/?url=/ in Wikidata Query Service (see screenshot of WQS below). But http://wikidata.rawgraphs.io does not seems to work. For instance, if I try to add the following URL, the error message is displayed: Whoops! Something wrong with the URL you provided. Please be sure it is the correct address.

https://query.wikidata.org/#SELECT%20%3FgenreLabel%20%28COUNT%28%3Fitems%29%20AS%20%3Fcount%29%0AWHERE%20%7B%0A%20%20%3Fitems%20wdt%3AP31%20wd%3AQ215380%20.%20%23%20get%20things%20that%20are%20bands%0A%20%20%3Fitems%20wdt%3AP136%20%3Fgenre%20.%20%23%20get%20the%20genre%20of%20the%20band%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%0A%20%20%20%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22%20.%20%23get%20labels%20in%20english.%0A%20%20%20%20%23with%20this%20service%2C%20you%20can%20add%20%22Label%22%20suffix%20to%20any%20variable.%0A%20%20%7D%0A%7D%0A%0AGROUP%20BY%20%3FgenreLabel

It seems that http://wikidata.rawgraphs.io is expecting a URL of type https://query.wikidata.org/sparql?query= which is not the case of the WQS URLs.

2019-03-25 11_04_11-Window