query-382fab50eedaed1ee9ce6e00e28ad05f
Species from Linnès Species Plantarum. 1st Edition (Q21856050) used as basionym (P566)
Use at
- https://query.wikidata.org/sparql
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/>
SELECT ?basionymItem ?basionym (GROUP_CONCAT(?basionymOf;SEPARATOR = ", ") AS ?basionymOfList) WHERE {
VALUES ?sp {wd:Q21856106 wd:Q21856107} . # Species Plantarum, 1st ed., Vol. 1+2
?item wdt:P566 ?basionymItem .
?item wdt:P105 wd:Q7432 . # species
?item wdt:P225 ?basionymOf .
#?item p:P225 ?taxonNameStatement .
#?taxonNameStatement pq:P405 [] .
?basionymItem p:P225 ?basionymNameStatement .
?basionymNameStatement ps:P225 ?basionym .
?basionymNameStatement pq:P405 wd:Q1043 . # Linné
?basionymNameStatement prov:wasDerivedFrom ?ref .
?ref pr:P248 ?sp .
}
GROUP BY ?basionymItem ?basionym
ORDER BY ASC(?basionym)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?basionym"):::projected
v4("?basionymItem"):::projected
v6("?basionymNameStatement")
v5("?basionymOf"):::projected
v8("?basionymOfList")
v3("?item")
v7("?ref")
v2("?sp")
c3(["wd:Q7432"]):::iri
c8(["wd:Q1043"]):::iri
bind0[/VALUES ?sp/]
bind0-->v2
bind00(["wd:Q21856106"])
bind00 --> bind0
bind01(["wd:Q21856107"])
bind01 --> bind0
v3 --"p:direct/P566"--> v4
v3 --"p:direct/P105"--> c3
v3 --"p:direct/P225"--> v5
v4 --"p:P225"--> v6
v6 --"p:statement/P225"--> v1
v6 --"p:qualifier/P405"--> c8
v6 --"prov:wasDerivedFrom"--> v7
v7 --"p:reference/P248"--> v2
bind2[/"?basionymOf"/]
v5 --o bind2
bind2 --as--o v8