query-0dd8a71c6c87c92268c07a16cc50760f
TODO
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 schema: <http://schema.org/>
SELECT DISTINCT ?item ?linkcount WHERE {
?item wdt:P1343 wd:Q105802405. # described by source Dictionary of Women Worldwide
{?item wdt:P106/wdt:P279* wd:Q36180 . } # occupation writer
UNION
{?item wdt:P106/wdt:P279* wd:Q3303330 . } # occupation calligrapher
UNION
{?item wdt:P106/wdt:P279* wd:Q2516866 . } # occupation publisher
UNION
{?item wdt:P106/wdt:P279* wd:Q482980 . } # occupation author
FILTER NOT EXISTS { # has no en.wikipedia sitelink
?wen schema:about ?item .
?wen schema:isPartOf <https://en.wikipedia.org/> .}
?item wdt:P21 wd:Q6581072 . # gender: female
?item wikibase:sitelinks ?linkcount . # count of sitelinks
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v3("?linkcount"):::projected
v1("?wen")
a1((" "))
a2((" "))
a3((" "))
a4((" "))
c13(["wd:Q6581072"]):::iri
c10(["wd:Q2516866"]):::iri
c5(["wd:Q105802405"]):::iri
c8(["wd:Q36180"]):::iri
c3([https://en.wikipedia.org/]):::iri
c9(["wd:Q3303330"]):::iri
c11(["wd:Q482980"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"schema:about"--> e0v2
e0v1 --"schema:isPartOf"--> e0c3
e0v2("?item"):::projected
e0v1("?wen"):::projected
e0c3([https://en.wikipedia.org/]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
f0 --> c2
f0 --> c3
v1 --"schema:about"--> v2
v1 --"schema:isPartOf"--> c3
v2 --"wdt:P1343"--> c5
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P106"--> a4
a4 --"wdt:P279"--> c11
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P106"--> a3
a3 --"wdt:P279"--> c10
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P106"--> a2
a2 --"wdt:P279"--> c9
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P106"--> a1
a1 --"wdt:P279"--> c8
end
union0r <== or ==> union0l
end
v2 --"wdt:P21"--> c13
v2 --"wikibase:sitelinks"--> v3