From 974a966576f61eac4db6bc1795a04f84f02d6d2d Mon Sep 17 00:00:00 2001 From: Riad Abdallah Date: Tue, 3 Sep 2024 16:53:40 +0200 Subject: [PATCH 1/2] 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 . + } +} From e755d615fc9789d7bc29fb767cc0421a64379039 Mon Sep 17 00:00:00 2001 From: Riad Abdallah Date: Wed, 4 Sep 2024 11:30:13 +0200 Subject: [PATCH 2/2] Remove properties attached to bestuursorgaan in tijd --- ...64444-remove-duplicate-uri-for-ibeg.sparql | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/config/migrations/2024/20240903164444-remove-duplicate-uri-for-ibeg.sparql b/config/migrations/2024/20240903164444-remove-duplicate-uri-for-ibeg.sparql index ccd2b67..7974cec 100644 --- a/config/migrations/2024/20240903164444-remove-duplicate-uri-for-ibeg.sparql +++ b/config/migrations/2024/20240903164444-remove-duplicate-uri-for-ibeg.sparql @@ -21,6 +21,26 @@ WHERE { ; +# 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 {