query-02bc3de0f57d21c74ed1891bff29171c
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
select (count(distinct ?person) as ?count) where
{
?person wdt:P31 wd:Q5. # human
?person wdt:P21 wd:Q6581072. # female
?person wdt:P27/wdt:P30 wd:Q15. # country of citizenship / must be in Africa
?article schema:about ?person ; # has a sitelink
schema:isPartOf ?domain .
filter(contains(str(?domain),"wikipedia")) #sitelink points to a language wikipedia
?person wdt:P1343 wd:Q46002746. # described in Dictionary of African Biography
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?article")
v4("?count")
v1("?domain")
v2("?person"):::projected
a1((" "))
c12(["wd:Q46002746"]):::iri
c3(["wd:Q5"]):::iri
c5(["wd:Q6581072"]):::iri
c8(["wd:Q15"]):::iri
f0[["contains(str(?domain),'wikipedia')"]]
f0 --> v1
v2 --"wdt:P31"--> c3
v2 --"wdt:P21"--> c5
v2 --"wdt:P27"--> a1
a1 --"wdt:P30"--> c8
v3 --"schema:about"--> v2
v3 --"schema:isPartOf"--> v1
v2 --"wdt:P1343"--> c12
bind2[/"count(?person)"/]
v2 --o bind2
bind2 --as--o v4