diff --git a/config/authorization/config.ex b/config/authorization/config.ex index e99ed52..fb10aaa 100644 --- a/config/authorization/config.ex +++ b/config/authorization/config.ex @@ -10,6 +10,7 @@ defmodule Acl.UserGroups.Config do @protected_resource_type [ "http://www.w3.org/ns/org#Organization", "http://data.vlaanderen.be/ns/besluit#Besluit", + "https://data.vlaanderen.be/ns/besluitvorming#Beslissingsactiviteit", "http://data.vlaanderen.be/ns/besluit#Bestuurseenheid", "http://data.lblod.info/vocabularies/erediensten/BestuurVanDeEredienst", "http://data.vlaanderen.be/ns/besluit#Bestuursorgaan", diff --git a/config/dispatcher/dispatcher.ex b/config/dispatcher/dispatcher.ex index b155a18..88d8395 100644 --- a/config/dispatcher/dispatcher.ex +++ b/config/dispatcher/dispatcher.ex @@ -195,6 +195,9 @@ defmodule Dispatcher do Proxy.forward conn, path, "http://cache/decisions/" end + match "/decision-activities/*path", %{ accept: [:json], layer: :api} do + Proxy.forward conn, path, "http://cache/decision-activities/" + end ############### # LOGIN diff --git a/config/resources/change-events.json b/config/resources/change-events.json index 2ac99e5..1ed1021 100644 --- a/config/resources/change-events.json +++ b/config/resources/change-events.json @@ -98,7 +98,32 @@ "predicate": "foaf:page" } }, + "relationships": { + "has-decision-activity": { + "predicate": "http://www.w3.org/ns/prov#generated", + "target": "decision-activities", + "cardinality": "one", + "inverse": true + } + }, "new-resource-base": "http://lblod.data.info/id/besluiten/" + }, + "decision-activities": { + "class": "https://data.vlaanderen.be/ns/besluitvorming#Beslissingsactiviteit", + "attributes": { + "end-date": { + "type": "date", + "predicate": "https://data.vlaanderen.be/ns/dossier#Activiteit.einddatum" + } + }, + "relationships": { + "gives-cause-to": { + "predicate": "http://www.w3.org/ns/prov#generated", + "target": "decisions", + "cardinality": "many" + } + }, + "new-resource-base": "http://lblod.data.info/id/beslissingsactiviteit/" } } }