diff --git a/config/authorization/config.ex b/config/authorization/config.ex index 30364c4..1dd43ab 100644 --- a/config/authorization/config.ex +++ b/config/authorization/config.ex @@ -186,12 +186,12 @@ defmodule Acl.UserGroups.Config do name: "public", useage: [:read], access: %AlwaysAccessible{}, - graphs: [ + graphs: [ %GraphSpec{ - graph: "http://mu.semte.ch/graphs/public", + graph: "http://mu.semte.ch/graphs/public", constraint: %ResourceConstraint{ resource_types: @public_type - } + } }, %GraphSpec{ graph: "http://mu.semte.ch/graphs/shared", diff --git a/config/delta-producer/public/export.json b/config/delta-producer/public/export.json index 2cbfa05..c298ce4 100644 --- a/config/delta-producer/public/export.json +++ b/config/delta-producer/public/export.json @@ -13,6 +13,7 @@ "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://www.w3.org/ns/adms#identifier", @@ -25,8 +26,6 @@ "http://www.w3.org/ns/org#linkedTo", "http://www.w3.org/ns/org#hasSubOrganization", "http://www.w3.org/ns/org#classification", - "http://data.lblod.info/vocabularies/erediensten/betrokkenBestuur", - "http://mu.semte.ch/vocabularies/ext/werkingsgebiedNiveau", "http://data.lblod.info/vocabularies/erediensten/denominatie", "http://data.lblod.info/vocabularies/erediensten/grensoverschrijdend", "http://data.lblod.info/vocabularies/erediensten/wordtBediendDoor", @@ -45,6 +44,7 @@ "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://www.w3.org/ns/adms#identifier", @@ -57,14 +57,88 @@ "http://www.w3.org/ns/org#linkedTo", "http://www.w3.org/ns/org#hasSubOrganization", "http://www.w3.org/ns/org#classification", - "http://data.lblod.info/vocabularies/erediensten/betrokkenBestuur", - "http://mu.semte.ch/vocabularies/ext/werkingsgebiedNiveau", "http://data.lblod.info/vocabularies/erediensten/typeEredienst" ] }, + { + "type": "http://data.vlaanderen.be/ns/besluit#Bestuurseenheid", + "strictTypeExport": "true", + "graphsFilter": [ + "http://mu.semte.ch/graphs/worship-service", + "http://mu.semte.ch/graphs/shared", + "http://mu.semte.ch/graphs/administrative-unit" + ], + "pathToConceptScheme": [ + "http://www.w3.org/ns/org#classification", + "http://www.w3.org/2004/02/skos/core#inScheme" + ], + "properties": [ + "http://mu.semte.ch/vocabularies/core/uuid", + "http://data.lblod.info/vocabularies/erediensten/betrokkenBestuur", + "http://data.lblod.info/vocabularies/erediensten/denominatie", + "http://data.lblod.info/vocabularies/erediensten/grensoverschrijdend", + "http://data.lblod.info/vocabularies/erediensten/typeEredienst", + "http://data.lblod.info/vocabularies/erediensten/wordtBediendDoor", + "http://data.vlaanderen.be/ns/besluit#werkingsgebied", + "http://www.opengis.net/ont/geosparql#sfWithin", + "http://www.w3.org/2002/07/owl#sameAs", + "http://www.w3.org/2004/02/skos/core#altLabel", + "http://www.w3.org/2004/02/skos/core#prefLabel", + "http://www.w3.org/ns/adms#identifier", + "http://www.w3.org/ns/org#changedBy", + "http://www.w3.org/ns/org#classification", + "http://www.w3.org/ns/org#hasPost", + "http://www.w3.org/ns/org#hasPrimarySite", + "http://www.w3.org/ns/org#hasSite", + "http://www.w3.org/ns/org#hasSubOrganization", + "http://www.w3.org/ns/org#linkedTo", + "http://www.w3.org/ns/org#resultedFrom", + "http://www.w3.org/ns/regorg#orgStatus" + ] + }, + { + "type": "http://data.lblod.info/vocabularies/erediensten/RepresentatiefOrgaan", + "graphsFilter": [ + "http://mu.semte.ch/graphs/shared", + "http://mu.semte.ch/graphs/worship-service" + ], + "properties": [ + "http://mu.semte.ch/vocabularies/core/uuid", + "http://www.w3.org/2004/02/skos/core#prefLabel", + "http://www.w3.org/ns/org#linkedTo", + "http://data.lblod.info/vocabularies/erediensten/typeEredienst", + "http://www.w3.org/ns/adms#identifier" + ] + }, + { + "type": "http://data.lblod.info/vocabularies/erediensten/BetrokkenLokaleBesturen", + "graphsFilter": [ + "http://mu.semte.ch/graphs/shared", + "http://mu.semte.ch/graphs/worship-service" + ], + "properties": [ + "http://mu.semte.ch/vocabularies/core/uuid", + "http://data.lblod.info/vocabularies/erediensten/typebetrokkenheid", + "http://www.w3.org/ns/org#organization", + "http://data.lblod.info/vocabularies/erediensten/financieringspercentage" + ] + }, + { + "type": "http://data.lblod.info/vocabularies/erediensten/PositieBedienaar", + "graphsFilter": [ + "http://mu.semte.ch/graphs/shared", + "http://mu.semte.ch/graphs/worship-service" + ], + "properties": [ + "http://mu.semte.ch/vocabularies/core/uuid", + "http://www.w3.org/ns/org#role", + "http://data.lblod.info/vocabularies/erediensten/functie" + ] + }, { "type": "http://www.w3.org/ns/org#Site", "graphsFilter": [ + "http://mu.semte.ch/graphs/shared", "http://mu.semte.ch/graphs/worship-service", "http://mu.semte.ch/graphs/administrative-unit" ], @@ -74,6 +148,7 @@ "http://www.w3.org/2004/02/skos/core#inScheme" ], "properties": [ + "http://mu.semte.ch/vocabularies/core/uuid", "http://www.w3.org/ns/org#siteAddress", "https://data.vlaanderen.be/ns/organisatie#bestaatUit", "http://data.lblod.info/vocabularies/erediensten/vestigingstype" @@ -82,6 +157,7 @@ { "type": "http://www.w3.org/ns/locn#Address", "graphsFilter": [ + "http://mu.semte.ch/graphs/shared", "http://mu.semte.ch/graphs/worship-service", "http://mu.semte.ch/graphs/administrative-unit" ], @@ -92,6 +168,7 @@ "http://www.w3.org/2004/02/skos/core#inScheme" ], "properties": [ + "http://mu.semte.ch/vocabularies/core/uuid", "https://data.vlaanderen.be/ns/adres#Adresvoorstelling.huisnummer", "https://data.vlaanderen.be/ns/adres#Adresvoorstelling.busnummer", "http://www.w3.org/ns/locn#thoroughfare", @@ -141,6 +218,7 @@ "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#notation", "https://data.vlaanderen.be/ns/generiek#gestructureerdeIdentificator" ] @@ -159,6 +237,7 @@ "http://www.w3.org/2004/02/skos/core#inScheme" ], "properties": [ + "http://mu.semte.ch/vocabularies/core/uuid", "https://data.vlaanderen.be/ns/generiek#lokaleIdentificator" ] }, @@ -171,6 +250,7 @@ "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" ] }, @@ -187,11 +267,36 @@ "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/besluit#bestuurt", "http://www.w3.org/ns/org#classification", - "https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan" + "https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan", + "http://www.w3.org/ns/org#hasPost" + ] + }, + { + "type": "http://data.vlaanderen.be/ns/besluit#Bestuursorgaan", + "strictTypeExport": "true", + "graphsFilter": [ + "http://mu.semte.ch/graphs/shared", + "http://mu.semte.ch/graphs/worship-service", + "http://mu.semte.ch/graphs/administrative-unit" + ], + "pathToConceptScheme": [ + "https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan", + "http://www.w3.org/ns/org#classification", + "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/besluit#bestuurt", + "http://www.w3.org/ns/org#classification", + "https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan", + "http://www.w3.org/ns/org#hasPost" ] }, { @@ -203,6 +308,7 @@ "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" ] }, @@ -215,6 +321,7 @@ "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" ] }, @@ -230,6 +337,7 @@ "http://www.w3.org/2004/02/skos/core#inScheme" ], "properties": [ + "http://mu.semte.ch/vocabularies/core/uuid", "http://purl.org/dc/terms/date", "http://purl.org/dc/terms/description", "http://data.lblod.info/vocabularies/contacthub/typeWijziging", @@ -250,6 +358,7 @@ "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" ] }, @@ -262,6 +371,7 @@ "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" ] }, @@ -274,6 +384,44 @@ "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" + ] + }, + { + "type": "http://data.vlaanderen.be/ns/mandaat#Mandaat", + "graphsFilter": [ + "http://mu.semte.ch/graphs/shared", + "http://mu.semte.ch/graphs/worship-service", + "http://mu.semte.ch/graphs/administrative-unit" + ], + "pathToConceptScheme": [ + "^http://www.w3.org/ns/org#hasPost", + "https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan", + "http://www.w3.org/ns/org#classification", + "http://www.w3.org/2004/02/skos/core#inScheme" + ], + "properties": [ + "http://mu.semte.ch/vocabularies/core/uuid", + "http://www.w3.org/ns/org#role" + ] + }, + { + "type": "http://data.lblod.info/vocabularies/leidinggevenden/Bestuursfunctie", + "graphsFilter": [ + "http://mu.semte.ch/graphs/shared", + "http://mu.semte.ch/graphs/worship-service", + "http://mu.semte.ch/graphs/administrative-unit" + ], + "pathToConceptScheme": [ + "^http://data.lblod.info/vocabularies/leidinggevenden/heeftBestuursfunctie", + "https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan", + "http://www.w3.org/ns/org#classification", + "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://www.w3.org/2004/02/skos/core#prefLabel" ] } diff --git a/config/dispatcher/dispatcher.ex b/config/dispatcher/dispatcher.ex index 6c5f881..c4128ef 100644 --- a/config/dispatcher/dispatcher.ex +++ b/config/dispatcher/dispatcher.ex @@ -354,6 +354,14 @@ defmodule Dispatcher do Proxy.forward conn, path, "http://delta-producer-json-diff-file-publisher-organizations/files/" end + ################################################################# + # DELTA: public + ################################################################# + + get "/sync/public/files/*path" do + Proxy.forward conn, path, "http://delta-producer-json-diff-publisher-public/files/" + end + ################################################################# # DELTA: posts ################################################################# diff --git a/config/migrations/2023/20230228155501-publish-all-bestuurseenheden-in-public.sparql b/config/migrations/2023/20230228155501-publish-all-bestuurseenheden-in-public.sparql new file mode 100644 index 0000000..80314a3 --- /dev/null +++ b/config/migrations/2023/20230228155501-publish-all-bestuurseenheden-in-public.sparql @@ -0,0 +1,20 @@ +INSERT DATA { + GRAPH { + . #Centraal bestuur van de eredienst" + . #Gemeente" + . #Provincie" + . #Bestuur van de eredienst" + . #Autonoom gemeentebedrijf" + . #OCMW vereniging" + . #Hulpverleningszone" + . #Politiezone" + . #Projectvereniging" + . #Opdrachthoudende vereniging" + . #Dienstverlenende vereniging" + . #District" + . #OCMW" + . #Autonoom provinciebedrijf" + } +} + +