query-d074da07105237f877ffd90303bfd01a
Query all taxons which are trees 09:30, 18 August 2020 (UTC)) talk (Mfchris84 or something like that). --(Q287)wood Taxons which are common known as "trees" are not specified taxonomical as trees. Are there some experts on this topic having any idea how to query all taxons which are trees? Maybe it will be necessary to add some additional properties to these taxons to make them visible as trees (e.g. that Item Q-X is an taxon which shows 12:53, 18 August 2020 (UTC)) talk (Dipsacus fullonum than here. --Wikidata:WikiProject Botany: I don't think that any taxons have indication of if the life form is a tree. Besides there are as far as I known no exact botanically definition of tree, and many taxons both have tree forms and non-tree forms. So there isn't enough data to make a query. You may get better help at Mfchris84@
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 bd: <http://www.bigdata.com/rdf#>
SELECT
?taxon ?taxonLabel ?rankLabel
(GROUP_CONCAT(DISTINCT str(?commonname); separator = "//") as ?commonnames)
?sample ?sampleLabel
WHERE
{
{ SELECT ?taxon (SAMPLE(?item) as ?sample) WHERE { ?item wdt:P31 wd:Q811534 ; wdt:P31 ?taxon } GROUP BY ?taxon }
?taxon wdt:P105 ?rank .
OPTIONAL { ?taxon wdt:P1843 ?commonname . FILTER(lang(?commonname) = "[AUTO_LANGUAGE]" ) }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr,cs,pl" }
}
GROUP BY ?taxon ?taxonLabel ?rankLabel ?sample ?sampleLabel