diff --git a/config/migrations/2024/20240316100500-delete-all-empty-uris.sparql b/config/migrations/2024/20240316100500-delete-all-empty-uris.sparql new file mode 100644 index 0000000..722fc7f --- /dev/null +++ b/config/migrations/2024/20240316100500-delete-all-empty-uris.sparql @@ -0,0 +1,25 @@ +DELETE { + GRAPH ?g { + ?s ?type ; + ?uuid . + } +} +WHERE { + VALUES ?g { + + + + + + } + GRAPH ?g { + ?s ?type ; + ?uuid . + + FILTER NOT EXISTS { + FILTER (?p != ) + FILTER (?p != ) + ?s ?p ?o . + } + } +} diff --git a/config/migrations/2024/20240327131000-delete-all-empty-literals.sparql b/config/migrations/2024/20240327131000-delete-all-empty-literals.sparql new file mode 100644 index 0000000..48a6dfd --- /dev/null +++ b/config/migrations/2024/20240327131000-delete-all-empty-literals.sparql @@ -0,0 +1,20 @@ +DELETE { + GRAPH ?g { + ?s ?p ?o . + } +} +WHERE { + VALUES ?g { + + + + + + } + graph ?g { + ?s ?p ?o + + Filter(?o = " " || ?o = "") + + } +} \ No newline at end of file