From 432d866b7b510e6864e5ac7d0db636f2c7a9bd4f Mon Sep 17 00:00:00 2001 From: Riad Abdallah Date: Thu, 12 Dec 2024 20:21:09 +0100 Subject: [PATCH 1/2] Remove empty URIs --- ...ove-empty-uris-received-by-kalliope.sparql | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 config/migrations/2024/20241212201809-remove-empty-uris-received-by-kalliope.sparql diff --git a/config/migrations/2024/20241212201809-remove-empty-uris-received-by-kalliope.sparql b/config/migrations/2024/20241212201809-remove-empty-uris-received-by-kalliope.sparql new file mode 100644 index 0000000..7281c50 --- /dev/null +++ b/config/migrations/2024/20241212201809-remove-empty-uris-received-by-kalliope.sparql @@ -0,0 +1,22 @@ +DELETE { + GRAPH ?g { + ?org ?orgP ?orgO . + } +} +WHERE { + VALUES ?org { + + + + + + + + + + } + + GRAPH ?g { + ?org ?orgP ?orgO . + } +} From fd5844c319e180dd7a35c97538818f909a491079 Mon Sep 17 00:00:00 2001 From: felix Date: Fri, 3 Jan 2025 11:53:24 +0100 Subject: [PATCH 2/2] Update migration to remove dangling triple for eenheid. -> This assumes the migration hasn't run on any 'deployed' environment. --- .../20241212201809-remove-empty-uris-received-by-kalliope.sparql | 1 + 1 file changed, 1 insertion(+) diff --git a/config/migrations/2024/20241212201809-remove-empty-uris-received-by-kalliope.sparql b/config/migrations/2024/20241212201809-remove-empty-uris-received-by-kalliope.sparql index 7281c50..7bf7762 100644 --- a/config/migrations/2024/20241212201809-remove-empty-uris-received-by-kalliope.sparql +++ b/config/migrations/2024/20241212201809-remove-empty-uris-received-by-kalliope.sparql @@ -14,6 +14,7 @@ WHERE { + } GRAPH ?g {