From 7ebe086e257d4d7b05df6738a6804caf17caea35 Mon Sep 17 00:00:00 2001 From: anitacaron Date: Fri, 9 Jul 2021 17:59:26 +0100 Subject: [PATCH 1/2] Fix typo --- config/resources/domain.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/resources/domain.json b/config/resources/domain.json index 1a7b050..662f86d 100644 --- a/config/resources/domain.json +++ b/config/resources/domain.json @@ -416,7 +416,7 @@ }, "cross-border": { "type": "boolean", - "predicate": "ere:grensoverscheidend" + "predicate": "ere:grensoverschrijdend" } }, "relationships": { From a861d56056c8347049711c0e7fbc2a8c8113a126 Mon Sep 17 00:00:00 2001 From: anitacaron Date: Fri, 9 Jul 2021 18:32:10 +0100 Subject: [PATCH 2/2] Add site type to site resource --- config/dispatcher/dispatcher.ex | 6 ++++++ config/resources/domain.json | 15 +++++++++++++++ 2 files changed, 21 insertions(+) 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