query-0ae4408068aafeaf44763e86a2948bdd
This query shows all the Albanian People whose label is missing
SELECT ?person ?item ?itemLabel ?itemDescription WHERE {
?item wdt:P31 wd:Q5.
?item wdt:P27 wd:Q222.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en, sq". } FILTER(NOT EXISTS { ?item rdfs:label ?lang_label. FILTER(LANG(?lang_label) = "sq") }) } 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#>
# This query shows all the Albanian People whose label is missing
SELECT ?person ?item ?itemLabel ?itemDescription WHERE {
?item wdt:P31 wd:Q5.
?item wdt:P27 wd:Q222.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en, sq". }
FILTER(NOT EXISTS {
?item rdfs:label ?lang_label.
FILTER(LANG(?lang_label) = "sq")
})
}
ORDER BY ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v1("?itemLabel"):::projected
v2("?lang_label")
c8(["bd:serviceParam"]):::iri
c10(["en, sq"]):::literal
c4(["wd:Q5"]):::iri
c6(["wd:Q222"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0f0[["?lang_label = 'sq'"]]
e0f0 --> e0v1
e0v2 --"rdfs:label"--> e0v1
e0v2("?item"):::projected
e0v1("?lang_label"):::projected
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> v3
f0 --> c2
f1[["?lang_label = 'sq'"]]
f1 --> v2
v3 --"rdfs:label"--> v2
v3 --"wdt:P31"--> c4
v3 --"wdt:P27"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end