query-1a52d1e7943a5db5bdc059a3bc1ce228

rq turtle/ttl

En met deze query krijg je de straten in Haarlem in de BAG waar geen Wikidata link naartoe is:

Use at

PREFIX wdtn: <http://www.wikidata.org/prop/direct-normalized/>
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> .
        MINUS { ?weg <http://bag.basisregistraties.overheid.nl/def/bag#status> <http://bag.basisregistraties.overheid.nl/id/begrip/NaamgevingIngetrokken> } .
        ?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>
      } 
    }
    MINUS { ?item wdtn:P5207 ?weg } 
  }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?baglabel"):::projected v3("?item") v4("?label") v1("?weg"):::projected c8([http://bag.basisregistraties.overheid.nl/id/begrip/NaamgevingIngetrokken]):::iri c4([http://bag.basisregistraties.overheid.nl/def/bag#OpenbareRuimte]):::iri c5([http://bag.basisregistraties.overheid.nl/def/bag#Weg]):::iri c11([http://bag.basisregistraties.overheid.nl/bag/id/woonplaats/2907]):::iri c7([http://bag.basisregistraties.overheid.nl/id/begrip/NaamgevingUitgegeven]):::iri 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; v1 --"a"--> c4 v1 --"a"--> c5 v1 --http://bag.basisregistraties.overheid.nl/def/bag#status--> c7 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v1 --http://bag.basisregistraties.overheid.nl/def/bag#status--> c8 end v1 --http://www.w3.org/2000/01/rdf-schema#label--> v2 v1 --http://bag.basisregistraties.overheid.nl/def/bag#bijbehorendeWoonplaats--> c11 end end subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v3 --"wdtn:P5207"--> v1 end bind2[/"?baglabel"/] v2 --o bind2 bind2 --as--o v4