query-f490a0bf9803e8572f907e1d36d10411

rq turtle/ttl

Saturniidae that have a GBIF Id and an English Wikipedia article, but no taxon author

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
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/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?taxonitem ?taxonname
WHERE
{
     ?taxonitem wdt:P171+ wd:Q843104.   # Saturniidae
     ?taxonitem p:P105 ?rank.
     ?taxonitem p:P225 ?name.
     ?taxonitem p:P846 ?gbif_id.
     ?name  ps:P225 ?taxonname.
     FILTER NOT EXISTS {
        ?name pq:P405 [] .   # taxon author
     }  
     FILTER EXISTS {
      ?sitelink schema:about ?taxonitem;
      schema:isPartOf <https://en.wikipedia.org/>;
      schema:name [].  
     }
     SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?gbif_id") v3("?name") v4("?rank") v1("?sitelink") v2("?taxonitem"):::projected v6("?taxonname"):::projected a2((" ")) a1((" ")) c15(["en"]):::literal c3([https://en.wikipedia.org/]):::iri c13(["bd:serviceParam"]):::iri c7(["wd:Q843104"]):::iri f0[[" "]] subgraph f0e0["Exists Clause"] e0v1 --"schema:about"--> e0v2 e0v1 --"schema:isPartOf"--> e0c3 e0v1 --"schema:name"--> e0a1 e0v1("?sitelink"):::projected e0v2("?taxonitem"):::projected e0a1((" ")):::projected e0c3([https://en.wikipedia.org/]):::iri end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> v2 f0 --> c2 f0 --> c3 f0 --> c4 f0 --> a1 v1 --"schema:about"--> v2 v1 --"schema:isPartOf"--> c3 v1 --"schema:name"--> a1 f1[["not "]] subgraph f1e1["Exists Clause"] e1v1 --"p:qualifier/P405"--> e1a1 e1v1("?name"):::projected e1a1((" ")):::projected end f1--EXISTS--> f1e1 f1 --> v3 f1 --> c5 f1 --> a2 v3 --"p:qualifier/P405"--> a2 v2 --"p:direct/P171"--> c7 v2 --"p:P105"--> v4 v2 --"p:P225"--> v3 v2 --"p:P846"--> v5 v3 --"p:statement/P225"--> v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end