query-8fc564e079d85f89f5f77640b198c91a
Year of taxon publication (P574) is inconsistent with the date of birth or death of the taxon author (P405)Suppose the following taxon: .(Q2095814)Francis Walker (1851–1939) - Actually the taxon author is (Q6136883)James John Walker : (P405)taxon author : 1853 | (P574)year of publication of scientific name for taxon | (Q2100399)Glenoleon falsus 09:20, 15 October 2020 (UTC)) talk (KorgI would like a query that lists such taxa. Thanks in advance!
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?itemDescription ?td ?p ?pLabel ?pDescription ?dob ?dod
{
{ ?item p:P225 [ pq:P574 ?td ; pq:P405 ?p ] .
?p wdt:P569 ?dob . FILTER( YEAR(?td) < YEAR(?dob) + 20) }
UNION
{ ?item p:P225 [ pq:P574 ?td ; pq:P405 ?p ] .
?p wdt:P570 ?dod . FILTER( YEAR(?td) > YEAR(?dod) + 2) }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
LIMIT 10
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?dob"):::projected
v5("?dod"):::projected
v4("?item"):::projected
v3("?p"):::projected
v1("?td"):::projected
a1((" "))
a2((" "))
c9(["bd:serviceParam"]):::iri
c11(["en"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
f0[["year-from-dateTime(?td) > year-from-dateTime(?dod) + '2^^xsd:integer'"]]
f0 --> v1
f0 --> v5
a2 --"p:qualifier/P574"--> v1
a2 --"p:qualifier/P405"--> v3
v4 --"p:P225"--> a2
v3 --"p:direct/P570"--> v5
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
f1[["year-from-dateTime(?td) < year-from-dateTime(?dob) + '20^^xsd:integer'"]]
f1 --> v1
f1 --> v2
a1 --"p:qualifier/P574"--> v1
a1 --"p:qualifier/P405"--> v3
v4 --"p:P225"--> a1
v3 --"p:direct/P569"--> v2
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end