From d5da714e12c5486abef5abe66bd98492abd3116f Mon Sep 17 00:00:00 2001 From: mirdono Date: Mon, 19 Aug 2024 15:01:50 +0200 Subject: [PATCH] feat: add new merged municipalities and OCMWs As part of the municipality mergers for 2025, four new municipalities and their corresponding OCMWs will have new KBO numbers. Consequently, these organizations need to be fully manually created. This commit adds the migrations to import the organisations for the merged municipalities and OCMWs such that their URIs can already be shared among applications. The currently imported data concerns: - core data such as (legal) name, region, status, KBO, and OVO number - the necessary governing bodies, with as starting date 2025-01-01 The NIS-codes (and associated data) will be added in future migrations when the NIS2025 update has been released. Other missing data, such as addresses and contact details, will be added later on by business. --- ...pality-beveren_kruibeke_zwijndrecht.sparql | 250 ++++++++++++++++++ ...merged-municipality-merelbeke_melle.sparql | 250 ++++++++++++++++++ ...rged-municipality-nazareth_de_pinte.sparql | 250 ++++++++++++++++++ ...1423-merged-municipality-pajottegem.sparql | 250 ++++++++++++++++++ ...d-ocmw-beveren_kruibeke_zwijndrecht.sparql | 161 +++++++++++ ...9141423-merged-ocmw-merelbeke_melle.sparql | 161 +++++++++++ ...41423-merged-ocmw-nazareth_de_pinte.sparql | 161 +++++++++++ ...240819141423-merged-ocmw-pajottegem.sparql | 161 +++++++++++ ...late-merge-municipalities-and-ocmws.sparql | 105 ++++++++ 9 files changed, 1749 insertions(+) create mode 100644 config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-municipality-beveren_kruibeke_zwijndrecht.sparql create mode 100644 config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-municipality-merelbeke_melle.sparql create mode 100644 config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-municipality-nazareth_de_pinte.sparql create mode 100644 config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-municipality-pajottegem.sparql create mode 100644 config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-ocmw-beveren_kruibeke_zwijndrecht.sparql create mode 100644 config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-ocmw-merelbeke_melle.sparql create mode 100644 config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-ocmw-nazareth_de_pinte.sparql create mode 100644 config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-ocmw-pajottegem.sparql create mode 100644 config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819142809-relate-merge-municipalities-and-ocmws.sparql diff --git a/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-municipality-beveren_kruibeke_zwijndrecht.sparql b/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-municipality-beveren_kruibeke_zwijndrecht.sparql new file mode 100644 index 0000000..53268d2 --- /dev/null +++ b/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-municipality-beveren_kruibeke_zwijndrecht.sparql @@ -0,0 +1,250 @@ +PREFIX mu: +PREFIX skos: +PREFIX org: +PREFIX organisatie: +PREFIX regorg: +PREFIX owl: +PREFIX adms: +PREFIX generiek: +PREFIX besluit: +PREFIX prov: +PREFIX ext: +PREFIX mandaat: +PREFIX geo: + +INSERT { + GRAPH { + a , + , + . + mu:uuid "cc2c8c98-5f2a-471a-b6e2-65fa1c7dd412" ; + skos:prefLabel """Beveren-Kruibeke-Zwijndrecht""" ; + regorg:legalName """Beveren-Kruibeke-Zwijndrecht""" ; + org:classification . + } + + GRAPH { + regorg:orgStatus . # In oprichting + + owl:sameAs . + + # KBO number + adms:identifier . + a adms:Identifier ; + mu:uuid """e48e6a1f-8079-427e-9ae4-a0fdbf3d8a1c""" ; + skos:notation "KBO nummer" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid """3d540e3e-e1ea-4ecc-9a70-476e97581d70""" ; + generiek:lokaleIdentificator """1010783451""" . + + # OVO number + adms:identifier . + a adms:Identifier ; + mu:uuid """38cca492-b0be-41a5-b96a-812d4451a6d9""" ; + skos:notation "OVO-nummer" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid """2cf8e7f4-d3a2-4662-854b-bb49d4d04cbb""" ; + generiek:lokaleIdentificator """OVO053390""" . + + # Placeholder for SharePoint identifier + a adms:Identifier ; + mu:uuid "052b2f93-ba5b-4f53-a8a3-ebcf99a48e9c" ; + skos:notation "SharePoint identificator" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid "30ae130f-3b8f-4a4c-8e08-f62e59ab7ccb" . + } +} +; +# scope +INSERT { + GRAPH { + besluit:werkingsgebied . + a prov:Location ; + mu:uuid """c9a29e0e-0c7f-4069-910d-641258daa6cb""" ; + rdfs:label """Beveren-Kruibeke-Zwijndrecht""" ; + ext:werkingsgebiedNiveau "Gemeente" . + } + + GRAPH { + geo:sfWithin ?locatedWithin . + } +} WHERE { + GRAPH { + ?locatedWithin a ; + rdfs:label ?label . + FILTER (STR(?label) = """Waasland""") + } +} +# +# Governing bodies +# +; +## Burgemeester +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """e2351257-1ebc-48ea-9b14-bd7698dec7fe""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """ecc2d683-b804-4266-9cfd-b3fca23b712e""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Beveren-Kruibeke-Zwijndrecht") as ?governingBodyLabel) +} +; +## Gemeenteraad +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """dc048d1e-16a6-4bc6-988d-06f676bae795""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """69c9dd66-c624-494e-a796-696ad29ae0cc""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Beveren-Kruibeke-Zwijndrecht") as ?governingBodyLabel) +} +; +## College van Burgemeester en Schepenen +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """df293266-aa4e-4f2d-bce4-9e90ba1d10ce""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """8a7a3797-92db-4a61-9a96-a6e9906ae75f""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Beveren-Kruibeke-Zwijndrecht") as ?governingBodyLabel) +} +; +## Algemeen directeur +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """474fc497-860b-47ca-93bd-09538c61a0f4""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """44a3c3df-3518-402e-9941-dfda997da444""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Beveren-Kruibeke-Zwijndrecht") as ?governingBodyLabel) +} +; +## Adjunct-algemeen directeur +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """550ad610-6954-4170-ad6b-b6ea25b1f0c5""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """8c0d39ba-bffc-4a08-ac3f-f36fcf446694""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Beveren-Kruibeke-Zwijndrecht") as ?governingBodyLabel) +} +; +## Financieel directeur +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """c8b77803-6490-4b74-be22-9f6a0d31884e""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """544013f9-9d58-41ce-9413-63d49c83dc30""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Beveren-Kruibeke-Zwijndrecht") as ?governingBodyLabel) +} +; +## Adjunct-financieel directeur +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """c61f2753-f767-40cc-923c-cd46f22b1394""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """eedad091-80a0-4ce1-b99f-657a0e6ca246""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Beveren-Kruibeke-Zwijndrecht") as ?governingBodyLabel) +} +# +# Related province +# +; +INSERT { + GRAPH { + ?province org:hasSubOrganization . + } +} WHERE { + GRAPH { + ?province skos:prefLabel """Oost-Vlaanderen""" . + } +} diff --git a/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-municipality-merelbeke_melle.sparql b/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-municipality-merelbeke_melle.sparql new file mode 100644 index 0000000..b7c8167 --- /dev/null +++ b/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-municipality-merelbeke_melle.sparql @@ -0,0 +1,250 @@ +PREFIX mu: +PREFIX skos: +PREFIX org: +PREFIX organisatie: +PREFIX regorg: +PREFIX owl: +PREFIX adms: +PREFIX generiek: +PREFIX besluit: +PREFIX prov: +PREFIX ext: +PREFIX mandaat: +PREFIX geo: + +INSERT { + GRAPH { + a , + , + . + mu:uuid "3190ca10-104c-481d-92a5-42a9bb033a65" ; + skos:prefLabel """Merelbeke-Melle""" ; + regorg:legalName """Merelbeke-Melle""" ; + org:classification . + } + + GRAPH { + regorg:orgStatus . # In oprichting + + owl:sameAs . + + # KBO number + adms:identifier . + a adms:Identifier ; + mu:uuid """e494623a-29be-4478-83f4-01a216a1ff8f""" ; + skos:notation "KBO nummer" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid """d4b3548e-256c-4667-a600-20e9702cf0f8""" ; + generiek:lokaleIdentificator """1010775830""" . + + # OVO number + adms:identifier . + a adms:Identifier ; + mu:uuid """7a82ba6c-c571-4672-a893-224bbcabeda9""" ; + skos:notation "OVO-nummer" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid """c9d1ccd6-a9cb-431e-9919-1120e157549b""" ; + generiek:lokaleIdentificator """OVO053387""" . + + # Placeholder for SharePoint identifier + a adms:Identifier ; + mu:uuid "cbdebc3e-463a-4365-b44f-5c1cf03e46cc" ; + skos:notation "SharePoint identificator" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid "a16c1585-cd67-422b-a7a9-2ff8b04a633e" . + } +} +; +# scope +INSERT { + GRAPH { + besluit:werkingsgebied . + a prov:Location ; + mu:uuid """dcfebd37-162e-486f-9598-1b292a67e3e9""" ; + rdfs:label """Merelbeke-Melle""" ; + ext:werkingsgebiedNiveau "Gemeente" . + } + + GRAPH { + geo:sfWithin ?locatedWithin . + } +} WHERE { + GRAPH { + ?locatedWithin a ; + rdfs:label ?label . + FILTER (STR(?label) = """Regio Gent""") + } +} +# +# Governing bodies +# +; +## Burgemeester +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """13d87f34-c6d5-431f-a566-273efdc9c7f4""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """31775fb5-59b0-464c-bb01-53d44309e5da""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Merelbeke-Melle") as ?governingBodyLabel) +} +; +## Gemeenteraad +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """b4fca2a8-4534-46e1-8f7b-1ba949969ec0""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """efc20a9c-f5bd-48ee-af68-3bb679564a0c""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Merelbeke-Melle") as ?governingBodyLabel) +} +; +## College van Burgemeester en Schepenen +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """35d1a73d-d45a-4c84-b98c-bd3fa97a7b8b""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """c8d5ae0a-4857-48e4-9bbd-d68bb738ba89""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Merelbeke-Melle") as ?governingBodyLabel) +} +; +## Algemeen directeur +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """94dc4fee-3398-46d4-9c5d-da744ac2ec65""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """e16b32cf-78d6-4690-b76b-1590044e5d09""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Merelbeke-Melle") as ?governingBodyLabel) +} +; +## Adjunct-algemeen directeur +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """8a2edd81-6b5f-40dc-bc78-188b07695972""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """4ec1bb3b-20f3-4b45-946f-f8ce6f6d48c4""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Merelbeke-Melle") as ?governingBodyLabel) +} +; +## Financieel directeur +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """2c0f1995-7664-44d5-b175-112f51d0b663""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """5e48f15a-501f-4811-96e5-e2a2be6102fd""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Merelbeke-Melle") as ?governingBodyLabel) +} +; +## Adjunct-financieel directeur +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """ef9163c2-1b7e-4001-a8aa-6d08466c230c""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """b95eca68-9b0e-4c21-8426-26defe00579e""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Merelbeke-Melle") as ?governingBodyLabel) +} +# +# Related province +# +; +INSERT { + GRAPH { + ?province org:hasSubOrganization . + } +} WHERE { + GRAPH { + ?province skos:prefLabel """Oost-Vlaanderen""" . + } +} diff --git a/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-municipality-nazareth_de_pinte.sparql b/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-municipality-nazareth_de_pinte.sparql new file mode 100644 index 0000000..fb27d45 --- /dev/null +++ b/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-municipality-nazareth_de_pinte.sparql @@ -0,0 +1,250 @@ +PREFIX mu: +PREFIX skos: +PREFIX org: +PREFIX organisatie: +PREFIX regorg: +PREFIX owl: +PREFIX adms: +PREFIX generiek: +PREFIX besluit: +PREFIX prov: +PREFIX ext: +PREFIX mandaat: +PREFIX geo: + +INSERT { + GRAPH { + a , + , + . + mu:uuid "8c3d6a24-6a38-427e-98eb-a1040520173b" ; + skos:prefLabel """Nazareth-De Pinte""" ; + regorg:legalName """Nazareth-De Pinte""" ; + org:classification . + } + + GRAPH { + regorg:orgStatus . # In oprichting + + owl:sameAs . + + # KBO number + adms:identifier . + a adms:Identifier ; + mu:uuid """e6a6fce8-8caf-4862-9903-688cbd3f9f95""" ; + skos:notation "KBO nummer" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid """88f8c260-2edf-47ed-8f26-cff8b06651c5""" ; + generiek:lokaleIdentificator """1010781867""" . + + # OVO number + adms:identifier . + a adms:Identifier ; + mu:uuid """4039b244-d8b4-436d-930b-2696287da293""" ; + skos:notation "OVO-nummer" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid """735fe7c3-5efb-409a-97ff-e4d28dee3afd""" ; + generiek:lokaleIdentificator """OVO053388""" . + + # Placeholder for SharePoint identifier + a adms:Identifier ; + mu:uuid "996d4116-72bf-4fda-b3fd-c127045288e3" ; + skos:notation "SharePoint identificator" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid "315e0a0e-222a-4e4e-9e63-9689a451b6d3" . + } +} +; +# scope +INSERT { + GRAPH { + besluit:werkingsgebied . + a prov:Location ; + mu:uuid """ec944850-0095-4341-8747-ffe63813637b""" ; + rdfs:label """Nazareth-De Pinte""" ; + ext:werkingsgebiedNiveau "Gemeente" . + } + + GRAPH { + geo:sfWithin ?locatedWithin . + } +} WHERE { + GRAPH { + ?locatedWithin a ; + rdfs:label ?label . + FILTER (STR(?label) = """Regio Gent""") + } +} +# +# Governing bodies +# +; +## Burgemeester +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """bebd13d5-ca94-4394-8671-d3f3cdaab69b""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """c80818e7-4ce2-4225-9f48-0b1443f83ba4""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Nazareth-De Pinte") as ?governingBodyLabel) +} +; +## Gemeenteraad +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """0c7c4fcf-cd5c-4e37-9176-6673b8ffc734""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """49db8458-56d1-44e5-8660-71e45b598be5""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Nazareth-De Pinte") as ?governingBodyLabel) +} +; +## College van Burgemeester en Schepenen +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """9626bc18-db74-46cc-8095-7fd94f5e0e6d""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """2f815b8d-dca2-4aab-bc4a-96c43c469fbd""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Nazareth-De Pinte") as ?governingBodyLabel) +} +; +## Algemeen directeur +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """c77802c0-df58-4976-bef6-fe5f92fc8e60""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """004ab1ae-5221-4c9f-ab85-5b2504ca8f4e""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Nazareth-De Pinte") as ?governingBodyLabel) +} +; +## Adjunct-algemeen directeur +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """58150783-106f-4cc8-8ef2-cb18e8a355ab""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """9ee03ce4-53da-4b3f-9422-49763b3a2989""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Nazareth-De Pinte") as ?governingBodyLabel) +} +; +## Financieel directeur +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """a1de0674-f33b-4350-b49e-bc495df46782""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """1910e790-9fe9-423a-a722-5fed88d6529d""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Nazareth-De Pinte") as ?governingBodyLabel) +} +; +## Adjunct-financieel directeur +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """6180488c-65d6-4a99-b032-40b5aae0e48b""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """893f67bc-8f6a-44bb-88bf-42f987ef0aba""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Nazareth-De Pinte") as ?governingBodyLabel) +} +# +# Related province +# +; +INSERT { + GRAPH { + ?province org:hasSubOrganization . + } +} WHERE { + GRAPH { + ?province skos:prefLabel """Oost-Vlaanderen""" . + } +} diff --git a/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-municipality-pajottegem.sparql b/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-municipality-pajottegem.sparql new file mode 100644 index 0000000..856ac84 --- /dev/null +++ b/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-municipality-pajottegem.sparql @@ -0,0 +1,250 @@ +PREFIX mu: +PREFIX skos: +PREFIX org: +PREFIX organisatie: +PREFIX regorg: +PREFIX owl: +PREFIX adms: +PREFIX generiek: +PREFIX besluit: +PREFIX prov: +PREFIX ext: +PREFIX mandaat: +PREFIX geo: + +INSERT { + GRAPH { + a , + , + . + mu:uuid "261c7380-4ecd-4846-a573-60914bdeb150" ; + skos:prefLabel """Pajottegem""" ; + regorg:legalName """Pajottegem""" ; + org:classification . + } + + GRAPH { + regorg:orgStatus . # In oprichting + + owl:sameAs . + + # KBO number + adms:identifier . + a adms:Identifier ; + mu:uuid """0197ec6c-b16d-4654-9f97-bc30f2de0f14""" ; + skos:notation "KBO nummer" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid """6ea3d739-107e-4a39-90df-89207f8f8e26""" ; + generiek:lokaleIdentificator """1010784540""" . + + # OVO number + adms:identifier . + a adms:Identifier ; + mu:uuid """0d36aeca-637a-4c36-ae75-4ac98a165fac""" ; + skos:notation "OVO-nummer" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid """79f204e7-38bb-4d1f-bd9e-6262c7c46470""" ; + generiek:lokaleIdentificator """OVO053389""" . + + # Placeholder for SharePoint identifier + a adms:Identifier ; + mu:uuid "c4e533b0-aa9a-4fde-9f12-e651fee6359d" ; + skos:notation "SharePoint identificator" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid "b4ea9a1c-d68c-4f39-aa17-9f83fb88782c" . + } +} +; +# scope +INSERT { + GRAPH { + besluit:werkingsgebied . + a prov:Location ; + mu:uuid """7204384f-f4e9-4a5e-b0c4-3976c8a69da9""" ; + rdfs:label """Pajottegem""" ; + ext:werkingsgebiedNiveau "Gemeente" . + } + + GRAPH { + geo:sfWithin ?locatedWithin . + } +} WHERE { + GRAPH { + ?locatedWithin a ; + rdfs:label ?label . + FILTER (STR(?label) = """Halle-Vilvoorde""") + } +} +# +# Governing bodies +# +; +## Burgemeester +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """c1a7289b-e15f-44ee-8425-b88fa557a4da""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """f9bbf6ef-2a66-4ff2-966f-2ddeed5bdd55""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Pajottegem") as ?governingBodyLabel) +} +; +## Gemeenteraad +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """b603c476-5a98-4d7b-aafb-9e0f2280c912""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """645eadbe-4358-40bd-8038-8bffb1b59214""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Pajottegem") as ?governingBodyLabel) +} +; +## College van Burgemeester en Schepenen +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """96a13d7e-b984-4690-aab7-9b0f8bb238f7""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """5956adad-74c5-43c8-8e4b-4729d87d92c8""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Pajottegem") as ?governingBodyLabel) +} +; +## Algemeen directeur +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """29a2c70d-65f9-49ec-8dcb-e35785f89776""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """9b4da922-8437-405a-8545-ce9099d0691d""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Pajottegem") as ?governingBodyLabel) +} +; +## Adjunct-algemeen directeur +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """c6027a78-d021-4358-86fc-56683e51ec9d""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """fc29df7f-30ee-4b35-8f8b-063e48627dcf""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Pajottegem") as ?governingBodyLabel) +} +; +## Financieel directeur +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """b12cda4a-5ba7-4170-b820-d5f1c696cd1e""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """875a6398-c8c6-4003-bd46-0370a8c55fd2""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Pajottegem") as ?governingBodyLabel) +} +; +## Adjunct-financieel directeur +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """40a42977-af82-4ff7-8483-32476cb0b9a9""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """d70efcd3-237d-4d57-bed3-e7796482ea30""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Pajottegem") as ?governingBodyLabel) +} +# +# Related province +# +; +INSERT { + GRAPH { + ?province org:hasSubOrganization . + } +} WHERE { + GRAPH { + ?province skos:prefLabel """Vlaams-Brabant""" . + } +} diff --git a/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-ocmw-beveren_kruibeke_zwijndrecht.sparql b/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-ocmw-beveren_kruibeke_zwijndrecht.sparql new file mode 100644 index 0000000..41c78b0 --- /dev/null +++ b/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-ocmw-beveren_kruibeke_zwijndrecht.sparql @@ -0,0 +1,161 @@ +PREFIX mu: +PREFIX skos: +PREFIX org: +PREFIX organisatie: +PREFIX regorg: +PREFIX owl: +PREFIX adms: +PREFIX generiek: +PREFIX besluit: +PREFIX prov: +PREFIX ext: +PREFIX mandaat: +PREFIX geo: + +INSERT { + GRAPH { + a , + , + . + mu:uuid "26913911-14e2-4683-9ea4-4c37951b68b7" ; + skos:prefLabel """Beveren-Kruibeke-Zwijndrecht""" ; + regorg:legalName """Beveren-Kruibeke-Zwijndrecht""" ; + org:classification . + + regorg:orgStatus . # In oprichting + + owl:sameAs . + + # KBO number + adms:identifier . + a adms:Identifier ; + mu:uuid """a4763769-eb32-43c1-9c92-a2c345fccff2""" ; + skos:notation "KBO nummer" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid """6d34fc95-6586-4e21-a256-7373f455f911""" ; + generiek:lokaleIdentificator """1010783748""" . + + # OVO number + adms:identifier . + a adms:Identifier ; + mu:uuid """a0187b2a-fa05-492f-865e-b1fc9ce5e9c2""" ; + skos:notation "OVO-nummer" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid """17aeaeb1-4348-4dae-bd4e-e063b662ffeb""" ; + generiek:lokaleIdentificator """OVO053710""" . + + # Placeholder for SharePoint identifier + a adms:Identifier ; + mu:uuid "cedfbb4e-d8af-4d1f-85f2-dcc0f4cf4cb6" ; + skos:notation "SharePoint identificator" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid "fc2d4892-cb62-4309-a100-0dd57d4d0193" . + } +} +# +# Governing bodies +# +; +## Voorzitter van het Bijzonder Comité voor de Sociale Dienst +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """4e3085a8-95ff-4fde-85f4-ee921b54fccc""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """4fe4f3ef-7b32-412e-b40a-58ce55240940""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Beveren-Kruibeke-Zwijndrecht") as ?governingBodyLabel) +} +; +## Raad voor Maatschappelijk Welzijn +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """0cfd0845-a79c-4640-9d61-15720a8f6086""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """aa126dbc-d424-4ce7-81dd-61d4d27f8f97""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Beveren-Kruibeke-Zwijndrecht") as ?governingBodyLabel) +} +; +## Vast Bureau +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """d9cdba10-0dda-4471-8bb3-73c94d4b43ac""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """b2404e03-72d2-4496-ab5d-687fa334dca9""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Beveren-Kruibeke-Zwijndrecht") as ?governingBodyLabel) +} +; +## Bijzonder Comité voor de Sociale Dienst +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """4bca4def-ee66-45ff-8402-9f71810e7c2e""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """a633f2d2-ecee-471a-84a2-5365c677d4f1""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Beveren-Kruibeke-Zwijndrecht") as ?governingBodyLabel) +} +# +# Related province +# +; +INSERT { + GRAPH { + ?province org:hasSubOrganization . + } +} WHERE { + GRAPH { + ?province skos:prefLabel """Oost-Vlaanderen""" . + } +} diff --git a/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-ocmw-merelbeke_melle.sparql b/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-ocmw-merelbeke_melle.sparql new file mode 100644 index 0000000..1f793b1 --- /dev/null +++ b/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-ocmw-merelbeke_melle.sparql @@ -0,0 +1,161 @@ +PREFIX mu: +PREFIX skos: +PREFIX org: +PREFIX organisatie: +PREFIX regorg: +PREFIX owl: +PREFIX adms: +PREFIX generiek: +PREFIX besluit: +PREFIX prov: +PREFIX ext: +PREFIX mandaat: +PREFIX geo: + +INSERT { + GRAPH { + a , + , + . + mu:uuid "80bb6363-c914-4e51-82ec-e547b21890f4" ; + skos:prefLabel """Merelbeke-Melle""" ; + regorg:legalName """Merelbeke-Melle""" ; + org:classification . + + regorg:orgStatus . # In oprichting + + owl:sameAs . + + # KBO number + adms:identifier . + a adms:Identifier ; + mu:uuid """222cc648-4a5b-496a-8f4f-2abde996ec36""" ; + skos:notation "KBO nummer" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid """9c0e5534-0a79-4a0b-82d5-d9e1607e34d6""" ; + generiek:lokaleIdentificator """1010776127""" . + + # OVO number + adms:identifier . + a adms:Identifier ; + mu:uuid """d186d187-ab96-41dc-bd52-bdf9f7de2b47""" ; + skos:notation "OVO-nummer" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid """ba8f9e04-a9f2-440f-8b85-3b81a9033cf7""" ; + generiek:lokaleIdentificator """OVO053711""" . + + # Placeholder for SharePoint identifier + a adms:Identifier ; + mu:uuid "447c5679-b4eb-4f37-aee7-c4a5ce8974cd" ; + skos:notation "SharePoint identificator" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid "29b43db7-ffe8-415d-8cba-3b8d29c01ee8" . + } +} +# +# Governing bodies +# +; +## Voorzitter van het Bijzonder Comité voor de Sociale Dienst +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """c1177041-2755-48cf-a893-567a2ec85806""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """bd58436e-7472-4862-8578-30eb0dd83330""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Merelbeke-Melle") as ?governingBodyLabel) +} +; +## Raad voor Maatschappelijk Welzijn +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """1f32130c-6127-4be2-96ee-8ed175836843""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """5474dfba-65d1-4516-b307-0ed1d112c9f0""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Merelbeke-Melle") as ?governingBodyLabel) +} +; +## Vast Bureau +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """839173f2-5ba1-4aef-b681-0608a18eec3d""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """80324764-8bfc-408c-9362-25caf85a2b41""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Merelbeke-Melle") as ?governingBodyLabel) +} +; +## Bijzonder Comité voor de Sociale Dienst +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """acde5a73-f1f5-4a6a-9c86-13875905588c""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """acfe2eb5-7d17-480f-8308-5ba0b607acc2""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Merelbeke-Melle") as ?governingBodyLabel) +} +# +# Related province +# +; +INSERT { + GRAPH { + ?province org:hasSubOrganization . + } +} WHERE { + GRAPH { + ?province skos:prefLabel """Oost-Vlaanderen""" . + } +} diff --git a/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-ocmw-nazareth_de_pinte.sparql b/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-ocmw-nazareth_de_pinte.sparql new file mode 100644 index 0000000..cdfd970 --- /dev/null +++ b/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-ocmw-nazareth_de_pinte.sparql @@ -0,0 +1,161 @@ +PREFIX mu: +PREFIX skos: +PREFIX org: +PREFIX organisatie: +PREFIX regorg: +PREFIX owl: +PREFIX adms: +PREFIX generiek: +PREFIX besluit: +PREFIX prov: +PREFIX ext: +PREFIX mandaat: +PREFIX geo: + +INSERT { + GRAPH { + a , + , + . + mu:uuid "92734750-4886-4dd8-8adb-1fb44dd221b8" ; + skos:prefLabel """Nazareth-De Pinte""" ; + regorg:legalName """Nazareth-De Pinte""" ; + org:classification . + + regorg:orgStatus . # In oprichting + + owl:sameAs . + + # KBO number + adms:identifier . + a adms:Identifier ; + mu:uuid """0716e45c-bcf2-4828-99b9-26aca09f83d5""" ; + skos:notation "KBO nummer" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid """c58cec55-8f6d-4b01-8bdf-e363b9e09140""" ; + generiek:lokaleIdentificator """1010782461""" . + + # OVO number + adms:identifier . + a adms:Identifier ; + mu:uuid """fcf15add-35cd-4e66-b322-7b7009aecced""" ; + skos:notation "OVO-nummer" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid """6a8393e9-8492-4298-b150-1a5388d9ebbc""" ; + generiek:lokaleIdentificator """OVO053712""" . + + # Placeholder for SharePoint identifier + a adms:Identifier ; + mu:uuid "afd96dec-49a8-4350-bafb-b1c62addefc9" ; + skos:notation "SharePoint identificator" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid "2302c0b0-68a8-4cfc-8746-5ec63a4c47c5" . + } +} +# +# Governing bodies +# +; +## Voorzitter van het Bijzonder Comité voor de Sociale Dienst +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """ff486223-9205-49f6-a2d6-67a4b5ef752e""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """d2931462-e676-46b7-85b5-f898a6584bb1""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Nazareth-De Pinte") as ?governingBodyLabel) +} +; +## Raad voor Maatschappelijk Welzijn +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """8e72c369-f5b5-451b-820c-9d9db2ce22b8""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """49ab2548-03df-4ccf-9bce-dd571bc6342f""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Nazareth-De Pinte") as ?governingBodyLabel) +} +; +## Vast Bureau +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """e1bdd942-71b6-4385-b048-17fab0e3b625""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """cfa4adfb-4229-4de8-ac9d-74197ffe3c35""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Nazareth-De Pinte") as ?governingBodyLabel) +} +; +## Bijzonder Comité voor de Sociale Dienst +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """35c9de34-f207-486d-acc5-aacc00e7e3f5""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """a2f6349b-78cf-474a-849c-863fcf311b70""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Nazareth-De Pinte") as ?governingBodyLabel) +} +# +# Related province +# +; +INSERT { + GRAPH { + ?province org:hasSubOrganization . + } +} WHERE { + GRAPH { + ?province skos:prefLabel """Oost-Vlaanderen""" . + } +} diff --git a/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-ocmw-pajottegem.sparql b/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-ocmw-pajottegem.sparql new file mode 100644 index 0000000..7ebb104 --- /dev/null +++ b/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819141423-merged-ocmw-pajottegem.sparql @@ -0,0 +1,161 @@ +PREFIX mu: +PREFIX skos: +PREFIX org: +PREFIX organisatie: +PREFIX regorg: +PREFIX owl: +PREFIX adms: +PREFIX generiek: +PREFIX besluit: +PREFIX prov: +PREFIX ext: +PREFIX mandaat: +PREFIX geo: + +INSERT { + GRAPH { + a , + , + . + mu:uuid "73018124-9b28-42b0-817f-7e08a90cfe9f" ; + skos:prefLabel """Pajottegem""" ; + regorg:legalName """Pajottegem""" ; + org:classification . + + regorg:orgStatus . # In oprichting + + owl:sameAs . + + # KBO number + adms:identifier . + a adms:Identifier ; + mu:uuid """f18fe9b0-f9e7-4bb7-ac7d-b8590570b633""" ; + skos:notation "KBO nummer" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid """289880d3-2de5-46a2-a2e6-81a67f216773""" ; + generiek:lokaleIdentificator """1010784738""" . + + # OVO number + adms:identifier . + a adms:Identifier ; + mu:uuid """05e0a7b3-1a34-47e5-b1f4-1ccf46d03758""" ; + skos:notation "OVO-nummer" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid """3a53414e-ba06-4197-a4ea-f9d301160bc9""" ; + generiek:lokaleIdentificator """OVO053708""" . + + # Placeholder for SharePoint identifier + a adms:Identifier ; + mu:uuid "f26a54be-f91d-42d2-9815-a1b7253e353c" ; + skos:notation "SharePoint identificator" ; + generiek:gestructureerdeIdentificator . + a generiek:GestructureerdeIdentificator ; + mu:uuid "fd1bdea2-5c0d-44d5-ac62-a385a120b775" . + } +} +# +# Governing bodies +# +; +## Voorzitter van het Bijzonder Comité voor de Sociale Dienst +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """9f421c11-72c8-4b33-a6c0-b074ba843441""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """bec6982c-827d-4e05-b04c-46e275d3ca0f""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Pajottegem") as ?governingBodyLabel) +} +; +## Raad voor Maatschappelijk Welzijn +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """7ff76277-5ee6-4ec9-bdd5-40508cc10587""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """c74ce5d9-5fa1-40cd-9c9a-44e593d49edc""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Pajottegem") as ?governingBodyLabel) +} +; +## Vast Bureau +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """47f9d813-8838-4e27-ad10-286e5a57c768""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """56cc5d11-e8b8-40d5-8fbf-635615a8e76e""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Pajottegem") as ?governingBodyLabel) +} +; +## Bijzonder Comité voor de Sociale Dienst +INSERT { + GRAPH { + # Abstract governing body + a besluit:Bestuursorgaan ; + mu:uuid """a212b975-3bd4-42a7-aeb9-4e0ec84f7236""" ; + skos:prefLabel ?governingBodyLabel ; + besluit:bestuurt ; + org:classification . + + # Timed specialisation for governing body + a besluit:Bestuursorgaan ; + mu:uuid """f84b8bb7-a359-415f-aadf-ef50a504870f""" ; + generiek:isTijdspecialisatieVan ; + mandaat:bindingStart "2025-01-01T00:00:00"^^xsd:dateTime . + } +} WHERE { + skos:prefLabel ?classificationLabel . + + BIND(CONCAT(?classificationLabel, " ", "Pajottegem") as ?governingBodyLabel) +} +# +# Related province +# +; +INSERT { + GRAPH { + ?province org:hasSubOrganization . + } +} WHERE { + GRAPH { + ?province skos:prefLabel """Vlaams-Brabant""" . + } +} diff --git a/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819142809-relate-merge-municipalities-and-ocmws.sparql b/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819142809-relate-merge-municipalities-and-ocmws.sparql new file mode 100644 index 0000000..2c93659 --- /dev/null +++ b/config/migrations/2024/20240812111040-feat-add-merged-municipalities-and-ocmws/20240819142809-relate-merge-municipalities-and-ocmws.sparql @@ -0,0 +1,105 @@ +PREFIX org: +PREFIX besluit: +PREFIX adms: +PREFIX skos: +PREFIX generiek: + +# Beveren-Kruibeke-Zwijndrecht +INSERT { + GRAPH { + ?municipality org:linkedTo ?ocmw . + ?ocmw org:linkedTo ?municipality + } +} WHERE { + GRAPH { + ?municipality a besluit:Bestuurseenheid . + } + + GRAPH { + ?municipality adms:identifier ?municipalityId . + ?municipalityId skos:notation ?municipalityKboNotation . + FILTER(?municipalityKboNotation IN ("KBO nummer", "KBO nummer"@nl)) + ?municipalityId generiek:gestructureerdeIdentificator/generiek:lokaleIdentificator """1010783451""" . + + ?ocmw a besluit:Bestuurseenheid ; + adms:identifier ?ocmwId . + ?ocmwId skos:notation ?ocmwKboNotation . + FILTER(?ocmwKboNotation IN ("KBO nummer", "KBO nummer"@nl)) + ?ocmwId generiek:gestructureerdeIdentificator/generiek:lokaleIdentificator """1010783748""" . + } +} +; +# Nazareth-De Pinte +INSERT { + GRAPH { + ?municipality org:linkedTo ?ocmw . + ?ocmw org:linkedTo ?municipality + } +} WHERE { + GRAPH { + ?municipality a besluit:Bestuurseenheid . + } + + GRAPH { + ?municipality adms:identifier ?municipalityId . + ?municipalityId skos:notation ?municipalityKboNotation . + FILTER(?municipalityKboNotation IN ("KBO nummer", "KBO nummer"@nl)) + ?municipalityId generiek:gestructureerdeIdentificator/generiek:lokaleIdentificator """1010781867""" . + + ?ocmw a besluit:Bestuurseenheid ; + adms:identifier ?ocmwId . + ?ocmwId skos:notation ?ocmwKboNotation . + FILTER(?ocmwKboNotation IN ("KBO nummer", "KBO nummer"@nl)) + ?ocmwId generiek:gestructureerdeIdentificator/generiek:lokaleIdentificator """1010782461""" . + } +} +; +# Pajottegem +INSERT { + GRAPH { + ?municipality org:linkedTo ?ocmw . + ?ocmw org:linkedTo ?municipality + } +} WHERE { + GRAPH { + ?municipality a besluit:Bestuurseenheid . + } + + GRAPH { + ?municipality adms:identifier ?municipalityId . + ?municipalityId skos:notation ?municipalityKboNotation . + FILTER(?municipalityKboNotation IN ("KBO nummer", "KBO nummer"@nl)) + ?municipalityId generiek:gestructureerdeIdentificator/generiek:lokaleIdentificator """1010784540""" . + + ?ocmw a besluit:Bestuurseenheid ; + adms:identifier ?ocmwId . + ?ocmwId skos:notation ?ocmwKboNotation . + FILTER(?ocmwKboNotation IN ("KBO nummer", "KBO nummer"@nl)) + ?ocmwId generiek:gestructureerdeIdentificator/generiek:lokaleIdentificator """1010784738""" . + } +} +; +# Merelbeke-Melle +INSERT { + GRAPH { + ?municipality org:linkedTo ?ocmw . + ?ocmw org:linkedTo ?municipality + } +} WHERE { + GRAPH { + ?municipality a besluit:Bestuurseenheid . + } + + GRAPH { + ?municipality adms:identifier ?municipalityId . + ?municipalityId skos:notation ?municipalityKboNotation . + FILTER(?municipalityKboNotation IN ("KBO nummer", "KBO nummer"@nl)) + ?municipalityId generiek:gestructureerdeIdentificator/generiek:lokaleIdentificator """1010775830""" . + + ?ocmw a besluit:Bestuurseenheid ; + adms:identifier ?ocmwId . + ?ocmwId skos:notation ?ocmwKboNotation . + FILTER(?ocmwKboNotation IN ("KBO nummer", "KBO nummer"@nl)) + ?ocmwId generiek:gestructureerdeIdentificator/generiek:lokaleIdentificator """1010776127""" . + } +}