diff --git a/config/dispatcher/dispatcher.ex b/config/dispatcher/dispatcher.ex index d04b9ea..3e6b2ca 100644 --- a/config/dispatcher/dispatcher.ex +++ b/config/dispatcher/dispatcher.ex @@ -153,6 +153,12 @@ defmodule Dispatcher do Proxy.forward conn, path, "http://resource/gender-codes/" end + match "/site-types/*path", %{ accept: [:json], layer: :api} do + Proxy.forward conn, path, "http://resource/site-types/" + end + + + ############################################################### # sparql endpoint ############################################################### diff --git a/config/resources/domain.json b/config/resources/domain.json index 662f86d..d2f245d 100644 --- a/config/resources/domain.json +++ b/config/resources/domain.json @@ -618,6 +618,11 @@ "predicate": "organisatie:bestaatUit", "target": "addresses", "cardinality": "one" + }, + "site-type": { + "predicate": "ere:vestigingstype", + "target": "site-types", + "cardinality": "one" } }, "new-resource-base": "http://data.lblod.info/id/vestigingen/" @@ -846,6 +851,16 @@ } }, "new-resource-base": "http://lblod.data.gift/concepts/" + }, + "site-types": { + "class": "code:TypeVestiging", + "attributes": { + "label": { + "type": "string", + "predicate": "skos:prefLabel" + } + }, + "new-resource-base": "http://lblod.data.gift/concepts/" } } } \ No newline at end of file