Merge pull request #16 from lblod/feat/vestiging-type

Add site type to site resource
This commit is contained in:
Sam Van Campenhout
2021-07-09 20:32:28 +02:00
committed by GitHub
2 changed files with 21 additions and 0 deletions

View File

@@ -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
###############################################################

View File

@@ -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/"
}
}
}