query-b9996a42dfd2f249192b073d358f2f3e

rq turtle/ttl

Lijst van items per streekConditions: the municipality should belong to a geographical region the object should be registered in a municipality (gemeente)

Use at

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 region
SELECT ?item ?itemLabel ?itemDescription ?city ?cityLabel ?locatie ?locatieLabel ?instance ?instanceLabel ?streekLabel ?geolocatie ?layer ?article WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],nl,fr,de,en,es,it,no,se,fi". }
  ?item wdt:P131 ?city;
    wikibase:sitelinks ?layer.
  ?city wdt:P706 wd:Q640303, ?streek.
  OPTIONAL { ?item wdt:P276 ?locatie. }
  OPTIONAL { ?item wdt:P625 ?geolocatie. }
  OPTIONAL { ?item wdt:P31 ?instance. }
  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; v9("?article"):::projected v3("?city"):::projected v7("?geolocatie"):::projected v8("?instance"):::projected v2("?item"):::projected v1("?itemLabel"):::projected v4("?layer"):::projected v6("?locatie"):::projected v5("?streek") c8(["wd:Q640303"]):::iri 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 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v2 --"wdt:P131"--> v3 v2 --"wikibase:sitelinks"--> v4 v3 --"wdt:P706"--> c8 v3 --"wdt:P706"--> v5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P276".-> v6 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P625".-> v7 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P31".-> v8 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v9 -."schema:about".-> v2 v9 --"schema:inLanguage"--> c14 v9 --"schema:isPartOf"--> c16 end