diff --git a/config/migrations/2023/20231221132600-fix-duplicate-lang-strings.sparql b/config/migrations/2023/20231221132600-fix-duplicate-lang-strings.sparql deleted file mode 100644 index 95088fa..0000000 --- a/config/migrations/2023/20231221132600-fix-duplicate-lang-strings.sparql +++ /dev/null @@ -1,16 +0,0 @@ -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 diff --git a/config/migrations/2024/20240202175007-fix-duplicate-lang-strings.sparql b/config/migrations/2024/20240202175007-fix-duplicate-lang-strings.sparql new file mode 100644 index 0000000..019e43c --- /dev/null +++ b/config/migrations/2024/20240202175007-fix-duplicate-lang-strings.sparql @@ -0,0 +1,21 @@ +DELETE { + GRAPH ?g { + ?s ?p ?oLang. + } +} WHERE { + GRAPH ?g { + ?s ?p ?oLang. + + BIND(LANG(?oLang) as ?lang) + FILTER(STRLEN(STR(?lang)) > 0) + + ?s ?p ?o . + FILTER(STR(?oLang) = ?o) + } + + VALUES ?g { + + + + } +} diff --git a/config/migrations/2023/20230919113001-boolean-datatype.sparql b/config/migrations/2024/20240202175023-boolean-datatype.sparql similarity index 66% rename from config/migrations/2023/20230919113001-boolean-datatype.sparql rename to config/migrations/2024/20240202175023-boolean-datatype.sparql index 2f71ead..7df369d 100644 --- a/config/migrations/2023/20230919113001-boolean-datatype.sparql +++ b/config/migrations/2024/20240202175023-boolean-datatype.sparql @@ -14,4 +14,10 @@ DELETE { FILTER (datatype(?o) = ) BIND (STRDT(STR(?o), xsd:boolean) AS ?newLiteral) } -} \ No newline at end of file + + VALUES ?g { + + + + } +}