query-8dc69c95169756e924c9420c5774808c

rq turtle/ttl

Propertiesinvasive to (P5588)

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 bd: <http://www.bigdata.com/rdf#>
SELECT ?taxon ?taxonLabel ?en WHERE {
  BIND(IF(BOUND(?english), "+", "-") AS ?en)
  {
    SELECT ?taxon ?taxonLabel ?english WHERE {
      ?taxon wdt:P5588 wd:Q664.
      OPTIONAL {
        ?english schema:about ?taxon.
        FILTER(REGEX(STR(?english), "https://en.wikipedia"))
      }
      SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
    }
  }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?en"):::projected v2("?english") v3("?taxon"):::projected c3(["wd:Q664"]):::iri c6(["bd:serviceParam"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal bind0[/"if(bound(?english),'+','-')"/] v2 --o bind0 bind0 --as--o v1 v3 --"wdt:P5588"--> c3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."schema:about".-> v3 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end