query-7db47508b0dc3eae34bc7a814c5f355b
Quering items with no labels on a specific languageHey, folks. I want to query items that has no labels (as well as no description, and also maybe both of them at the same time) of a language, but I can't seem to figure out how to do it. Say that I have this query.
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?point_in_time WHERE {
{
SELECT DISTINCT ?item WHERE {
?item p:P31 ?statement0.
?statement0 ps:P31 wd:Q47150325.
}
}
OPTIONAL { ?item wdt:P585 ?point_in_time. }
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v3("?point_in_time"):::projected
v2("?statement0")
c3(["wd:Q47150325"]):::iri
v1 --"p:P31"--> v2
v2 --"p:statement/P31"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P585".-> v3
end