Lydia_Pintscher created this task.
Lydia_Pintscher added projects: Wikidata Query UI, Wikidata-Campsite.
Restricted Application added a subscriber: Aklapper.

TASK DESCRIPTION
  As a query writer
  I want to see labels for the Properties and Items in my SPARQL query
  in order to know what is behind the opaque IDs
  
  **Problem:**
  People have a hard time mapping P-IDs and Q-IDs in the Query Service UI's 
SPARQL editor. It already has autocomplete and shows the IDs on hover but that 
is not enough for people to feel comfortable. This was again shown in a recent 
hackernews discussion.
  We should have some sort of overlay (like in Google Docs for example) that 
shows the label for the entities and hides their IDs.
  
  **Example:**
  How this looks in Google Docs:
  F34624248: image.png <https://phabricator.wikimedia.org/F34624248>
  
  **BDD**
  GIVEN 
  AND 
  WHEN
  AND
  THEN
  AND
  
  **Acceptance criteria:**
  
  [ ] IDs for entities are overlayed in the view of the Query Service UI. They 
are overlayed with the label of the Entity in the UI language or a fallback 
language.
  [ ] The underlying SPARQL code is not changed - also when copy-pasting the 
query. This only affects the view.
  
  **Open questions:**
  
  - Do we have a way to switch this on or off? If so how?
  
  **Notes:**
  
  - Some quick research by Lucas turned up:
    - in upcoming CodeMirror 6 there will be replace decorations 
<https://codemirror.net/6/docs/ref/#view.Decoration%5Ereplace> but that would 
be a larger migration
    - in CodeMirror 5 markText 
<https://codemirror.net/doc/manual.html#markText> sounds like you could do 
something similar with it, specifically replacedWith

TASK DETAIL
  https://phabricator.wikimedia.org/T289944

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lydia_Pintscher
Cc: Lucas_Werkmeister_WMDE, DVrandecic, Aklapper, Lydia_Pintscher, MPhamWMF, 
CBogen, Namenlos314, Gq86, Mahir256, EBjune, merbst, Salgo60, Jonas, Xmlizer, 
jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles
_______________________________________________
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org

Reply via email to