query-f6389eb4edfe70e80a02c2a1f7a9f48e

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?taxon_name ?PL_id ?PLLink   WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
  ?item p:P225 ?stat . 
  ?stat ps:P225 ?taxon_name .
  ?item wdt:P171/wdt:P171 wd:Q156569 . # parent taxon of parent taxon is Q156569
  OPTIONAL { ?item wdt:P1070 ?PL_id } # PlantList ID
  ?item wdt:P105 wd:Q7432. # taxon rank is species
  bind(uri(concat("http://www.theplantlist.org/tpl1.1/record/",?PL_id)) as ?PLLink)  
  MINUS {?stat pq:P405 ?taxon_author.}
}
ORDER BY ?taxon_name

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?PLLink"):::projected v4("?PL_id"):::projected v2("?item"):::projected v3("?stat") v6("?taxon_author") v1("?taxon_name"):::projected a1((" ")) c8(["wd:Q156569"]):::iri c2(["bd:serviceParam"]):::iri c11(["wd:Q7432"]):::iri c4(["en"]):::literal subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v2 --"p:P225"--> v3 v3 --"p:statement/P225"--> v1 v2 --"p:direct/P171"--> a1 a1 --"p:direct/P171"--> c8 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:direct/P1070".-> v4 end v2 --"p:direct/P105"--> c11 bind0[/"concat('http://www.theplantlist.org/tpl1.1/record/',?PL_id)"/] v4 --o bind0 bind0 --as--o v5 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v3 --"p:qualifier/P405"--> v6 end