From fc443fa19be0465d77cc1830ca9d6f4fa1513fba Mon Sep 17 00:00:00 2001 From: Nordine Bittich <3816305+nbittich@users.noreply.github.com> Date: Tue, 7 Mar 2023 13:28:56 +0100 Subject: [PATCH] move kbo to worships (#252) --- .../20230307125956-move-identifiers.sparql | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 config/migrations/2023/20230307125956-move-identifiers.sparql diff --git a/config/migrations/2023/20230307125956-move-identifiers.sparql b/config/migrations/2023/20230307125956-move-identifiers.sparql new file mode 100644 index 0000000..120c565 --- /dev/null +++ b/config/migrations/2023/20230307125956-move-identifiers.sparql @@ -0,0 +1,37 @@ +PREFIX regorg: +PREFIX lblodOrg: +PREFIX adms: +PREFIX mu: +PREFIX generiek: + +DELETE { + GRAPH { + + ?identifier generiek:gestructureerdeIdentificator ?structuredIdentifier; + ?p ?o. + ?structuredIdentifier ?sp ?so. + + } +} INSERT { + GRAPH { + + ?identifier generiek:gestructureerdeIdentificator ?structuredIdentifier; + ?p ?o. + ?structuredIdentifier ?sp ?so. + + } +} WHERE { + GRAPH { + + ?identifier generiek:gestructureerdeIdentificator ?structuredIdentifier; + ?p ?o. + ?structuredIdentifier ?sp ?so. + filter exists { + GRAPH { + ?org adms:identifier ?identifier. + + } + } + + } +}