Add site type to site resource
This commit is contained in:
@@ -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
|
||||
###############################################################
|
||||
|
||||
@@ -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/"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user