Skip to content

Commit

Permalink
Added migration to add KBO to districten.
Browse files Browse the repository at this point in the history
  • Loading branch information
cecemel committed Dec 5, 2024
1 parent ca92809 commit 2f37aaa
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions config/migrations/2024/20241204145818-add-kbo-districten.sparql
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
INSERT {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?structuredId <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> ?kbo
}
}
WHERE {
VALUES (?eenheid ?kbo) {
(<http://data.lblod.info/id/bestuurseenheden/33a1886b07b64ebe3a0e6c5ed8086f030ef1109492cb254832a716dd7e1b8d7b> "2166001684")
(<http://data.lblod.info/id/bestuurseenheden/43e3009526dac139a0abdcf75c1ddc5fa3fe9217391d6f64f7b7a30a99a4cda6> "2165926559")
(<http://data.lblod.info/id/bestuurseenheden/5be3ff820769b385a32e499d17bbf1f15feeacb65381d5384841732dd4a1209b> "2165924084")
(<http://data.lblod.info/id/bestuurseenheden/73e8904d83f7324e39abc0adf639b0e48bc52533c4c243b6419cac8fb70784cf> "2165906862")
(<http://data.lblod.info/id/bestuurseenheden/859f08dcfbc8f68bac0879e7baf6463b260b6f4c16b734d0d1986f5f3af0407b> "2165940120")
(<http://data.lblod.info/id/bestuurseenheden/a2ee394059cce91526392e73e4de974d90caffb92f70cde23b9e9e1a965526fa> "2165926262")
(<http://data.lblod.info/id/bestuurseenheden/e7a75861661ee14ebe2bca0c79bda8b23f2f943d00a9693d2bff401a8f8dea65> "2165997726")
(<http://data.lblod.info/id/bestuurseenheden/f1ad80291fbdc1f0b9b25d729ecc608a8e28fdddab01a1b8e135c841c75586e2> "2165996340")
(<http://data.lblod.info/id/bestuurseenheden/fb56bc40ce36390d2f12fc2057c89d4b6bc5b3217eabd41995b6401318ff648a> "2165911218")
(<http://data.lblod.info/id/bestuurseenheden/4b44e6f1-113b-4692-b149-44a889b215f2> "2165162239")
}

GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?eenheid a <http://data.vlaanderen.be/ns/besluit#Bestuurseenheid>;
<http://www.w3.org/ns/adms#identifier> ?identifier;
<http://www.w3.org/2004/02/skos/core#prefLabel> ?label.

?identifier <http://www.w3.org/2004/02/skos/core#notation> "KBO nummer";
<https://data.vlaanderen.be/ns/generiek#gestructureerdeIdentificator> ?structuredId .

FILTER NOT EXISTS {
?structuredId <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> ?foo
}
}
}

0 comments on commit 2f37aaa

Please sign in to comment.