From e70c112f20f9b101be89e28a28e5e28e6d6db38e Mon Sep 17 00:00:00 2001 From: mirdono Date: Mon, 26 Feb 2024 11:53:43 +0100 Subject: [PATCH] feat: Added migration to copy preferred name to new legal name property --- ...40226102340-copy-name-to-legal-name.sparql | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 config/migrations/2024/20240226102340-copy-name-to-legal-name.sparql diff --git a/config/migrations/2024/20240226102340-copy-name-to-legal-name.sparql b/config/migrations/2024/20240226102340-copy-name-to-legal-name.sparql new file mode 100644 index 0000000..a9901a4 --- /dev/null +++ b/config/migrations/2024/20240226102340-copy-name-to-legal-name.sparql @@ -0,0 +1,25 @@ +PREFIX org: +PREFIX regorg: +PREFIX skos: + +INSERT { + GRAPH { + ?org regorg:legalName ?name . + } +} WHERE { + GRAPH { + ?org a org:Organization ; + skos:prefLabel ?name . + } +} +; +INSERT { + GRAPH { + ?org regorg:legalName ?name . + } +} WHERE { + GRAPH { + ?org a org:Organization ; + skos:prefLabel ?name . + } +}