List of steps to reproduce (step by step, including full links if applicable):
- Install MediaWiki, Wikibase, Wikidata Query Service on remote server.
- Test to make sure all are functional.
- Install Wikidata Query Service GUI on same remote server.
- Connect to MediaWiki.
- Run, and then connect to, Blazegraph, check via localhost:9999 that it is functional.
- Load data in Blazegraph and test sample query using the Blazegraph GUI.
- Run Wikidata Query Service GUI.
- Attempt to run query SELECT * where {?a ?b ?c} LIMIT 10
What happens?:
When using the GUI with any query (ex: SELECT * where {?a ?b ?c} LIMIT 10), the following trace is created:
jquery.js:10109 GET http://localhost:9999/bigdata/namespace/wdq/sparql?query=SELECT%20*%20where%20%7B%3Fa%20%3Fb%20%3Fc%7D%20LIMIT%2010 net::ERR_FAILED 200 send @ jquery.js:10109 ajax @ jquery.js:9690 wikibase.queryService.api.Sparql.SELF._query @ Sparql.js:181 (anonymous) @ Sparql.js:141 mightThrow @ jquery.js:3766 process @ jquery.js:3834 setTimeout (async) (anonymous) @ jquery.js:3872 fire @ jquery.js:3500 add @ jquery.js:3559 (anonymous) @ jquery.js:3892 Deferred @ jquery.js:3983 then @ jquery.js:3877 wikibase.queryService.api.Sparql.SELF.query @ Sparql.js:140 wikibase.queryService.ui.ResultView.SELF.draw @ ResultView.js:304 wikibase.queryService.ui.App.SELF._handleQuerySubmit @ App.js:824 proxy @ jquery.js:10780 dispatch @ jquery.js:5430 elemData.handle @ jquery.js:5234 :600/#SELECT%20%2a%20where%20%7B%3Fa%20%3Fb%20%3Fc%7D%20LIMIT%2010:1 Access to XMLHttpRequest at 'http://localhost:9999/bigdata/namespace/wdq/sparql' from origin 'http://localhost:600' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. jquery.js:10109 POST http://localhost:9999/bigdata/namespace/wdq/sparql net::ERR_FAILED 200
And then, instead of a results appearing in the GUI, server error appears.
What should have happened instead?:
The results of SELECT * where {?a ?b ?c} LIMIT 10 should have been displayed in the GUI. The localhost GUI should be able to communicate with the localhost Blazegraph.
The Blazegraph is producing correct SPARQL output when a URL is manually run, and the GUI server has CORS enabled.
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:
- MediaWiki Version: 1.37
- Wikibase Version: 1.37
- Browser: Google Chrome, Version 101.0.4951.54 (Official Build) (64-bit)
- Host OS: Ubuntu 20.04.4 LTS (GNU/Linux 5.13.0-1022-aws x86-64
- Tunneling Info (between host and remote):
- localhost:80 [MediaWiki] --> localhost:400
- localhost:8080 [Wikidata Query Service GUI] --> localhost:600
- localhost:9999 [Blazegraph] --> localhost:9999