diff --git a/config/dispatcher/dispatcher.ex b/config/dispatcher/dispatcher.ex index 26526ed..08d57ee 100644 --- a/config/dispatcher/dispatcher.ex +++ b/config/dispatcher/dispatcher.ex @@ -159,6 +159,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/2021110315263111111111111111-source-crab.sparql b/config/migrations/2021110315263111111111111111-source-crab.sparql new file mode 100644 index 0000000..e715fd0 --- /dev/null +++ b/config/migrations/2021110315263111111111111111-source-crab.sparql @@ -0,0 +1,13 @@ +INSERT DATA { + GRAPH { + a ; + "Data sources"@en, "Databronnen"@nl . + a ; + ; + ; + "e59c97a9-4e95-4d65-9696-756de47fbc1f"; + "Centraal Referentieadressenbestand (CRAB)"; + "CRAB". + } +} + diff --git a/config/resources/domain.json b/config/resources/domain.json index 02eb662..73cf2ef 100644 --- a/config/resources/domain.json +++ b/config/resources/domain.json @@ -611,6 +611,18 @@ "full-address": { "type": "string", "predicate": "locn:fullAddress" + }, + "address-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/" @@ -679,6 +691,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": {