query-ac8551440e664b0f6883691395b7120d
Incorrect gender]reply[20:59, 15 June 2020 (UTC) Pミラ is male not female. Also duplicate. [157] ]reply[02:34, 28 May 2020 (UTC)) talk (Vahurzpu) is male, not female. Peerage, WikidataAdrian Slade ( See discussion.The following query identifies The Peerage entries that are likely to have incorrect gender. However, they need to be verified individually. TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item
WHERE {
?item wdt:P4638 ?thepeerageid .
{
?item wdt:P21 wd:Q6581097 .
?item wdt:P735/wdt:P31 wd:Q11879590 .
}
UNION
{
?item wdt:P21 wd:Q6581072 .
?item wdt:P735/wdt:P31 wd:Q12308941 .
}
# honorifix: Sir
#?item wdt:P511 wd:Q209690 .
?item wdt:P735 ?given .
FILTER (?given NOT IN (
wd:Q16652258, # Joan (female)
wd:Q1484457, # Joan (unisex)
wd:Q18001597 # Christian (male)
))
?item p:P21 ?sexstatement .
?sexstatement prov:wasDerivedFrom ?sexref .
?sexref pr:P248 wd:Q21401824 .
}
LIMIT 100
Query found at
- https://www.wikidata.org/wiki/Wikidata:Project_chat/Archive/2020/05
- https://www.wikidata.org/wiki/Wikidata:WikiProject_Authority_control/The_Peerage_errors
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?given")
v2("?item"):::projected
v5("?sexref")
v4("?sexstatement")
v3("?thepeerageid")
a1((" "))
a2((" "))
c9(["wd:Q11879590"]):::iri
c6(["wd:Q6581097"]):::iri
c10(["wd:Q6581072"]):::iri
c15(["wd:Q21401824"]):::iri
c11(["wd:Q12308941"]):::iri
f0[["?given != 'wd:Q16652258'?given != 'wd:Q1484457'?given != 'wd:Q18001597'"]]
f0 --> v1
v2 --"p:direct/P4638"--> v3
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"p:direct/P21"--> c10
v2 --"p:direct/P735"--> a2
a2 --"p:direct/P31"--> c11
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"p:direct/P21"--> c6
v2 --"p:direct/P735"--> a1
a1 --"p:direct/P31"--> c9
end
union0r <== or ==> union0l
end
v2 --"p:direct/P735"--> v1
v2 --"p:P21"--> v4
v4 --"prov:wasDerivedFrom"--> v5
v5 --"p:reference/P248"--> c15