From 046ff4f9fb639c3ab02ff4ced874835c2d792954 Mon Sep 17 00:00:00 2001 From: Claire Lovisa Date: Tue, 7 Mar 2023 16:21:23 +0100 Subject: [PATCH] Fix posts producer --- .../delta-producer/worship-posts/export.json | 66 +++++++++++++++---- 1 file changed, 55 insertions(+), 11 deletions(-) diff --git a/config/delta-producer/worship-posts/export.json b/config/delta-producer/worship-posts/export.json index 384e44c..a43e54b 100644 --- a/config/delta-producer/worship-posts/export.json +++ b/config/delta-producer/worship-posts/export.json @@ -10,7 +10,7 @@ "http://mu.semte.ch/vocabularies/core/uuid", "http://www.w3.org/ns/org#role" ], - "additionalFilter": "?orgaan ?subject ; / ?bestuurseenheid . ?bestuurseenheid a ?type. FILTER (?type IN (, ))" + "additionalFilter": "} GRAPH ?h { ?orgaan ?subject ; / ?bestuurseenheid . ?bestuurseenheid a ?type. FILTER (?type IN (, ))" }, { "type": "http://data.lblod.info/vocabularies/erediensten/BestuurVanDeEredienst", @@ -24,7 +24,6 @@ "http://www.w3.org/2004/02/skos/core#altLabel", "http://www.w3.org/ns/regorg#orgStatus", "http://data.lblod.info/vocabularies/erediensten/typeEredienst", - "http://data.vlaanderen.be/ns/besluit#werkingsgebied", "http://www.w3.org/ns/org#classification", "http://data.lblod.info/vocabularies/erediensten/wordtBediendDoor", "http://www.w3.org/ns/org#hasPrimarySite", @@ -43,7 +42,6 @@ "http://www.w3.org/2004/02/skos/core#altLabel", "http://www.w3.org/ns/regorg#orgStatus", "http://data.lblod.info/vocabularies/erediensten/typeEredienst", - "http://data.vlaanderen.be/ns/besluit#werkingsgebied", "http://www.w3.org/ns/org#classification", "http://www.w3.org/ns/org#hasPrimarySite", "http://www.w3.org/ns/org#hasSite" @@ -59,13 +57,10 @@ "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://www.w3.org/ns/regorg#orgStatus", - "http://data.vlaanderen.be/ns/besluit#werkingsgebied", "http://www.w3.org/ns/org#classification", - "http://www.w3.org/ns/org#hasPrimarySite", - "http://www.w3.org/ns/org#hasSite" + "http://www.w3.org/ns/adms#identifier" ], - "additionalFilter": "?subject ?bestuurClassification . FILTER (?bestuurClassification IN (, ))" + "additionalFilter": "} GRAPH ?h { ?subject ?bestuurClassification . FILTER (?bestuurClassification IN (, ))" }, { "type": "http://data.vlaanderen.be/ns/besluit#Bestuurseenheid", @@ -92,7 +87,7 @@ "https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan", "http://www.w3.org/ns/org#hasPost" ], - "additionalFilter": "?subject (//)|(/) ?bestuurClassification . FILTER (?bestuurClassification IN (, , , ))" + "additionalFilter": "} GRAPH ?h { ?subject (//)|(/) ?bestuurClassification . FILTER (?bestuurClassification IN (, , , ))" }, { "type": "http://data.lblod.info/vocabularies/erediensten/PositieBedienaar", @@ -132,9 +127,58 @@ "http://www.w3.org/ns/org#hasPrimarySite", "http://www.w3.org/ns/org#hasSite", "http://www.w3.org/ns/org#linkedTo", - "http://data.lblod.info/vocabularies/erediensten/typeEredienst" + "http://data.lblod.info/vocabularies/erediensten/typeEredienst", + "http://www.w3.org/ns/adms#identifier" ] }, + { + "type": "http://www.w3.org/ns/adms#Identifier", + "graphsFilter": [ + "http://mu.semte.ch/graphs/administrative-unit", + "http://mu.semte.ch/graphs/shared" + ], + "properties": [ + "http://mu.semte.ch/vocabularies/core/uuid", + "http://www.w3.org/2004/02/skos/core#notation", + "https://data.vlaanderen.be/ns/generiek#gestructureerdeIdentificator" + ], + "additionalFilter": "} GRAPH ?h { ?bestuur ?subject ; ?bestuurClassification . FILTER (?bestuurClassification IN (, ))" + }, + { + "type": "https://data.vlaanderen.be/ns/generiek#GestructureerdeIdentificator", + "graphsFilter": [ + "http://mu.semte.ch/graphs/administrative-unit", + "http://mu.semte.ch/graphs/shared" + ], + "properties": [ + "http://mu.semte.ch/vocabularies/core/uuid", + "https://data.vlaanderen.be/ns/generiek#lokaleIdentificator" + ], + "additionalFilter": "} GRAPH ?h { ?bestuur ?id ; ?bestuurClassification . FILTER (?bestuurClassification IN (, )) . ?id ?subject ." + }, + { + "type": "http://www.w3.org/ns/adms#Identifier", + "graphsFilter": [ + "http://mu.semte.ch/graphs/worship-service" + ], + "properties": [ + "http://mu.semte.ch/vocabularies/core/uuid", + "http://www.w3.org/2004/02/skos/core#notation", + "https://data.vlaanderen.be/ns/generiek#gestructureerdeIdentificator" + ], + "additionalFilter": "} GRAPH ?h { ?bestuur ?subject . ?bestuur a ." + }, + { + "type": "https://data.vlaanderen.be/ns/generiek#GestructureerdeIdentificator", + "graphsFilter": [ + "http://mu.semte.ch/graphs/worship-service" + ], + "properties": [ + "http://mu.semte.ch/vocabularies/core/uuid", + "https://data.vlaanderen.be/ns/generiek#lokaleIdentificator" + ], + "additionalFilter": "} GRAPH ?h { ?bestuur ?id . ?bestuur a . ?id ?subject ." + }, { "type": "http://www.w3.org/ns/org#Site", "graphsFilter": [ @@ -163,7 +207,7 @@ "http://www.w3.org/ns/locn#adminUnitL2", "http://www.w3.org/ns/locn#fullAddress" ], - "additionalFilter": "?subject ^ ?site. ?site a ." + "additionalFilter": "} GRAPH ?h { ?subject ^ ?site. ?site a ." }, { "type": "http://lblod.data.gift/vocabularies/organisatie/BestuurseenheidClassificatieCode",