diff --git a/config/migrations/2023/20231017131126-remove-empty-bestuurseenheden.sparql b/config/migrations/2023/20231017131126-remove-empty-bestuurseenheden.sparql new file mode 100644 index 0000000..6d15f15 --- /dev/null +++ b/config/migrations/2023/20231017131126-remove-empty-bestuurseenheden.sparql @@ -0,0 +1,16 @@ +DELETE { + GRAPH ?h { + ?s ?p ?o . + } +} WHERE { + GRAPH ?g { + ?s a ; + ?p ?o . + + FILTER NOT EXISTS { + ?s ?np ?no . + FILTER (?np NOT IN (, ) ) + } + } + BIND(?g as ?h) +}