Files
app-organization-portal/config/migrations/2024/20240202175007-fix-duplicate-lang-strings.sparql
Alexander van den Berghe dbb80aba03 Fix: reduce resource usage by migrations
* Renamed migrations

* Limit queries to specific graphs and move filters up
2024-02-05 10:56:08 +00:00

22 lines
362 B
SPARQL

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 {
<http://mu.semte.ch/graphs/public>
<http://mu.semte.ch/graphs/worship-service>
<http://mu.semte.ch/graphs/administrative-unit>
}
}