query-e9d7efa2ae6d69968ee7c179319d3e64

rq turtle/ttl

Species of beetles with no description in English

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 p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?taxon ?taxonLabel ?taxonDescription
WHERE 
{
  {?taxon wdt:P31 wd:Q16521 } UNION {?taxon wdt:P31 wd:Q310890} UNION {?taxon wdt:P31 wd:Q23038290} UNION {?taxon wdt:P31 wd:Q47487597 } UNION {?taxon wdt:P31 wd:Q98961713} UNION {?taxon wdt:P31 wd:Q2568288} .
  MINUS { ?taxon p:P1403 ?status. }
  ?taxon p:P225 ?name .
  ?taxon wdt:P105 wd:Q7432 .
  ?taxon wdt:P171* wd:Q22671 .
  FILTER(NOT EXISTS {
    ?taxon schema:description ?taxondesc.
    FILTER(LANG(?taxondesc) = "en")
  })

  BIND(YEAR(?date) AS ?year) .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY ?taxon
LIMIT 8000

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?name") v3("?status") v1("?taxon"):::projected v2("?taxondesc") v5("?year") c15(["wd:Q22671"]):::iri c6(["wd:Q23038290"]):::iri c1(["en"]):::literal c5(["wd:Q310890"]):::iri c7(["wd:Q47487597"]):::iri c9(["wd:Q2568288"]):::iri c13(["wd:Q7432"]):::iri c17(["bd:serviceParam"]):::iri c4(["wd:Q16521"]):::iri c8(["wd:Q98961713"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0f0[["?taxondesc = 'en'"]] e0f0 --> e0v1 e0v2 --"schema:description"--> e0v1 e0v2("?taxon"):::projected e0v1("?taxondesc"):::projected end f0--EXISTS--> f0e0 f0 --> v2 f0 --> v1 f0 --> c2 f1[["?taxondesc = 'en'"]] f1 --> v2 v1 --"schema:description"--> v2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; subgraph union3[" Union "] subgraph union3l[" "] style union3l fill:#abf,stroke-dasharray: 3 3; subgraph union4[" Union "] subgraph union4l[" "] style union4l fill:#abf,stroke-dasharray: 3 3; v1 --"p:direct/P31"--> c9 end subgraph union4r[" "] style union4r fill:#abf,stroke-dasharray: 3 3; v1 --"p:direct/P31"--> c8 end union4r <== or ==> union4l end end subgraph union3r[" "] style union3r fill:#abf,stroke-dasharray: 3 3; v1 --"p:direct/P31"--> c7 end union3r <== or ==> union3l end end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; v1 --"p:direct/P31"--> c6 end union2r <== or ==> union2l end end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v1 --"p:direct/P31"--> c5 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"p:direct/P31"--> c4 end union0r <== or ==> union0l end subgraph minus2["MINUS"] style minus2 stroke-width:6px,fill:pink,stroke:red; v1 --"p:P1403"--> v3 end v1 --"p:P225"--> v4 v1 --"p:direct/P105"--> c13 v1 --"p:direct/P171"--> c15 bind3[/"year-from-dateTime(?date)"/] null --o bind3 bind3 --as--o v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c17 --"wikibase:language"--> c1 end