Feature/non admin units (#342)
This commit is contained in:
@@ -84,6 +84,10 @@ defmodule Dispatcher do
|
||||
Proxy.forward conn, path, "http://cache/administrative-unit-classification-codes/"
|
||||
end
|
||||
|
||||
match "/organization-classification-codes/*path", %{ accept: [:json], layer: :api} do
|
||||
Proxy.forward conn, path, "http://cache/organization-classification-codes/"
|
||||
end
|
||||
|
||||
match "/worship-administrative-units/*path", %{ accept: [:json], layer: :api} do
|
||||
Proxy.forward conn, path, "http://resource/worship-administrative-units/"
|
||||
end
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
prefix skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX org: <http://www.w3.org/ns/org#>
|
||||
PREFIX ere: <http://data.lblod.info/vocabularies/erediensten/>
|
||||
|
||||
insert data {
|
||||
graph <http://mu.semte.ch/graphs/public> {
|
||||
|
||||
<http://data.vlaanderen.be/id/concept/RepresentatiefOrgaanClassificatieCode/89a00b5a-024f-4630-a722-65a5e68967e5>
|
||||
rdf:type <http://mu.semte.ch/vocabularies/ext/RepresentatieveOrgaanClassificatieCode> , skos:Concept ;
|
||||
<http://mu.semte.ch/vocabularies/core/uuid> "89a00b5a-024f-4630-a722-65a5e68967e5" ;
|
||||
skos:topConceptOf <https://data.vlaanderen.be/id/conceptscheme/RepresentatiefOrgaanClassificatieCode> ;
|
||||
skos:prefLabel "Representatief orgaan" ;
|
||||
skos:inScheme <https://data.vlaanderen.be/id/conceptscheme/RepresentatiefOrgaanClassificatieCode> .
|
||||
}
|
||||
}
|
||||
|
||||
;
|
||||
|
||||
|
||||
INSERT {
|
||||
graph <http://mu.semte.ch/graphs/worship-service> {
|
||||
|
||||
?representativeBody org:classification <http://data.vlaanderen.be/id/concept/RepresentatiefOrgaanClassificatieCode/89a00b5a-024f-4630-a722-65a5e68967e5>.
|
||||
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
graph <http://mu.semte.ch/graphs/worship-service> {
|
||||
|
||||
?representativeBody a ere:RepresentatiefOrgaan.
|
||||
FILTER NOT EXISTS {
|
||||
?representativeBody org:classification ?classification.
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
prefix skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX org: <http://www.w3.org/ns/org#>
|
||||
PREFIX ere: <http://data.lblod.info/vocabularies/erediensten/>
|
||||
|
||||
|
||||
|
||||
INSERT {
|
||||
graph ?g {
|
||||
|
||||
?code a <http://mu.semte.ch/vocabularies/ext/OrganizationClassificationCode>.
|
||||
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
graph ?g {
|
||||
|
||||
?code a ?type.
|
||||
filter (?type in (<http://mu.semte.ch/vocabularies/ext/RepresentatieveOrgaanClassificatieCode>,
|
||||
<http://lblod.data.gift/vocabularies/organisatie/BestuurseenheidClassificatieCode>))
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -528,14 +528,21 @@
|
||||
},
|
||||
"new-resource-base": "http://data.lblod.info/id/bestuurseenheden/"
|
||||
},
|
||||
"administrative-unit-classification-codes": {
|
||||
"class": "code:BestuurseenheidClassificatieCode",
|
||||
"organization-classification-codes": {
|
||||
"class": "ext:OrganizationClassificationCode",
|
||||
"attributes": {
|
||||
"label": {
|
||||
"type": "string",
|
||||
"predicate": "skos:prefLabel"
|
||||
}
|
||||
},
|
||||
"new-resource-base": "http://data.vlaanderen.be/id/concept/OrganizationClassificationCode/"
|
||||
},
|
||||
"administrative-unit-classification-codes": {
|
||||
"class": "code:BestuurseenheidClassificatieCode",
|
||||
"super": [
|
||||
"organization-classification-codes"
|
||||
],
|
||||
"new-resource-base": "http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/"
|
||||
},
|
||||
"worship-administrative-units": {
|
||||
@@ -603,6 +610,11 @@
|
||||
"organizations"
|
||||
],
|
||||
"relationships": {
|
||||
"classification": {
|
||||
"predicate": "org:classification",
|
||||
"target": "representative-body-classification-codes",
|
||||
"cardinality": "one"
|
||||
},
|
||||
"recognized-worship-type": {
|
||||
"predicate": "ere:typeEredienst",
|
||||
"target": "recognized-worship-types",
|
||||
@@ -617,6 +629,13 @@
|
||||
},
|
||||
"new-resource-base": "http://data.lblod.info/id/representatieveOrganen/"
|
||||
},
|
||||
"representative-body-classification-codes": {
|
||||
"class": "ext:RepresentatiefOrgaanClassificatieCode",
|
||||
"super": [
|
||||
"organization-classification-codes"
|
||||
],
|
||||
"new-resource-base": "http://data.vlaanderen.be/id/concept/RepresentatiefOrgaanClassificatieCode/"
|
||||
},
|
||||
"governing-bodies": {
|
||||
"class": "besluit:Bestuursorgaan",
|
||||
"attributes": {
|
||||
@@ -1061,4 +1080,4 @@
|
||||
"new-resource-base": "http://data.relance.lblod.info/id/nace-bel/"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -760,7 +760,8 @@
|
||||
"http://data.vlaanderen.be/ns/besluit#Bestuurseenheid",
|
||||
"http://data.lblod.info/vocabularies/erediensten/EredienstBestuurseenheid",
|
||||
"http://data.lblod.info/vocabularies/erediensten/CentraalBestuurVanDeEredienst",
|
||||
"http://data.lblod.info/vocabularies/erediensten/BestuurVanDeEredienst"
|
||||
"http://data.lblod.info/vocabularies/erediensten/BestuurVanDeEredienst",
|
||||
"http://data.lblod.info/vocabularies/erediensten/RepresentatiefOrgaan"
|
||||
],
|
||||
"properties": {
|
||||
"name": "http://www.w3.org/2004/02/skos/core#prefLabel",
|
||||
|
||||
@@ -733,7 +733,8 @@
|
||||
"http://data.vlaanderen.be/ns/besluit#Bestuurseenheid",
|
||||
"http://data.lblod.info/vocabularies/erediensten/EredienstBestuurseenheid",
|
||||
"http://data.lblod.info/vocabularies/erediensten/CentraalBestuurVanDeEredienst",
|
||||
"http://data.lblod.info/vocabularies/erediensten/BestuurVanDeEredienst"
|
||||
"http://data.lblod.info/vocabularies/erediensten/BestuurVanDeEredienst",
|
||||
"http://data.lblod.info/vocabularies/erediensten/RepresentatiefOrgaan"
|
||||
],
|
||||
"properties": {
|
||||
"name": "http://www.w3.org/2004/02/skos/core#prefLabel",
|
||||
|
||||
Reference in New Issue
Block a user