query-bf635c11c2d37e21c0a88eda5ed64e50
Coloring points, and single point when there's more than one eventHello! I'm starting to help in a project about combatants in the USMC in WWII with Basque ancestry, and we have the battles they fought and their parent's birth place. The query is like this:
Use at
- https://query.wikidata.org/sparql
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#>
#defaultView:Map
SELECT ?veteran ?veteranLabel ?aitaLabel ?amaLabel ?koord_jaio ?koord_heriotza ?koord_ama ?koord_aita ?koord_gatazka WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?veteran wdt:P241 wd:Q11218.
?veteran wdt:P172 wd:Q126756.
?veteran wdt:P19 ?jaiolekua.
?veteran wdt:P20 ?heriotza.
?veteran wdt:P25 ?ama.
?veteran wdt:P22 ?aita.
?ama wdt:P19 ?jaiolekua_ama.
?aita wdt:P19 ?jaiolekua_aita.
?jaiolekua wdt:P625 ?koord_jaio.
?heriotza wdt:P625 ?koord_heriotza.
?jaiolekua_ama wdt:P625 ?koord_ama.
?jaiolekua_aita wdt:P625 ?koord_aita.
?veteran wdt:P607 ?gatazka.
?gatazka wdt:P625 ?koord_gatazka.
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?aita")
v4("?ama")
v12("?gatazka")
v3("?heriotza")
v2("?jaiolekua")
v7("?jaiolekua_aita")
v6("?jaiolekua_ama")
v11("?koord_aita"):::projected
v10("?koord_ama"):::projected
v13("?koord_gatazka"):::projected
v9("?koord_heriotza"):::projected
v8("?koord_jaio"):::projected
v1("?veteran"):::projected
c8(["wd:Q126756"]):::iri
c2(["bd:serviceParam"]):::iri
c6(["wd:Q11218"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"wdt:P241"--> c6
v1 --"wdt:P172"--> c8
v1 --"wdt:P19"--> v2
v1 --"wdt:P20"--> v3
v1 --"wdt:P25"--> v4
v1 --"wdt:P22"--> v5
v4 --"wdt:P19"--> v6
v5 --"wdt:P19"--> v7
v2 --"wdt:P625"--> v8
v3 --"wdt:P625"--> v9
v6 --"wdt:P625"--> v10
v7 --"wdt:P625"--> v11
v1 --"wdt:P607"--> v12
v12 --"wdt:P625"--> v13