diff --git a/config/migrations/2023/20231221132600-fix-duplicate-lang-strings.sparql b/config/migrations/2023/20231221132600-fix-duplicate-lang-strings.sparql new file mode 100644 index 0000000..95088fa --- /dev/null +++ b/config/migrations/2023/20231221132600-fix-duplicate-lang-strings.sparql @@ -0,0 +1,16 @@ +DELETE +{ + GRAPH ?g { + ?s ?p ?oLang. + } +} +WHERE { + GRAPH ?g { + ?s ?p ?oLang. + ?s ?p ?o . + } + + BIND(LANG(?oLang) as ?lang) + FILTER(STRLEN(STR(?lang)) > 0) + FILTER(STR(?oLang) = ?o) +} \ No newline at end of file