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 . + } +}