query-26a2d30cb505fd63a3f4234819fc2cd8

rq turtle/ttl

TODO

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
select distinct ?lake where
{
  { ?lake wdt:P31 wd:Q23397 } union
  { ?lake wdt:P31 ?type . ?type wdt:P279+ wd:Q23397 }
  # item is a lake, or something that is a subclass of lake
  ?lake wdt:P17 wd:Q40 . 
  # lake is in Austria
  FILTER NOT EXISTS { ?article schema:about ?lake . ?article schema:isPartOf <https://he.wikipedia.org/> }
  # no hewiki article
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?article") v2("?lake"):::projected v3("?type") c5(["wd:Q23397"]):::iri c3([https://he.wikipedia.org/]):::iri c8(["wd:Q40"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"schema:about"--> e0v2 e0v1 --"schema:isPartOf"--> e0c3 e0v1("?article"):::projected e0v2("?lake"):::projected e0c3([https://he.wikipedia.org/]):::iri end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> v2 f0 --> c2 f0 --> c3 v1 --"schema:about"--> v2 v1 --"schema:isPartOf"--> c3 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> v3 v3 --"wdt:P279"--> c5 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c5 end union0r <== or ==> union0l end v2 --"wdt:P17"--> c8