query-7d6a8ea0ff486b21be650bc845e71253
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?taxon ?taxonLabel ?taxonDescription ?rankLabel ?authorLabel ?year ?sourceLabel
WHERE
{
{?taxon wdt:P31 wd:Q16521 } UNION {?taxon wdt:P31 wd:Q310890} UNION {?taxon wdt:P31 wd:Q23038290} .
MINUS { ?taxon p:P1403 ?status. } MINUS { ?taxon p:P566 ?status. }
?taxon p:P225 ?name .
?taxon wdt:P105 ?rank .
?name ps:P225 []; pq:P405 ?author .
{?author wdt:P108 wd:Q663025 } UNION {?author wdt:P937 wd:Q663025} .
?name ps:P225 []; pq:P574 ?date FILTER (?date > "1819-12-31T00:00:00Z"^^xsd:dateTime) .
OPTIONAL {
?name prov:wasDerivedFrom ?ref .
?ref pr:P6184 wd:Q1361864 .
?ref pr:P248 ?source .
}
BIND(YEAR(?date) AS ?year) .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY ?taxon
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?author")
v2("?date")
v4("?name")
v5("?rank")
v7("?ref")
v8("?source")
v3("?status")
v1("?taxon"):::projected
v9("?year"):::projected
a1((" "))
a2((" "))
c13(["wd:Q663025"]):::iri
c5(["wd:Q23038290"]):::iri
c23(["en"]):::literal
c4(["wd:Q310890"]):::iri
c18(["wd:Q1361864"]):::iri
c21(["bd:serviceParam"]):::iri
c3(["wd:Q16521"]):::iri
f0[["?date > '1819-12-31T00:00:00Z^^xsd:dateTime'"]]
f0 --> v2
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;
v1 --"p:direct/P31"--> c5
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v1 --"p:direct/P31"--> c4
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"p:direct/P31"--> c3
end
union0r <== or ==> union0l
end
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v1 --"p:P1403"--> v3
end
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v1 --"p:P566"--> v3
end
v1 --"p:P225"--> v4
v1 --"p:direct/P105"--> v5
v4 --"p:statement/P225"--> a1
v4 --"p:qualifier/P405"--> v6
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
v6 --"p:direct/P937"--> c13
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v6 --"p:direct/P108"--> c13
end
union2r <== or ==> union2l
end
v4 --"p:statement/P225"--> a2
v4 --"p:qualifier/P574"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."prov:wasDerivedFrom".-> v7
v7 --"p:reference/P6184"--> c18
v7 --"p:reference/P248"--> v8
end
bind3[/"year-from-dateTime(?date)"/]
v2 --o bind3
bind3 --as--o v9
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c21 --"wikibase:language"--> c23
end