Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank nodes in results should be shown as 'unknown value' in the UI #451

Closed
graue70 opened this issue Aug 20, 2021 · 6 comments
Closed

Blank nodes in results should be shown as 'unknown value' in the UI #451

graue70 opened this issue Aug 20, 2021 · 6 comments

Comments

@graue70
Copy link
Contributor

graue70 commented Aug 20, 2021

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?0 WHERE {
  wd:Q710099 wdt:P20 ?0 .
}

yields the following result: :1d420e146c92547669e403aa015b1e1b.

On wikidata you can see that the result should be 'unknown value' (and it's been like that since 2016).

@joka921
Copy link
Member

joka921 commented Sep 4, 2021

This is a socalled "blank node" which does not have a proper iri <http://something.org/...> but just an internal numeric identifier that starts with _: . It is legal to export these internal identifiers. If you want to show "unknown value" as the
Wikidata query Service does, you can just replace all results that start with _: by unknown value.

@graue70
Copy link
Contributor Author

graue70 commented Sep 4, 2021

In that case, would you agree that it is a UI issue? I strongly suggest showing 'unknown value' to the user. Could you please transfer the ticket if you agree?

@justin2004
Copy link

identifiers like _:1d420e146c92547669e403aa015b1e1b are used in most triplestores i've used. fuseki, stardog, etc.

@graue70
Copy link
Contributor Author

graue70 commented Oct 2, 2021

identifiers like _:1d420e146c92547669e403aa015b1e1b are used in most triplestores i've used. fuseki, stardog, etc.

I'm not arguing about the data format when downloading the data as a file or about the RDF specs. I am saying that a Graphical User Interface like QLever UI which tries to be user friendly should not show internal identifiers but 'no value' instead.

Similarly, the QLever UI already shows a literal like "8850.0"^^<http://www.w3.org/2001/XMLSchema#decimal> as 8850.0 so the UI makes the data more visually appealing and understandable already in some regards.

(Note that this issue should be in https://github.com/ad-freiburg/qlever-ui. That's why I asked @joka921 to transfer it there.)

@graue70 graue70 changed the title Result 'unknown value' is returned in a weird way Blank nodes in results should be shown as 'unknown value' in the UI Oct 2, 2021
@hannahbast
Copy link
Member

hannahbast commented Oct 2, 2021

@graue70 Thanks, but I am not convinced that how results are displayed on a Wikidata entity page should be a yardstick for how the results of a SPARQL query are displayed.

The Wikidata entity pages are an abstract view of the data, independent of a particular serialization format and independent even of the RDF model. Indeed Wikidata also provides their data as JSON (with arrays and stuff), which is not RDF. See https://www.wikidata.org/wiki/Wikidata:Database_download , where you have subsections "JSON Dumps", "RDF Dumps", "XML Dumps", etc.

A SPARQL query is a query on RDF data and the result are flat tables with excerpts of that RDF data. Also note that the result of a SPARQL query is never nested, like much of the information on a Wikidata entity page.

@joka921
Copy link
Member

joka921 commented May 18, 2022

There is no clear consensus on this, and it does not concern QLever but rather the qlever UI, so I'm closing this.

@joka921 joka921 closed this as completed May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants