From 50ca6d66fa8b678ffbcc943a3d2aa89f8ab33383 Mon Sep 17 00:00:00 2001 From: benjay10 Date: Fri, 21 Feb 2025 05:17:16 +0100 Subject: [PATCH 1/5] Migration: remove OP public data from publication store --- ...triples-in-favour-of-op-public-sync.sparql | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 config/migrations-publication-triplestore/2025/20250221050000-flush-leidingevenden-triples-in-favour-of-op-public-sync.sparql diff --git a/config/migrations-publication-triplestore/2025/20250221050000-flush-leidingevenden-triples-in-favour-of-op-public-sync.sparql b/config/migrations-publication-triplestore/2025/20250221050000-flush-leidingevenden-triples-in-favour-of-op-public-sync.sparql new file mode 100644 index 00000000..bff6f727 --- /dev/null +++ b/config/migrations-publication-triplestore/2025/20250221050000-flush-leidingevenden-triples-in-favour-of-op-public-sync.sparql @@ -0,0 +1,60 @@ +PREFIX rdf: + +DELETE { + GRAPH { + ?s ?p ?o . + } +} +WHERE { + GRAPH { + VALUES ?type { + + + + } + ?s + rfd:type ?type ; + ?p ?o . + } +} + +; + +DELETE { + GRAPH { + ?s ?p ?o . + } +} +WHERE { + GRAPH { + ?s + rfd:type ; + ?p ?o . + + FILTER (?p NOT IN ( + , + + )) + } +} + +; + +DELETE { + GRAPH { + ?s ?p ?o . + } +} +WHERE { + GRAPH { + ?s + rfd:type ; + ?p ?o . + + FILTER (?p NOT IN ( + , + + )) + } +} + From 7eaf58111ee0e557d24055437ba4be23cec81984 Mon Sep 17 00:00:00 2001 From: benjay10 Date: Fri, 21 Feb 2025 05:18:23 +0100 Subject: [PATCH 2/5] Prune leidingevenden export Leidingevenden app will get their own OP-public-consumer to get all this data. --- .../leidinggevenden/export.json | 87 +------------------ 1 file changed, 1 insertion(+), 86 deletions(-) diff --git a/config/delta-producer/leidinggevenden/export.json b/config/delta-producer/leidinggevenden/export.json index 01ef350a..979fe337 100644 --- a/config/delta-producer/leidinggevenden/export.json +++ b/config/delta-producer/leidinggevenden/export.json @@ -20,51 +20,6 @@ "locn": "http://www.w3.org/ns/locn#" }, "export": [ - { - "type": "http://mu.semte.ch/vocabularies/ext/BestuurseenheidClassificatieCode", - "graphsFilter": [ "http://mu.semte.ch/graphs/public" ], - "hasRegexGraphsFilter": false, - "pathToConceptScheme": [ - "http://www.w3.org/2004/02/skos/core#inScheme" - ], - "properties": [ - "http://mu.semte.ch/vocabularies/core/uuid", - "http://www.w3.org/2004/02/skos/core#prefLabel", - "http://www.w3.org/2004/02/skos/core#scopeNote" - ] - }, - { - "type": "http://data.vlaanderen.be/ns/besluit#Bestuurseenheid", - "graphsFilter": [ "http://mu.semte.ch/graphs/public" ], - "hasRegexGraphsFilter": false, - "pathToConceptScheme": [ - "http://data.vlaanderen.be/ns/besluit#classificatie", - "http://www.w3.org/2004/02/skos/core#inScheme" - ], - "properties": [ - "http://mu.semte.ch/vocabularies/core/uuid", - "http://www.w3.org/2004/02/skos/core#prefLabel", - "http://www.w3.org/2004/02/skos/core#altLabel", - "http://data.vlaanderen.be/ns/besluit#werkingsgebied", - "http://data.vlaanderen.be/ns/besluit#classificatie" - ] - }, - { - "type": "http://data.vlaanderen.be/ns/besluit#Bestuursorgaan", - "graphsFilter": [ "http://mu.semte.ch/graphs/public" ], - "hasRegexGraphsFilter": false, - "pathToConceptScheme": [ - "http://data.vlaanderen.be/ns/besluit#bestuurt", - "http://data.vlaanderen.be/ns/besluit#classificatie", - "http://www.w3.org/2004/02/skos/core#inScheme" - ], - "properties": [ - "http://mu.semte.ch/vocabularies/core/uuid", - "http://www.w3.org/2004/02/skos/core#prefLabel", - "http://data.vlaanderen.be/ns/besluit#bestuurt", - "http://data.vlaanderen.be/ns/besluit#classificatie" - ] - }, { "type": "http://data.vlaanderen.be/ns/besluit#Bestuursorgaan", "graphsFilter": [ "http://mu.semte.ch/graphs/public" ], @@ -76,46 +31,9 @@ "http://www.w3.org/2004/02/skos/core#inScheme" ], "properties": [ - "http://mu.semte.ch/vocabularies/core/uuid", - "http://data.vlaanderen.be/ns/mandaat#bindingEinde", - "http://data.vlaanderen.be/ns/mandaat#bindingStart", - "http://data.vlaanderen.be/ns/mandaat#isTijdspecialisatieVan", "http://data.lblod.info/vocabularies/leidinggevenden/heeftBestuursfunctie" ] }, - { - "type": "http://mu.semte.ch/vocabularies/ext/BestuursorgaanClassificatieCode", - "graphsFilter": [ "http://mu.semte.ch/graphs/public" ], - "hasRegexGraphsFilter": false, - "pathToConceptScheme": [ - "^http://data.vlaanderen.be/ns/besluit#classificatie", - "http://data.vlaanderen.be/ns/besluit#bestuurt", - "http://data.vlaanderen.be/ns/besluit#classificatie", - "http://www.w3.org/2004/02/skos/core#inScheme" - ], - "properties": [ - "http://mu.semte.ch/vocabularies/core/uuid", - "http://www.w3.org/2004/02/skos/core#prefLabel", - "http://www.w3.org/2004/02/skos/core#scopeNote" - ] - }, - { - "type": "http://mu.semte.ch/vocabularies/ext/BestuursorgaanClassificatieCode", - "graphsFilter": [ "http://mu.semte.ch/graphs/public" ], - "hasRegexGraphsFilter": false, - "pathToConceptScheme": [ - "^http://data.vlaanderen.be/ns/besluit#classificatie", - "http://data.vlaanderen.be/ns/mandaat#isTijdspecialisatieVan", - "http://data.vlaanderen.be/ns/besluit#bestuurt", - "http://data.vlaanderen.be/ns/besluit#classificatie", - "http://www.w3.org/2004/02/skos/core#inScheme" - ], - "properties": [ - "http://mu.semte.ch/vocabularies/core/uuid", - "http://www.w3.org/2004/02/skos/core#prefLabel", - "http://www.w3.org/2004/02/skos/core#scopeNote" - ] - }, { "type": "http://schema.org/ContactPoint", "graphsFilter": [ "http://mu.semte.ch/graphs/organizations/.*/LoketLB-leidinggevendenGebruiker" ], @@ -179,10 +97,7 @@ "http://www.w3.org/2004/02/skos/core#inScheme" ], "properties": [ - "http://mu.semte.ch/vocabularies/core/uuid", - "http://www.w3.org/ns/org#role", - "http://schema.org/contactPoint", - "http://www.w3.org/2004/02/skos/core#prefLabel" + "http://schema.org/contactPoint" ] }, { From 01a717e2207e6e629783bf5fe4c6b41f3eaaebef Mon Sep 17 00:00:00 2001 From: benjay10 Date: Fri, 21 Feb 2025 05:20:37 +0100 Subject: [PATCH 3/5] CHANGELOG: add leidingevenden producer comments --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 45ed9b99..97318ffb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - Repair old cross referencing submissions from CKB's. These predate the cross referencing feature. [DL-6415] - Add migration that removes three older, broken EredienstMandatarissen pointing to non-existing people and contact points [DL-5662] - Update mandatarissen producer to stop producing what OP produces [DL-6210] +- Update leidinggevenden producer to stop producing what OP produces [DL-6449] ### Deploy instructions @@ -54,7 +55,7 @@ drc logs --tail 1000 -f prepare-submissions-for-export - `drc restart report-generation` -**For the updated mandatarissen producer configuration** +**For the updated mandatarissen and leidingevenden producer configuration** - `drc restart migrations-publication-triplestore delta-producer-publication-graph-maintainer` From abaf4d0681a73352ff96ad7d99892468f739659c Mon Sep 17 00:00:00 2001 From: felix Date: Mon, 24 Feb 2025 13:33:30 +0100 Subject: [PATCH 4/5] Fix typo --- ...eidingevenden-triples-in-favour-of-op-public-sync.sparql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/migrations-publication-triplestore/2025/20250221050000-flush-leidingevenden-triples-in-favour-of-op-public-sync.sparql b/config/migrations-publication-triplestore/2025/20250221050000-flush-leidingevenden-triples-in-favour-of-op-public-sync.sparql index bff6f727..a468e37f 100644 --- a/config/migrations-publication-triplestore/2025/20250221050000-flush-leidingevenden-triples-in-favour-of-op-public-sync.sparql +++ b/config/migrations-publication-triplestore/2025/20250221050000-flush-leidingevenden-triples-in-favour-of-op-public-sync.sparql @@ -13,7 +13,7 @@ WHERE { } ?s - rfd:type ?type ; + rdf:type ?type ; ?p ?o . } } @@ -28,7 +28,7 @@ DELETE { WHERE { GRAPH { ?s - rfd:type ; + rdf:type ; ?p ?o . FILTER (?p NOT IN ( @@ -48,7 +48,7 @@ DELETE { WHERE { GRAPH { ?s - rfd:type ; + rdf:type ; ?p ?o . FILTER (?p NOT IN ( From f51c4ee1a1b5693b93bde6903cae24c9ab5009b6 Mon Sep 17 00:00:00 2001 From: felix Date: Mon, 24 Feb 2025 13:35:02 +0100 Subject: [PATCH 5/5] update typo --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97318ffb..2a8854ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -55,7 +55,7 @@ drc logs --tail 1000 -f prepare-submissions-for-export - `drc restart report-generation` -**For the updated mandatarissen and leidingevenden producer configuration** +**For the updated mandatarissen and leidinggevenden producer configuration** - `drc restart migrations-publication-triplestore delta-producer-publication-graph-maintainer`