query-eb73f0d77552ee3939637673fad40407
Albanians
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 bd: <http://www.bigdata.com/rdf#>
PREFIX schema: <http://schema.org/>
#Search for missing descriptions in a target language.
#Can be input for Q29032512
SELECT ?item ?itemLabel ?genderLabel ?occupationLabel ?domainLabel ?positionLabel ?itemDescription WHERE {
?item wdt:P31 wd:Q5.
?item wdt:P172 wd:Q179248.
OPTIONAL { ?item wdt:P21 ?gender. }
OPTIONAL { ?item wdt:P106 ?occupation. }
OPTIONAL { ?item wdt:P101 ?domain. }
OPTIONAL { ?item wdt:P39 ?position. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "sq,en,de,nl,fr,it,es,pt,no, mk". }
FILTER(NOT EXISTS {
?item schema:description ?itemdesc.
FILTER((LANG(?itemdesc)) = "sq")
})
}
ORDER BY ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?domain")
v4("?gender")
v3("?item"):::projected
v1("?itemLabel"):::projected
v2("?itemdesc")
v5("?occupation")
v7("?position")
c14(["sq,en,de,nl,fr,it,es,pt,no, mk"]):::literal
c12(["bd:serviceParam"]):::iri
c4(["wd:Q5"]):::iri
c6(["wd:Q179248"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0f0[["?itemdesc = 'sq'"]]
e0f0 --> e0v1
e0v2 --"schema:description"--> e0v1
e0v2("?item"):::projected
e0v1("?itemdesc"):::projected
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> v3
f0 --> c2
f1[["?itemdesc = 'sq'"]]
f1 --> v2
v3 --"schema:description"--> v2
v3 --"wdt:P31"--> c4
v3 --"wdt:P172"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P21".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P106".-> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P101".-> v6
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P39".-> v7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end