added kbo-administrative-unit model

This commit is contained in:
Elias Papanikitas
2024-02-06 11:08:40 +01:00
parent c567c06262
commit 764cfb6f1c
4 changed files with 41 additions and 1 deletions

View File

@@ -76,7 +76,8 @@ defmodule Acl.UserGroups.Config do
"http://lblod.data.gift/vocabularies/organisatie/VeranderingsgebeurtenisResultaat",
"http://www.w3.org/ns/org#Post",
"http://www.w3.org/ns/org#ChangeEvent",
"http://data.lblod.info/vocabularies/contacthub/AgentInPositie"
"http://data.lblod.info/vocabularies/contacthub/AgentInPositie",
"http://mu.semte.ch/vocabularies/ext/KboEenheid",
]
@shared_protected_type [

View File

@@ -219,6 +219,10 @@ defmodule Dispatcher do
Proxy.forward conn, path, "http://cache/decision-activities/"
end
match "/kbo-administrative-units/*path", %{ accept: [:any], layer: :api} do
Proxy.forward conn, path, "http://resource/kbo-administrative-units/"
end
###############
# LOGIN
###############
@@ -313,6 +317,10 @@ defmodule Dispatcher do
forward conn, path, "http://sync-ovo-numbers/sync-from-kbo/"
end
post "/kbo-data-sync/*path", %{ layer: :api_services, accept: %{ json: true } } do
forward conn, path, "http://kbo-data-sync/sync-kbo-data/"
end
get "/ldes/*path", %{ layer: :api_services } do
forward conn, path, "http://ldes-backend/"
end

View File

@@ -521,8 +521,15 @@
"predicate": "skos:exactMatch",
"target": "concepts",
"cardinality": "one"
},
"kbo-administrative-unit": {
"predicate": "owl:sameAs",
"target": "kbo-administrative-units",
"cardinality": "one",
"inverse": true
}
},
"new-resource-base": "http://data.lblod.info/id/bestuurseenheden/"
},
"organization-classification-codes": {
@@ -593,6 +600,21 @@
"super": ["worship-administrative-units"],
"new-resource-base": "http://data.lblod.info/id/centraleBesturenVanDeEredienst/"
},
"kbo-administrative-units": {
"class": "ext:KboEenheid",
"super": ["organizations"],
"relationships": {
"administrative-unit": {
"predicate": "owl:sameAs",
"target": "administrative-units",
"cardinality": "one"
}
},
"new-resource-base": "http://data.lblod.info/id/kboBestuurseenheden/"
},
"representative-bodies": {
"class": "ere:RepresentatiefOrgaan",
"super": ["organizations"],
@@ -813,6 +835,7 @@
"target": "site-types",
"cardinality": "one"
}
},
"new-resource-base": "http://data.lblod.info/id/vestigingen/"
},

View File

@@ -306,6 +306,14 @@ services:
- "logging=true"
restart: always
logging: *default-logging
kbo-data-sync:
image: kbo-data-sync-service:0.0.1
links:
- db:database
labels:
- "logging=true"
restart: always
logging: *default-logging
################################################################################
# DELTA GENERAL