From 974a966576f61eac4db6bc1795a04f84f02d6d2d Mon Sep 17 00:00:00 2001 From: Riad Abdallah Date: Tue, 3 Sep 2024 16:53:40 +0200 Subject: [PATCH] Remove duplicate URI for IBEG --- ...64444-remove-duplicate-uri-for-ibeg.sparql | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 config/migrations/2024/20240903164444-remove-duplicate-uri-for-ibeg.sparql 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..ccd2b67 --- /dev/null +++ b/config/migrations/2024/20240903164444-remove-duplicate-uri-for-ibeg.sparql @@ -0,0 +1,71 @@ +# Delete old bestuursorganen + +DELETE { + GRAPH ?g { + ?bestuursorganen ?p ?o . + } +} +WHERE { + VALUES ?bestuursorganen { + + + + + + } + + GRAPH ?g { + ?bestuursorganen ?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 . + } +}