diff --git a/CHANGELOG.md b/CHANGELOG.md index b533746..f44e8e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,13 @@ # Changelog +## Unreleased +### Backend +- Completely remove AGB Stekene's data. [OP-3409] +### Deploy Notes +- Migration listed in [this comment](https://github.com/lblod/app-organization-portal/pull/491#issuecomment-2587185027) must run on the DEV environment. +#### Docker Commands +``` +drc restart migrations-triggering-indexing && drc logs -ft --tail=200 migrations-triggering-indexing +``` ## 1.28.4 (2025-01-16) ### Backend #### Data diff --git a/config/migrations-triggering-indexing/2025/20250109200145-archive-agb-stekene.sparql b/config/migrations-triggering-indexing/2025/20250109200145-archive-agb-stekene.sparql new file mode 100644 index 0000000..dbceb14 --- /dev/null +++ b/config/migrations-triggering-indexing/2025/20250109200145-archive-agb-stekene.sparql @@ -0,0 +1,196 @@ +DELETE { + GRAPH { + ?bestuursorganen ?bestuursorganenP ?bestuursorganenO . + } +} +WHERE { + VALUES ?bestuursorganen { + + + + + } + + GRAPH { + ?bestuursorganen ?bestuursorganenP ?bestuursorganenO . + } +} + +; + +DELETE { + GRAPH { + ?bestuursorganenInTijd ?bestuursorganenInTijdP ?bestuursorganenInTijdO . + } +} +WHERE { + VALUES ?bestuursorganenInTijd { + + + + + } + + GRAPH { + ?bestuursorganenInTijd ?bestuursorganenInTijdP ?bestuursorganenInTijdO . + } +} + +; + +DELETE { + GRAPH { + ?identifier ?identifierP ?identifierO . + } +} +WHERE { + VALUES ?identifier { + + + + } + + GRAPH { + ?identifier ?identifierP ?identifierO . + } +} + +; + +DELETE { + GRAPH { + ?structuredIdentifier ?structuredIdentifierP ?structuredIdentifierO . + } +} +WHERE { + VALUES ?structuredIdentifier { + + + + } + + GRAPH { + ?structuredIdentifier ?structuredIdentifierP ?structuredIdentifierO . + } +} + +; + +DELETE { + GRAPH { + ?site ?siteP ?siteO . + } +} +WHERE { + VALUES ?site { + + } + + GRAPH { + ?site ?siteP ?siteO . + } +} + +; + +DELETE { + GRAPH { + ?address ?addressP ?addressO . + } +} +WHERE { + VALUES ?address { + + } + + GRAPH { + ?address ?addressP ?addressO . + } +} + +; + +DELETE { + GRAPH { + ?contactPoint ?contactPointP ?contactPointO . + } +} +WHERE { + VALUES ?contactPoint { + + + } + + GRAPH { + ?contactPoint ?contactPointP ?contactPointO . + } +} + +; + +DELETE { + GRAPH { + ?parentOrganization ?organization . + } +} +WHERE { + BIND( AS ?organization) + BIND( AS ?parentOrganization) + + GRAPH { + ?parentOrganization ?organization . + } +} + +; + +DELETE { + GRAPH { + ?parentOrganization ?organization . + } +} +WHERE { + BIND( AS ?organization) + BIND( AS ?parentOrganization) + + GRAPH { + ?parentOrganization ?organization . + } +} + +; + +DELETE { + GRAPH { + ?membership ?p ?o. + } +} +WHERE { + BIND( AS ?organization) + + VALUES ?membershipP { + + + } + + GRAPH { + ?membership a ; + ?membershipP ?organization ; + ?p ?o . + } +} + +; + +DELETE { + GRAPH { + ?organization ?organizationP ?organizationO . + } +} +WHERE { + BIND( AS ?organization) + + GRAPH { + ?organization ?organizationP ?organizationO . + } +}