From 366aad9fe5bf2e9959fa96d9d5ff7f8deb3b3f91 Mon Sep 17 00:00:00 2001 From: mirdono Date: Wed, 21 May 2025 11:47:20 +0200 Subject: [PATCH] fix: move lingering location triples from shared to public graph The `shared` graph still contains some location triples introduced as part of the municipality mergers. They were overlooked by the original cleanup migrations because the `prov:Location` and `ext:werkingsgebiedNiveau` triples were located in the `administrative-unit` graph, causing the `WHERE` clause to not match these triples. --- ...ation-triples-from-shared-to-public.sparql | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 config/migrations/2025/20250430130307-chore--cleanup-werkingsgebieden-data/20250521102551-fix--move-location-triples-from-shared-to-public.sparql diff --git a/config/migrations/2025/20250430130307-chore--cleanup-werkingsgebieden-data/20250521102551-fix--move-location-triples-from-shared-to-public.sparql b/config/migrations/2025/20250430130307-chore--cleanup-werkingsgebieden-data/20250521102551-fix--move-location-triples-from-shared-to-public.sparql new file mode 100644 index 0000000..27adefb --- /dev/null +++ b/config/migrations/2025/20250430130307-chore--cleanup-werkingsgebieden-data/20250521102551-fix--move-location-triples-from-shared-to-public.sparql @@ -0,0 +1,24 @@ +PREFIX geo: +PREFIX skos: +PREFIX prov: + +DELETE { + GRAPH { + ?s ?p ?o . + } +} INSERT { + GRAPH { + ?s ?p ?o . + } +} WHERE { + GRAPH { + ?s ?p ?o . + VALUES ?p { + geo:sfWithin + skos:exactMatch + } + } + GRAPH { + ?s a prov:Location . + } +}