diff --git a/config/migrations/2024/20240903164444-remove-duplicate-uri-for-ibeg.sparql b/config/migrations/2024/20240903164444-remove-duplicate-uri-for-ibeg.sparql new file mode 100644 index 0000000..7974cec --- /dev/null +++ b/config/migrations/2024/20240903164444-remove-duplicate-uri-for-ibeg.sparql @@ -0,0 +1,91 @@ +# Delete old bestuursorganen + +DELETE { + GRAPH ?g { + ?bestuursorganen ?p ?o . + } +} +WHERE { + VALUES ?bestuursorganen { + + + + + + } + + GRAPH ?g { + ?bestuursorganen ?p ?o . + } +} + +; + +# Remove associated properties for one of the bestuursorganen in tijd + +DELETE { + GRAPH ?g { + ?post ?p ?o . + } +} +WHERE { + VALUES ?bestuursorgaanInTijd { + + } + + GRAPH ?g { + ?bestuursorgaanInTijd ?post . + ?post ?p ?o . + } +} + +; + +# Delete old bestuursorganen in tijd + +DELETE { + GRAPH ?g { + ?bestuursorgaanInTijd ?p ?o . + } +} +WHERE { + VALUES ?bestuursorgaanInTijd { + + + + + + } + + GRAPH ?g { + ?bestuursorgaanInTijd ?p ?o . + } +} + +; + +# Remove wrong URI + reverse properties + +DELETE { + GRAPH ?g { + ?p ?o . + } +} +WHERE { + GRAPH ?g { + ?p ?o . + } +} + +; + +DELETE { + GRAPH ?g { + ?s ?p . + } +} +WHERE { + GRAPH ?g { + ?s ?p . + } +}