From 13bca4bab45eb8d14b4dd1dc0acbf399f0928f5e Mon Sep 17 00:00:00 2001 From: Miroslav Blasko Date: Fri, 10 Jan 2025 10:02:15 +0100 Subject: [PATCH] [#250] Add migration script to move entity from default to Person context --- ...person-from-default-to-separate-context.ru | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 deploy/shared/db-server/import/record-manager-app/migration/person-from-default-to-separate-context.ru diff --git a/deploy/shared/db-server/import/record-manager-app/migration/person-from-default-to-separate-context.ru b/deploy/shared/db-server/import/record-manager-app/migration/person-from-default-to-separate-context.ru new file mode 100644 index 0000000..40b9b96 --- /dev/null +++ b/deploy/shared/db-server/import/record-manager-app/migration/person-from-default-to-separate-context.ru @@ -0,0 +1,20 @@ +PREFIX foaf: < + +DELETE { + ?a ?p ?o . +} +INSERT { + GRAPH foaf:Person { + ?a ?p ?o . + } +} +WHERE { + ?a ?p ?o . + ?a a foaf:Person . + + MINUS { + GRAPH ?g { + ?a ?p ?o . + } + } +}