query-0549cbf15ca5173076a91b45e502afc6
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 ps: <http://www.wikidata.org/prop/statement/>
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 ?taxon_name ?taxon_author ?taxon_authorLabel
WHERE
{
?item wdt:P171 wd:Q1757472 # whatever the particular parent taxon value is
?item p:P225 ?stat . # there is a P225
?stat ps:P225 ?taxon_name . # it has a taxon name
filter (?taxon_name="Volucella zonaria") # whatever the pre-defined taxon name is
OPTIONAL {?stat pq:P405 ?taxon_author .} # P225 might have P405 author name as a PQ
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}