query-12d257a5a442463ccebbe049e2c04949

rq turtle/ttl

Discussion ]reply[20:18, 7 August 2020 (UTC)) talk (Belteshassar I like the idea of being able to query for this. But wouldn't it be better to improve the modelling of the war items instead? Country items are already notoriously cluttered and this would add dozens of statements to those. Comment ]reply[04:37, 23 September 2020 (UTC) The Erinaceous One 🦔, there are dozens of wars and many of the wars have multiple opponents. Additionally, since many wars involve more than two countries, using the proposed property would lead to an extreme amount of redundancy as each combatant would need to be duplicated for each country on the opposing side. If four countries are allied against three countries, then this property would require 24 statements (4x3+4x3), whereas putting this information all on one page should only need seven statements. —the list of wars the USA has fought is right that this would add many statements to country items. Looking at Belteshassar Strong oppose ]reply[15:44, 8 August 2020 (UTC)) talk (Belteshassar, but I now realize that they are very much outliers (Q35)Denmark and (Q34)Sweden I was thinking of ]reply[06:02, 8 August 2020 (UTC)) talk (Bouzinac. (Q37643)Gulf War and (Q200790)Algerian War has only had fought (to my knowledge) two wars : (Q200686)French Fifth Republic Well, the current existing countries / regimes are much big, true, but they have had few wars, or be them countable on fingers of a hand :) which should allow the creation of a SPARQL query:(Q832273)Eritrean–Ethiopian War for the example item (Q115)Ethiopia (P710)participant (Q832273)Eritrean–Ethiopian War I agree with Belteshassar, lets rather improve the war items. I dont think the motivation I have read is sufficient for creating a new property, it is already possible to query the information using the inverse property Wait Oppose

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 ?item ?itemLabel 
WHERE 
{
  ?item wdt:P31/wdt:P279* wd:Q198.
  ?item wdt:P710 wd:Q986.
  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("?item"):::projected a1((" ")) c7(["bd:serviceParam"]):::iri c5(["wd:Q986"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal c3(["wd:Q198"]):::iri v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v1 --"wdt:P710"--> c5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end