Page MenuHomePhabricator

[Story] Make Wikidata Query Service accessible without JavaScript
Closed, ResolvedPublic

Description

Currently, in a web browser with JavaScript disabled or not available, the UI at https://query.wikidata.org does not load, and queries cannot be entered or executed.

This task will be considered complete when the UI does load (using graceful degradation) and can be used to enter and submit queries.

(Auto-completion when entering queries will not be available without JavaScript. That is fine: users can copy/paste identifiers as needed.)

Details

Event Timeline

Bugreporter renamed this task from [Story] Enable Wikidata to be edited and queried without JavaScript to [Story] Make Wikidata Query Service accessable without JavaScript.Jun 27 2017, 4:09 PM
Bugreporter updated the task description. (Show Details)
Izno renamed this task from [Story] Make Wikidata Query Service accessable without JavaScript to [Story] Make Wikidata Query Service accessible without JavaScript.Jun 27 2017, 4:27 PM

Could you please explain what the motivation behind this is and also what you expect to work without JS?

Could you please explain what the motivation behind this is and also what you expect to work without JS?

I have updated the task description accordingly. Please let me know if you need further information.

Change 361835 had a related patch set uploaded (by Jonas Kress (WMDE); owner: Jonas Kress (WMDE)):
[wikidata/query/gui@master] Provide basic functionality without JS

https://gerrit.wikimedia.org/r/361835

As I understood this task cannot be properly completed without introducing a server-side component to Query Service GUI.

TLDR: Currently it makes browser to download a result file in application/sparql-results+xml format, which is hard to understand and not what user would expect, IMO.

So I suggest to postpone execution of this task. For now, I think it would be better to add some banner indicating that it doesn't work without JavaScript.
For more details, see my comment in https://gerrit.wikimedia.org/r/361835

TLDR: Currently it makes browser to download a result file in application/sparql-results+xml format, which is hard to understand and not what user would expect, IMO.

I agree that this is not what users are likely to expect as the default, but it is still much better than nothing, or than a banner saying "Enable JavaScript for this page to work". I would be glad if it were implemented, albeit only as a stop-gap until better server-side code has been developed to handle this story.

As for what users are likely to expect: an HTML table (similar to the way results are currently presented when JavaScript is enabled) would, I think, be the most likely default.

Assuming that in the non-JavaScript version of the page there will be a "Run query" button or similar, it would be nice for there to exist next to it a group of radio buttons with which the user can select the result format. If this is implemented, then "HTML table" should probably be the default, with application/sparql-results+xml as an alternative option.

For more details, see my comment in https://gerrit.wikimedia.org/r/361835

Gerrit doesn't seem to work without JavaScript enabled :(

I think it should be possible to make a form that submits query via POST to sparql URL. HTML table probably would require server-side development, which is not likely to happen soon, given current workloads.

Still I think the current patch is at least somewhat helpful, because you can enter a SPARQL query, submit it and download the result as XML.

Change 361835 merged by jenkins-bot:
[wikidata/query/gui@master] Provide basic functionality without JS

https://gerrit.wikimedia.org/r/361835

We've provided a minimal solution with this. At this point we are not going to put more work into it. If someone from outside the Wikidata dev team wants to provide patches that'd be welcome.