query-82235f9fccc37baf8a9a129d6821fdd0
Persons with VIAF and IdRef - not deprecated, but no english label
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?idref WHERE {
SERVICE bd:slice {
?item wdt:P269 ?idref.
bd:serviceParam bd:slice.offset 0 ;
bd:slice.limit 30000 .
}
?item wdt:P214 ?viaf;
wdt:P31 wd:Q5.
OPTIONAL {
?item p:P269 ?statement0.
?statement0 ps:P269 _:anyValueP245;
wikibase:rank ?rank.
}
FILTER(?rank != wikibase:DeprecatedRank)
FILTER(NOT EXISTS {
?item rdfs:label ?itemLabel.
FILTER((LANG(?itemLabel)) = "de")
})
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?idref"):::projected
v2("?item"):::projected
v1("?itemLabel")
v3("?rank")
v6("?statement0")
v5("?viaf")
a1((" "))
c8(["0^^xsd:integer"]):::literal
c6(["bd:serviceParam"]):::iri
c10(["30000^^xsd:integer"]):::literal
c13(["wd:Q5"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0f0[["?itemLabel = 'de'"]]
e0f0 --> e0v1
e0v2 --"rdfs:label"--> e0v1
e0v2("?item"):::projected
e0v1("?itemLabel"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> v2
f0 --> c2
f1[["?itemLabel = 'de'"]]
f1 --> v1
v2 --"rdfs:label"--> v1
f2[["?rank != 'wikibase:DeprecatedRank'"]]
f2 --> v3
subgraph s1["http://www.bigdata.com/rdf#slice"]
style s1 stroke-width:4px;
v2 --"p:direct/P269"--> v4
c6 --"bd:slice.offset"--> c8
c6 --"bd:slice.limit"--> c10
end
v2 --"p:direct/P214"--> v5
v2 --"p:direct/P31"--> c13
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:P269".-> v6
v6 --"p:statement/P269"--> a1
v6 --"wikibase:rank"--> v3
end