query-ce129b60dcb8842bbba4cab104744407

rq turtle/ttl

So what is that? SPARQLThe query language common to Wikidata and other Semantic Web sites. First activity: run this query.

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
#ImageGrid for taxon
#defaultView:ImageGrid
SELECT DISTINCT ?item ?itemLabel ?pic
WHERE
{
    ?item wdt:P31 wd:Q16521;
      wdt:P171* wd:Q21860.

    OPTIONAL { ?item wdt:P18 ?pic }

}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v2("?pic"):::projected c2(["wd:Q16521"]):::iri c4(["wd:Q21860"]):::iri v1 --"wdt:P31"--> c2 v1 --"wdt:P171"--> c4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P18".-> v2 end