query-c12495a5907f10aee2273b6f4844f11b

rq turtle/ttl

Duplicated Wikispecies pages

Use at

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?taxonName ?wikispeciesArticle WHERE {
  VALUES ?taxon {wd:Q16521 wd:Q310890 wd:Q23038290} . # taxon, monotypic taxon, fossil taxon
  ?item p:P31/ps:P31 wd:Q17362920 . # duplicated page
  ?item p:P31/pq:P642 ?duplicateItem . # von
  #?item p:P31/pq:P460 ?duplicateItem . # said to be the same as
  ?duplicateItem p:P31/ps:P31 ?taxon .
  ?duplicateItem p:P225/ps:P225 ?taxonName .
  ?article schema:about ?item ;
       schema:isPartOf <https://species.wikimedia.org/> ;
           schema:name ?wikispeciesArticle .
}
ORDER BY ASC(?taxonName)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?article") v4("?duplicateItem") v3("?item"):::projected v2("?taxon") v1("?taxonName"):::projected v6("?wikispeciesArticle"):::projected a1((" ")) a2((" ")) a3((" ")) a4((" ")) c9([https://species.wikimedia.org/]):::iri c3(["wd:Q17362920"]):::iri bind0[/VALUES ?taxon/] bind0-->v2 bind00(["wd:Q16521"]) bind00 --> bind0 bind01(["wd:Q310890"]) bind01 --> bind0 bind02(["wd:Q23038290"]) bind02 --> bind0 v3 --"p:P31"--> a1 a1 --"p:statement/P31"--> c3 v3 --"p:P31"--> a2 a2 --"p:qualifier/P642"--> v4 v4 --"p:P31"--> a3 a3 --"p:statement/P31"--> v2 v4 --"p:P225"--> a4 a4 --"p:statement/P225"--> v1 v5 --"schema:about"--> v3 v5 --"schema:isPartOf"--> c9 v5 --"schema:name"--> v6