From 20bc051103abc4eae31fdef19652298bc315d82f Mon Sep 17 00:00:00 2001 From: felix Date: Thu, 13 Feb 2025 17:37:52 +0100 Subject: [PATCH] Refine migrations --- ...162929-remove-loket-persons-identifiers.sparql | 15 +++++++++++++++ .../20250213162930-remove-loket-persons.sparql | 6 ++++-- .../20250213162933-flush-landing-zone.sparql | 3 ++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162929-remove-loket-persons-identifiers.sparql b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162929-remove-loket-persons-identifiers.sparql index 1a2c892..e8e19bc 100644 --- a/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162929-remove-loket-persons-identifiers.sparql +++ b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162929-remove-loket-persons-identifiers.sparql @@ -37,3 +37,18 @@ DELETE { ?structuredIdentifier ?pstructuredIdentifier ?ostructuredIdentifier . } } + +; + +DELETE { + GRAPH { + ?structuredIdentifier ?pstructuredIdentifier ?ostructuredIdentifier . + } +} WHERE { + + GRAPH { + ?structuredIdentifier a ; + ?pstructuredIdentifier ?ostructuredIdentifier. + } + +} \ No newline at end of file diff --git a/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162930-remove-loket-persons.sparql b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162930-remove-loket-persons.sparql index 668e85c..9c876b6 100644 --- a/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162930-remove-loket-persons.sparql +++ b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162930-remove-loket-persons.sparql @@ -30,7 +30,9 @@ DELETE { } } - GRAPH { - ?person ?pprivate ?oprivate . + OPTIONAL { + GRAPH { + ?person ?pprivate ?oprivate . + } } } diff --git a/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162933-flush-landing-zone.sparql b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162933-flush-landing-zone.sparql index b99b2d7..8588ee0 100644 --- a/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162933-flush-landing-zone.sparql +++ b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162933-flush-landing-zone.sparql @@ -1 +1,2 @@ -CLEAR GRAPH \ No newline at end of file +CLEAR GRAPH ; +CLEAR GRAPH ; \ No newline at end of file