query-b69cf3e0b67e843b441764fa9830057c
Indonesian Independence Wars Warning: This query is still under construction!
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT *
WHERE {
{ {?itemID wdt:P31 wd:Q198} # wars
UNION
{?itemID wdt:P31 wd:Q180684 } # conflicts
}
OPTIONAL { ?itemID rdfs:label ?labelEN . # English label of items
FILTER(LANG(?labelEN)="en") }
{ ?itemID rdfs:label ?labelID . # Indonesian label must exist and contain Perang
FILTER(LANG(?labelID)="id" && CONTAINS(LCASE(?labelID),"perang")) }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?itemID"):::projected
v1("?labelEN"):::projected
v3("?labelID"):::projected
c3(["wd:Q198"]):::iri
c4(["wd:Q180684"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c3
end
union0r <== or ==> union0l
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."rdfs:label".-> v1
end
f0[["?labelID = 'id'contains(lower-case(?labelID),'perang')"]]
f0 --> v3
v2 --"rdfs:label"--> v3