diff --git a/config/migrations/2023/20230704112900-onboarding-igs/20230913113222-related-municipalities.sparql b/config/migrations/2023/20230704112900-onboarding-igs/20230913113222-related-municipalities.sparql new file mode 100644 index 0000000..24b62bc --- /dev/null +++ b/config/migrations/2023/20230704112900-onboarding-igs/20230913113222-related-municipalities.sparql @@ -0,0 +1,25 @@ +INSERT { + GRAPH { + ?municipality ?bestuur . + } +} WHERE { + VALUES ?classificationIgs { + + + + + } + GRAPH { + ?bestuur a ; + ?classificationIgs ; + / ?address . + + ?address ?municipalityLabel . + } + + GRAPH { + ?municipality a ; + skos:prefLabel ?municipalityLabel ; + . + } +}