Page MenuHomePhabricator

Prefill query by default on the Wikidata Query UI
Open, Needs TriagePublic

Description

As a user of the Wikidata Query UI I want to find the basic elements of a SELECT query already filled in when loading https://query.wikidata.org in order to save some time.

Problem: The code box is blank each time that https://query.wikidata.org is loaded.

Example: The prefilled query could be similar to the following fragment (just a suggestion).

SELECT DISTINCT ?item ?itemLabel WHERE {
  ?item wdt:P31 wd:Q5.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?itemLabel)
LIMIT 100

Screenshots/mockups:

BDD
GIVEN
AND
WHEN
AND
THEN
AND

Acceptance criteria:

  • There is a prefilled SELECT query that contains at least SELECT DISTINCT and WHERE.
  • The prefilled query makes sense for any installation of the UI, or there is a prefilled query for the Wikidata Query Service and a more general prefilled query for the rest of installations.
  • All the elements of the prefilled query are clearly useful for most use cases and information needs (i.e., almost nothing will be removed from the prefilled query).

Open questions: