From 52bc6e5d6065d8eeee4a45d9a2214896ddea04c1 Mon Sep 17 00:00:00 2001 From: Nordine Bittich Date: Wed, 3 Nov 2021 10:48:12 +0100 Subject: [PATCH] changes for crab --- config/dispatcher/dispatcher.ex | 3 +++ .../migrations/20211103152631-source-crab.ttl | 8 ++++++ config/resources/domain.json | 26 +++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 config/migrations/20211103152631-source-crab.ttl diff --git a/config/dispatcher/dispatcher.ex b/config/dispatcher/dispatcher.ex index 1b4c4f8..2be7f36 100644 --- a/config/dispatcher/dispatcher.ex +++ b/config/dispatcher/dispatcher.ex @@ -162,6 +162,9 @@ defmodule Dispatcher do match "/gender-codes/*path", %{ accept: [:json], layer: :api} do Proxy.forward conn, path, "http://cache/gender-codes/" end + match "/concepts/*path", %{ accept: [:json], layer: :api} do + Proxy.forward conn, path, "http://cache/concepts/" + end match "/minister-positions/*path", %{ accept: [:json], layer: :api} do Proxy.forward conn, path, "http://cache/minister-positions/" diff --git a/config/migrations/20211103152631-source-crab.ttl b/config/migrations/20211103152631-source-crab.ttl new file mode 100644 index 0000000..bd806cd --- /dev/null +++ b/config/migrations/20211103152631-source-crab.ttl @@ -0,0 +1,8 @@ + a ; + "Data sources"@en, "Databronnen"@nl . + a ; + ; +; + "e59c97a9-4e95-4d65-9696-756de47fbc1f"; + "Centraal Referentieadressenbestand (CRAB)"; + "CRAB". \ No newline at end of file diff --git a/config/resources/domain.json b/config/resources/domain.json index 6ff1654..19d62a4 100644 --- a/config/resources/domain.json +++ b/config/resources/domain.json @@ -616,6 +616,18 @@ "full-address": { "type": "string", "predicate": "locn:fullAddress" + }, + "adres-register-uri": { + "type": "url", + "predicate": "adres:verwijstNaar" + } + + }, + "relationships": { + "source": { + "predicate": "dct:source", + "target": "concepts", + "cardinality": "one" } }, "new-resource-base": "http://data.lblod.info/id/adressen/" @@ -684,6 +696,20 @@ }, "new-resource-base": "http://lblod.data.gift/concepts/" }, + "concepts": { + "class": "skos:Concept", + "attributes": { + "label": { + "type": "string", + "predicate": "skos:prefLabel" + }, + "alt-label": { + "type": "string", + "predicate": "skos:altLabel" + } + }, + "new-resource-base": "http://lblod.data.gift/concepts/" + }, "organization-status-codes": { "class": "code:OrganisatieStatusCode", "attributes": {