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

automatic labels #1611

Open
pfps opened this issue Nov 11, 2024 · 1 comment
Open

automatic labels #1611

pfps opened this issue Nov 11, 2024 · 1 comment

Comments

@pfps
Copy link

pfps commented Nov 11, 2024

Using inspect shows what is done for automatic labelling:

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT ?s ?s_label ?o WHERE {
  { SELECT ?s ?o WHERE { ?s wdt:P569 ?o . FILTER ISBLANK (?o) } ORDER BY ?s }
  ?s rdfs:label ?s_label FILTER(LANG(?s_label) = "en")
} LIMIT 10

but not all items have English labels so the addition should be wrapped in OPTIONAL.

@pfps
Copy link
Author

pfps commented Nov 11, 2024

It also might be nice to use Label instead of _label to better match what the WDQS label service does.

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

1 participant