diff --git a/config/authorization/config.ex b/config/authorization/config.ex index 1ba31c2..12f824e 100644 --- a/config/authorization/config.ex +++ b/config/authorization/config.ex @@ -58,6 +58,7 @@ defmodule Acl.UserGroups.Config do @org_type [ "http://purl.org/dc/terms/Agent", "http://www.w3.org/ns/org#Organization", + "http://www.w3.org/ns/regorg#RegisteredOrganization", "http://data.vlaanderen.be/ns/besluit#Besluit", "https://data.vlaanderen.be/ns/besluitvorming#Beslissingsactiviteit", "http://www.w3.org/ns/org#Site", diff --git a/config/dispatcher/dispatcher.ex b/config/dispatcher/dispatcher.ex index 4ef9420..7406d45 100644 --- a/config/dispatcher/dispatcher.ex +++ b/config/dispatcher/dispatcher.ex @@ -80,10 +80,18 @@ defmodule Dispatcher do Proxy.forward conn, path, "http://resource/administrative-units/" end + match "/registered-organizations/*path", %{ accept: [:json], layer: :api} do + Proxy.forward conn, path, "http://cache/registered-organizations/" + end + match "/administrative-unit-classification-codes/*path", %{ accept: [:json], layer: :api} do Proxy.forward conn, path, "http://cache/administrative-unit-classification-codes/" end + match "/registered-organization-classification-codes/*path", %{ accept: [:json], layer: :api} do + Proxy.forward conn, path, "http://cache/registered-organization-classification-codes/" + end + match "/organization-classification-codes/*path", %{ accept: [:json], layer: :api} do Proxy.forward conn, path, "http://cache/organization-classification-codes/" end diff --git a/config/resources/domain.json b/config/resources/domain.json index 7a33825..8bbb947 100644 --- a/config/resources/domain.json +++ b/config/resources/domain.json @@ -487,6 +487,19 @@ }, "new-resource-base": "http://data.lblod.info/id/organisaties/" }, + "registered-organizations": { + "class": "regorg:RegisteredOrganization", + "super": ["organizations"], + "attributes": {}, + "relationships": { + "classification": { + "predicate": "org:classification", + "target": "registered-organization-classification-codes", + "cardinality": "one" + } + }, + "new-resource-base": "http://data.lblod.info/id/geregistreerde-organisaties/" + }, "administrative-units": { "class": "besluit:Bestuurseenheid", "super": ["organizations"], @@ -535,6 +548,11 @@ }, "new-resource-base": "http://data.vlaanderen.be/id/concept/OrganizationClassificationCode/" }, + "registered-organization-classification-codes": { + "class": "ext:GeregistreerdeOrganisatieClassificatieCode", + "super": ["organization-classification-codes"], + "new-resource-base": "http://data.vlaanderen.be/id/concept/GeregistreerdeOrganisatieClassificatieCode/" + }, "administrative-unit-classification-codes": { "class": "code:BestuurseenheidClassificatieCode", "super": ["organization-classification-codes"], diff --git a/config/search/config.json b/config/search/config.json index db8733f..9f71e21 100644 --- a/config/search/config.json +++ b/config/search/config.json @@ -758,6 +758,7 @@ "on_path": "units", "rdf_type": [ "http://data.vlaanderen.be/ns/besluit#Bestuurseenheid", + "http://www.w3.org/ns/regorg#RegisteredOrganization", "http://data.lblod.info/vocabularies/erediensten/EredienstBestuurseenheid", "http://data.lblod.info/vocabularies/erediensten/CentraalBestuurVanDeEredienst", "http://data.lblod.info/vocabularies/erediensten/BestuurVanDeEredienst", diff --git a/config/search/dev/config.json b/config/search/dev/config.json index c58fda3..599b3dc 100644 --- a/config/search/dev/config.json +++ b/config/search/dev/config.json @@ -731,6 +731,7 @@ "on_path": "units", "rdf_type": [ "http://data.vlaanderen.be/ns/besluit#Bestuurseenheid", + "http://www.w3.org/ns/regorg#RegisteredOrganization", "http://data.lblod.info/vocabularies/erediensten/EredienstBestuurseenheid", "http://data.lblod.info/vocabularies/erediensten/CentraalBestuurVanDeEredienst", "http://data.lblod.info/vocabularies/erediensten/BestuurVanDeEredienst",