query-7e80b3b0c450959cb94d6cd896be909c
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT (COUNT(?isni) AS ?count_isni) (COUNT(?viaf) AS ?count_viaf)
WHERE {
?item wdt:P31 wd:Q5 .
OPTIONAL {
?item wdt:P213 ?isni .
}
OPTIONAL {
?item wdt:P214 ?viaf .
}
}
Query found at
- https://www.wikidata.org/wiki/Wikidata:Project_chat/Archive/2018/04
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2018/04
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count_isni")
v5("?count_viaf")
v2("?isni"):::projected
v1("?item")
v3("?viaf"):::projected
c2(["wd:Q5"]):::iri
v1 --"wdt:P31"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P213".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P214".-> v3
end
bind2[/"count(?isni)"/]
v2 --o bind2
bind2 --as--o v4
bind3[/"count(?viaf)"/]
v3 --o bind3
bind3 --as--o v5