query-e3ce5e28f3d9fda8f3ec87e1e750b88b

rq turtle/ttl

TODO

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?itemLabel ?taxon_name ?NT_Flora_ID  ?link WHERE {
  ?item rdfs:label ?itemLabel . filter(lang(?itemLabel)="en")                      
  ?item wdt:P5953 ?NT_Flora_ID.
  ?item wdt:P225 ?taxon_name.
  ?item wdt:P171 wd:Q81666.   # whose genus is Acacia
  bind(concat("[[",?itemLabel,"]]") as ?link)
  MINUS
  {?article schema:about ?item. # and have an article about them
  ?article schema:isPartOf <https://en.wikipedia.org/> . # on *English* Wikipedia}
  }
}
ORDER BY ?itemLabel ?item ?taxon_name

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?NT_Flora_ID"):::projected v6("?article") v2("?item"):::projected v1("?itemLabel"):::projected v5("?link"):::projected v3("?taxon_name"):::projected c9([https://en.wikipedia.org/]):::iri c6(["wd:Q81666"]):::iri f0[["?itemLabel = 'en'"]] f0 --> v1 v2 --"rdfs:label"--> v1 v2 --"wdt:P5953"--> v4 v2 --"wdt:P225"--> v3 v2 --"wdt:P171"--> c6 bind1[/"concat('#91;#91;',?itemLabel,'#93;#93;')"/] v1 --o bind1 bind1 --as--o v5 subgraph minus2["MINUS"] style minus2 stroke-width:6px,fill:pink,stroke:red; v6 --"schema:about"--> v2 v6 --"schema:isPartOf"--> c9 end