ad-freiburg / qlever-ui

A user interface for QLever
Apache License 2.0
19 stars 12 forks source link

Improve UI/UX when hovering over results table #19

Closed graue70 closed 4 years ago

graue70 commented 4 years ago

Use this example query on wikidata-full:

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX psn: <http://www.wikidata.org/prop/statement/value-normalized/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?movie ?movieLabel ?narrative_location ?narrative_locationLabel ?coordinates WHERE {
  ?movie wdt:P840 ?narrative_location ;
  wdt:P31 wd:Q11424 .
  ?narrative_location wdt:P625 ?coordinates .
  ?movie @en@rdfs:label ?movieLabel .
  ?narrative_location @en@rdfs:label ?narrative_locationLabel
}

Hovering over the chain symbol or any text in the results table changes the cursor to the link cursor, implying that I can click on the text. However, none of the text is clickable.

  1. Only actually clickable things should change the cursor to seem clickable. Pure text should use the text cursor (looks like a capital I in a serif font), which tells the user that they can select and copy the text.
  2. For elements with a chain symbol, which do have a link attached to it, the entire element including its text should be clickable. That would make it easier to follow the link.

Might be related: #9