From 2eea02673be496e5bff4f07f6ba9c776d9054043 Mon Sep 17 00:00:00 2001 From: Panos Alexopoulos Date: Fri, 24 Oct 2025 14:04:32 +0200 Subject: [PATCH] Debugged cleanup query and added entry to changelog --- CHANGELOG.md | 8 ++++++++ ...7-cleanup-deduplicate-municipalities-and-provinces.ttl | 5 +---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c12c199..a96cf6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.37.0 (2025-10-24) +- Added cleanup job to clean duplicated data of municipalities and provinces [OP-3676] + +#### CLI +``` +drc exec db-cleanup curl -X GET "http://localhost/runCronJob?cronJobID=8ffd9f11-db25-430d-a66a-31fc8b393d5f" +``` + ## 1.36.0 (2025-10-03) ### Dashboard - Enable ACM/IDM for the dashboard [OP-3674] diff --git a/config/migrations/2025/20251024093007-cleanup-deduplicate-municipalities-and-provinces.ttl b/config/migrations/2025/20251024093007-cleanup-deduplicate-municipalities-and-provinces.ttl index e541d45..27f9b14 100644 --- a/config/migrations/2025/20251024093007-cleanup-deduplicate-municipalities-and-provinces.ttl +++ b/config/migrations/2025/20251024093007-cleanup-deduplicate-municipalities-and-provinces.ttl @@ -4,7 +4,7 @@ a cleanup:Job ; mu:uuid "8ffd9f11-db25-430d-a66a-31fc8b393d5f" ; - dcterms:title "Insert missing province uris for addresses of administrative units" ; + dcterms:title "Cleaning duplicated data of municipalities and provinces" ; cleanup:randomQuery """ PREFIX besluit: @@ -20,7 +20,6 @@ } { - # Subject is a Bestuurseenheid GRAPH ?g1 { ?s a besluit:Bestuurseenheid ; ?p ?o . @@ -34,7 +33,6 @@ } UNION { - # Object is a Bestuurseenheid GRAPH ?g1 { ?s ?p ?o . ?o a besluit:Bestuurseenheid . @@ -47,7 +45,6 @@ } } } - ORDER BY ?s ?p ?o """ .