query-87eac0e8e3ba3a2077c8af3ae2f82126

rq turtle/ttl

Dams and reservoirs 21:24, 25 January 2018 (UTC)) talk (Thierry Caro. Would you be kind enough to check a few of them and add the missing property if they do have a match? Some merging and splitting will be necessary in quite a few occasions. (P625)coordinate location set but with reservoirs nearby according to their (P4661)reservoir created is a (probably poorly written) request that returns a list of dams with no HereHello. 22:23, 25 January 2018 (UTC)) talk (TagishsimonThat's a pretty damn fantastic query, Thierry Caro. --08:35, 26 January 2018 (UTC)) talk (Thierry CaroThanks. I've been separating dams and reservoirs whenever I had time. 22:56, 25 January 2018 (UTC)) talk (AhoerstemeierQuite a nice to-do-list. Seems a lot of them still have instance of set to both reservoir and dam, since most Wikipedias do not separate these two concepts. Hi, I also thought about that problem and I wondered about the whole made of the dam and its reservoir. I think the entity composed of the dam and its reservoir could have its class, if it does not have yet. Actually the following query shows a number of candidates, by searching for each dam who are part of an entity the classes of that entity :

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
select ?dam ?bigitemLabel ?class ?classLabel {
  ?dam wdt:P279*/wdt:P31 wd:Q12323  .
  ?dam wdt:P361 ?bigitem .
  ?bigitem wdt:P31 ?class .
  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; v2("?bigitem") v3("?class"):::projected v1("?dam"):::projected a1((" ")) c6(["bd:serviceParam"]):::iri c8(["en"]):::literal c3(["wd:Q12323"]):::iri v1 --"wdt:P279"--> a1 a1 --"wdt:P31"--> c3 v1 --"wdt:P361"--> v2 v2 --"wdt:P31"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end