From d017d1b0e34d09c945eb6020cb5a4c913e8e1710 Mon Sep 17 00:00:00 2001 From: Claire Lovisa Date: Tue, 25 Mar 2025 13:58:06 +0100 Subject: [PATCH 1/3] Produce NIS codes in public producer --- config/delta-producer/public/export.json | 25 +++++++++++++++++++ ...roducer-concept-scheme-to-nis-codes.sparql | 15 +++++++++++ 2 files changed, 40 insertions(+) create mode 100644 config/migrations/2025/20250325131100-add-public-producer-concept-scheme-to-nis-codes.sparql diff --git a/config/delta-producer/public/export.json b/config/delta-producer/public/export.json index f721ce9..a98df14 100644 --- a/config/delta-producer/public/export.json +++ b/config/delta-producer/public/export.json @@ -564,6 +564,31 @@ "http://www.opengis.net/ont/geosparql#sfWithin", "http://www.w3.org/2004/02/skos/core#exactMatch" ] + }, + { + "type": "http://www.w3.org/2004/02/skos/core#Concept", + "graphsFilter": [ + "http://mu.semte.ch/graphs/public" + ], + "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#altLabel", + "http://www.w3.org/2004/02/skos/core#broadMatch", + "http://www.w3.org/2004/02/skos/core#broader", + "http://www.w3.org/2004/02/skos/core#exactMatch", + "http://www.w3.org/2004/02/skos/core#inScheme", + "http://www.w3.org/2004/02/skos/core#narrowMatch", + "http://www.w3.org/2004/02/skos/core#narrower", + "http://www.w3.org/2004/02/skos/core#notation", + "http://www.w3.org/2004/02/skos/core#prefLabel", + "http://www.w3.org/2004/02/skos/core#relatedMatch", + "http://www.w3.org/2004/02/skos/core#topConceptOf", + "https://schema.org/endDate", + "https://schema.org/startDate" + ] } ] } diff --git a/config/migrations/2025/20250325131100-add-public-producer-concept-scheme-to-nis-codes.sparql b/config/migrations/2025/20250325131100-add-public-producer-concept-scheme-to-nis-codes.sparql new file mode 100644 index 0000000..4a8e371 --- /dev/null +++ b/config/migrations/2025/20250325131100-add-public-producer-concept-scheme-to-nis-codes.sparql @@ -0,0 +1,15 @@ +INSERT { + GRAPH { + ?s skos:inScheme . + } +} WHERE { + GRAPH { + VALUES ?nisScheme { + + + } + + ?s a ; + ?nisScheme . + } +} From d5c8f699b1d1134f06de2332dd54316dbf547295 Mon Sep 17 00:00:00 2001 From: Claire Lovisa Date: Tue, 25 Mar 2025 14:05:37 +0100 Subject: [PATCH 2/3] Update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3b6f4f..3af5c10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,12 +10,14 @@ - Set up the dashboard app [OP-3103] - Datafix: correct date of change event of kerkfabriek st petrus [OP-3555] - Update OCMWv to VVMW [OP-3565] and back. It's technically a nil-operation. But you should run the migrations nevertheless. +- Extend the public producer to include NIS codes [CLBV-980] ### Deploy notes ``` drc restart migrations-triggering-indexing drc restart migrations; drc logs -ft --tail=200 migrations drc pull frontend; drc up -d frontend drc up -d mandatarissen-consumer leidinggevenden-consumer worship-services-main-info-consumer worship-services-private-info-consumer +drc restart delta-producer-publication-graph-maintainer ``` #### For upgrade databases [This README](https://github.com/Riadabd/upgrade-virtuoso) provides the necessary steps for upgrading the database. **NOTE**: This will involve shutting down the app for small period of time (around 30 minutes). From 262fe8924832cbd5339985570ceb3d2801222e8c Mon Sep 17 00:00:00 2001 From: Claire Lovisa Date: Wed, 26 Mar 2025 11:00:41 +0100 Subject: [PATCH 3/3] Produce countries in public producer --- config/delta-producer/public/export.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/delta-producer/public/export.json b/config/delta-producer/public/export.json index a98df14..d103b55 100644 --- a/config/delta-producer/public/export.json +++ b/config/delta-producer/public/export.json @@ -589,6 +589,16 @@ "https://schema.org/endDate", "https://schema.org/startDate" ] + }, + { + "type": "http://publications.europa.eu/ontology/euvoc#Country", + "graphsFilter": [ + "http://mu.semte.ch/graphs/public" + ], + "properties": [ + "http://www.w3.org/2004/02/skos/core#prefLabel", + "http://www.w3.org/2000/01/rdf-schema#label" + ] } ] }