query-3bd59212eb844dde17e23e20de56fb92
Oplijsten van bunker-linies. You can add the missing bunkers with Wikidata. (P361)part of should only have one single (Q91122)bunker (cascading relationship). Every (Q2616577)KW Line (P361)part of requires (two levels of) (Q91122)bunker Conditions: A
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
# Select all items in a group
SELECT ?item ?itemLabel ?itemDescription ?partof ?partofLabel ?city ?cityLabel ?locatie ?locatieLabel ?instance ?instanceLabel ?groupLabel ?geolocatie ?layer ?article WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],nl,fr,de,en,es,it,no,se,fi". }
?item wdt:P361 ?partof;
wikibase:sitelinks ?layer.
?partof wdt:P361 wd:Q2616577, ?group.
OPTIONAL { ?item wdt:P31 ?instance. }
OPTIONAL { ?item wdt:P131 ?city. }
OPTIONAL { ?item wdt:P276 ?locatie. }
OPTIONAL { ?item wdt:P625 ?geolocatie. }
OPTIONAL {
?article schema:about ?item;
schema:inLanguage "nl";
schema:isPartOf <https://nl.wikipedia.org/>.
}
}
ORDER BY (?itemLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v10("?article"):::projected
v7("?city"):::projected
v9("?geolocatie"):::projected
v5("?group")
v6("?instance"):::projected
v2("?item"):::projected
v1("?itemLabel"):::projected
v4("?layer"):::projected
v8("?locatie"):::projected
v3("?partof"):::projected
c4(["#91;AUTO_LANGUAGE#93;,nl,fr,de,en,es,it,no,se,fi"]):::literal
c2(["bd:serviceParam"]):::iri
c16([https://nl.wikipedia.org/]):::iri
c14(["nl"]):::literal
c7(["wd:Q2616577"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v2 --"wdt:P361"--> v3
v2 --"wikibase:sitelinks"--> v4
v3 --"wdt:P361"--> c7
v3 --"wdt:P361"--> v5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P31".-> v6
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P131".-> v7
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P276".-> v8
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P625".-> v9
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v10 -."schema:about".-> v2
v10 --"schema:inLanguage"--> c14
v10 --"schema:isPartOf"--> c16
end