From a8607f9c1abcaf90e5e05a756ee2aeceda0742d9 Mon Sep 17 00:00:00 2001 From: mirdono Date: Wed, 3 Apr 2024 13:09:08 +0200 Subject: [PATCH] fix: remove empty alternative names for administrative units --- ...403104506-remove-empty-alternative-names.sparql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 config/migrations/2024/20240403104506-remove-empty-alternative-names.sparql diff --git a/config/migrations/2024/20240403104506-remove-empty-alternative-names.sparql b/config/migrations/2024/20240403104506-remove-empty-alternative-names.sparql new file mode 100644 index 0000000..56ad165 --- /dev/null +++ b/config/migrations/2024/20240403104506-remove-empty-alternative-names.sparql @@ -0,0 +1,14 @@ +PREFIX skos: +PREFIX besluit: + +DELETE { + GRAPH { + ?s skos:altLabel ?alt . + } +} WHERE { + GRAPH { + ?s a besluit:Bestuurseenheid ; + skos:altLabel ?alt . + FILTER (strLen(?alt) = 0) + } +}