query-d074da07105237f877ffd90303bfd01a

rq turtle/ttl

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

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

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?commonname"):::projected v6("?commonnames") v2("?item") v5("?rank") v4("?sample"):::projected v3("?taxon"):::projected c3(["wd:Q811534"]):::iri c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en,fr,cs,pl"]):::literal v2 --"wdt:P31"--> c3 v2 --"wdt:P31"--> v3 bind1[/"sample(?item)"/] v2 --o bind1 bind1 --as--o v4 v3 --"wdt:P105"--> v5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P1843".-> v1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end bind3[/"str(?commonname)"/] v1 --o bind3 bind3 --as--o v6