From 9b3dd7201bb643b92a92e0e822ec65607010d132 Mon Sep 17 00:00:00 2001 From: felix Date: Mon, 28 Oct 2024 14:50:56 +0100 Subject: [PATCH] update migration --- ...nctionarissen-newly-created-organen.sparql | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/config/migrations/2024/20241028125621-remove-functionarissen-newly-created-organen.sparql b/config/migrations/2024/20241028125621-remove-functionarissen-newly-created-organen.sparql index 257b4eb..ac9e148 100644 --- a/config/migrations/2024/20241028125621-remove-functionarissen-newly-created-organen.sparql +++ b/config/migrations/2024/20241028125621-remove-functionarissen-newly-created-organen.sparql @@ -1,12 +1,12 @@ PREFIX skos: +PREFIX generiek: DELETE { - GRAPH ?g { + GRAPH { ?orgIntijdNew ?orgIntijdNewP ?orgIntijdNewO. ?bestuursfunctie ?bestuursfunctieP ?bestuursfunctieO. } } - WHERE { VALUES ?class { # "Adjunct-algemeen directeur" @@ -18,18 +18,19 @@ WHERE { # Griffier } - ?s a ; - ?class. + GRAPH { - ?orgIntijdOld ?s; - ?old. + ?s a ; + ?class. - ?orgIntijdNew ?s; - ?new. + ?orgIntijdOld generiek:isTijdspecialisatieVan ?s; + ?old. + + ?orgIntijdNew generiek:isTijdspecialisatieVan ?s; + ?new. FILTER(?new > ?old) - GRAPH ?g { ?orgIntijdNew ?orgIntijdNewP ?orgIntijdNewO. ?orgIntijdNew ?bestuursfunctie. ?bestuursfunctie ?bestuursfunctieP ?bestuursfunctieO.