query-c4aba1be9dd30f77392e25f803fec71d
Search for missing label in a target language.
Can be input for Q29032512
SELECT ?item ?itemLabel ?itemDescription WHERE { ?item wdt:P31 wd:Q5. # instance of human ?item wdt:P27 wd:Q16. SERVICE wikibase:label { bd:serviceParam wikibase:language "nl,fr,en,de,it,es,pt,no". } FILTER(NOT EXISTS { ?item rdfs:label ?itemLabel. FILTER(LANG(?itemLabel) = "fr") # with missing French description }) } order by ?itemLabel
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Search for missing label in a target language.
#Can be input for Q29032512
SELECT ?item ?itemLabel ?itemDescription WHERE {
?item wdt:P31 wd:Q5. # instance of human
?item wdt:P27 wd:Q16.
SERVICE wikibase:label { bd:serviceParam wikibase:language "nl,fr,en,de,it,es,pt,no". }
FILTER(NOT EXISTS {
?item rdfs:label ?itemLabel.
FILTER(LANG(?itemLabel) = "fr") # with missing French description
})
}
order by ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?itemLabel"):::projected
c6(["wd:Q16"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["nl,fr,en,de,it,es,pt,no"]):::literal
c4(["wd:Q5"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0f0[["?itemLabel = 'fr'"]]
e0f0 --> e0v1
e0v2 --"rdfs:label"--> e0v1
e0v2("?item"):::projected
e0v1("?itemLabel"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> v2
f0 --> c2
f1[["?itemLabel = 'fr'"]]
f1 --> v1
v2 --"rdfs:label"--> v1
v2 --"wdt:P31"--> c4
v2 --"wdt:P27"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end