From 296f18e41ca85872a9ef166ec8b2d9291e731095 Mon Sep 17 00:00:00 2001 From: mirdono Date: Tue, 27 Aug 2024 15:02:50 +0200 Subject: [PATCH] feat: add new district Borsbeek The municipality of Borsbeek will merge with the municipality Antwerp as of 01-01-2025. This will result in a new district Borsbeek part of municipality Antwerp. This migration adds that new district such that a URI is assigned to it and its governing bodies are created. The information available at this time is limited its (legal) name. Other core data, such as identifiers, and further information such as site addresses will be added later by business. --- ...0827145640-merged-district-borsbeek.sparql | 128 ++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 config/migrations/2024/20240827145640-merged-district-borsbeek.sparql diff --git a/config/migrations/2024/20240827145640-merged-district-borsbeek.sparql b/config/migrations/2024/20240827145640-merged-district-borsbeek.sparql new file mode 100644 index 0000000..e30d321 --- /dev/null +++ b/config/migrations/2024/20240827145640-merged-district-borsbeek.sparql @@ -0,0 +1,128 @@ +PREFIX mu: +PREFIX skos: +PREFIX org: +PREFIX regorg: +PREFIX adms: +PREFIX generiek: +PREFIX besluit: +PREFIX mandaat: + +INSERT DATA { + GRAPH { + + a , + , + . + mu:uuid "4b44e6f1-113b-4692-b149-44a889b215f2" ; + skos:prefLabel """Borsbeek""" ; + regorg:legalName """Borsbeek""" ; + org:classification . + + regorg:orgStatus . # In oprichting + + # Placeholder for KBO number + adms:identifier . + a adms:Identifier ; + mu:uuid """a7b2c84b-8151-4d88-982b-0ec87ea2e793""" ; + skos:notation "KBO nummer" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid """79a9898b-bb86-4158-83c4-f4b9ba632e5c""" . + + # Placeholder for OVO number + adms:identifier . + a adms:Identifier ; + mu:uuid """535f3065-3530-4577-b8d2-200d68d0ddeb""" ; + skos:notation "OVO-nummer" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid """5e8ca2f4-c1cc-4a55-90ef-0c4298467cee""" . + + # Placeholder for SharePoint identifier + adms:identifier . + a adms:Identifier ; + mu:uuid """03a56007-e297-434e-833d-12b8cd0c59a6""" ; + skos:notation "SharePoint identificator" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid """9e274975-6c33-4568-9286-c4b2b6a6b94c""" . + } +} +# +# Governing bodies +# +; +## Districtsraad +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """cd7165a1-3c93-411b-9ef4-393103ebbd7e""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """547c5e2a-fa22-4c0c-b142-9df2d7602e20""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " Borsbeek") as ?governingBodyLabel) +} +; +## Districtsburgemeester +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """7135d957-2452-43a2-8a3c-608fe87e5e6e""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """d8cedeff-a243-41f9-90ea-15867149aefd""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " Borsbeek") as ?governingBodyLabel) +} +; +## Districtscollege +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """e91bec2e-e0c1-4b56-9fb2-417c3289afbd""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """570a7769-89e0-4f40-aa1a-da17755f3bf4""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " Borsbeek") as ?governingBodyLabel) +} +# +# Related municipality +# +; +INSERT DATA { + GRAPH { + org:hasSubOrganization . # Relate to Antwerp municipality + } +}