From 1b2f9d45ac98c5879a95374518ac28532f8c43a0 Mon Sep 17 00:00:00 2001 From: felix Date: Wed, 11 Dec 2024 10:16:50 +0100 Subject: [PATCH] Fix skos:notation ADMS:identifier language tags It seems there were language tagged and non-languaged versions used for the skos:notation from ADMS:identifier. This migrations alings it, we don't want typed strings here. See also DL-6343 --- ...1235-align-skos-notation-identifier.sparql | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 config/migrations/2024/20241211101235-align-skos-notation-identifier.sparql diff --git a/config/migrations/2024/20241211101235-align-skos-notation-identifier.sparql b/config/migrations/2024/20241211101235-align-skos-notation-identifier.sparql new file mode 100644 index 00000000..b8476693 --- /dev/null +++ b/config/migrations/2024/20241211101235-align-skos-notation-identifier.sparql @@ -0,0 +1,20 @@ +DELETE { + GRAPH { + ?s ?notation. + } +} +INSERT { + GRAPH { + ?s ?plainNotation. + } +} +WHERE { + GRAPH { + ?s a ; + ?notation. + } + + BIND(LANG(?notation) as ?lang) + BIND(STR(?notation) as ?plainNotation) + FILTER(?lang != "") +} \ No newline at end of file