query-c4532fea594015b46d7715d485ce5648

rq turtle/ttl

Multichill

Use at

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 ?item ?weg ?label
WHERE {
   {
  SELECT DISTINCT ?item (?wikilabel AS ?label) WHERE { 
    ?item rdfs:label ?wikilabel .
    ?item wdt:P131 wd:Q9920 .
    ?item wdt:P31 wd:Q79007 .
  }
}
   {
  SELECT ?weg (?baglabel AS ?label) {
    SERVICE <http://lov.okfn.org/dataset/lov/sparql> {
      SERVICE <https://data.pdok.nl/sparql> {
        ?weg <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://bag.basisregistraties.overheid.nl/def/bag#OpenbareRuimte> .
        #?weg <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://bag.basisregistraties.overheid.nl/def/bag#Weg> .
        ?weg <http://bag.basisregistraties.overheid.nl/def/bag#status> <http://bag.basisregistraties.overheid.nl/id/begrip/NaamgevingUitgegeven> .
        ?weg <http://www.w3.org/2000/01/rdf-schema#label> ?baglabel .
        ?weg <http://bag.basisregistraties.overheid.nl/def/bag#bijbehorendeWoonplaats> <http://bag.basisregistraties.overheid.nl/bag/id/woonplaats/2907>
      } 
    }
  }
}
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?baglabel") v1("?item"):::projected v6("?label"):::projected v4("?weg"):::projected v2("?wikilabel") c5(["wd:Q79007"]):::iri c9([http://bag.basisregistraties.overheid.nl/def/bag#OpenbareRuimte]):::iri c13([http://bag.basisregistraties.overheid.nl/bag/id/woonplaats/2907]):::iri c11([http://bag.basisregistraties.overheid.nl/id/begrip/NaamgevingUitgegeven]):::iri c3(["wd:Q9920"]):::iri v1 --"rdfs:label"--> v2 v1 --"wdt:P131"--> c3 v1 --"wdt:P31"--> c5 bind0[/"?wikilabel"/] v2 --o bind0 bind0 --as--o v6 subgraph s1["http://lov.okfn.org/dataset/lov/sparql"] style s1 stroke-width:4px; subgraph s2["https://data.pdok.nl/sparql"] style s2 stroke-width:4px; v4 --"a"--> c9 v4 --http://bag.basisregistraties.overheid.nl/def/bag#status--> c11 v4 --"rdfs:label"--> v5 v4 --http://bag.basisregistraties.overheid.nl/def/bag#bijbehorendeWoonplaats--> c13 end end bind1[/"?baglabel"/] v5 --o bind1 bind1 --as--o v6