query-3dfef7cc303376ade6e4c465a7f78167
WikiData SPARQL query for plants data ) at 14 août 2019 à 10:06 (EST) (UTC).contribs • talk (14.139.161.242 comment was added byunsignedThe preceding – I am a BE CSE undergrad student currently working on collecting information about plants so I am trying to query about all the plants from the wikidata Query Engine but I couldn't find a way. Any help on this is appreciableλ Does this help you get started?
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 ?plant ?plantLabel
WHERE
{
# any instance or subclass of plant
?plant wdt:P31/wdt:P279* wd:Q756
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?plant"):::projected
a1((" "))
c5(["bd:serviceParam"]):::iri
c3(["wd:Q756"]):::iri
c7(["#91;AUTO_LANGUAGE#93;"]):::literal
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end