Merge branch 'development' into poc/add-gemeenten
This commit is contained in:
20
config/migrations/2022/202206131O4623-normalize-space.sparql
Normal file
20
config/migrations/2022/202206131O4623-normalize-space.sparql
Normal file
@@ -0,0 +1,20 @@
|
||||
DELETE {
|
||||
graph <http://mu.semte.ch/graphs/organisatieportaal> {
|
||||
?s ?p ?o.
|
||||
}
|
||||
|
||||
}
|
||||
INSERT {
|
||||
graph <http://mu.semte.ch/graphs/organisatieportaal> {
|
||||
?s ?p ?normalize.
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
graph <http://mu.semte.ch/graphs/organisatieportaal> {
|
||||
?s ?p ?o.
|
||||
BIND(replace(?o, "\\s+|\\t", " ") AS ?single_space)
|
||||
BIND(replace(?single_space, "^(\\s+)|(\\s+)$|(\\t)$|(\\t)", "") AS ?normalize)
|
||||
|
||||
FILTER ( isLiteral(?o) && ( regex(?o, "\\s+|\\t") || regex(?o, "^(\\s+)|(\\s+)$|(\\t)$|(\\t)") ) )
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
|
||||
# OP-1520 & OP-1529 - OP-1519 & OP-1518
|
||||
|
||||
prefix org: <http://www.w3.org/ns/org#>
|
||||
prefix ere: <http://data.lblod.info/vocabularies/erediensten/>
|
||||
prefix skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
|
||||
delete where {
|
||||
|
||||
graph <http://mu.semte.ch/graphs/organisatieportaal> {
|
||||
|
||||
?involvement a ere:BetrokkenLokaleBesturen;
|
||||
org:organization ?worshipService;
|
||||
ere:typebetrokkenheid ?typebetrokkenheid.
|
||||
|
||||
?betrokkenBestuur ere:betrokkenBestuur ?involvement.
|
||||
?involvement ?p ?o.
|
||||
|
||||
filter (?typebetrokkenheid = <http://lblod.data.gift/concepts/86fcbbbff764f1cba4c7e10dbbae578e> &&
|
||||
(?worshipService = <http://data.lblod.info/id/besturenVanDeEredienst/1f3b446da13c8ebd75ee52ac7746c53a>
|
||||
|| ?worshipService = <http://data.lblod.info/id/besturenVanDeEredienst/f99035f2eca9a50996e719c445d2cfd2>
|
||||
|| ?worshipService = <http://data.lblod.info/id/besturenVanDeEredienst/0277a5125962d8d5f0f00606d200be9a>
|
||||
|| ?worshipService = <http://data.lblod.info/id/besturenVanDeEredienst/9222f5c5557cb2ca0c07873fbaf02da7>
|
||||
|| ?worshipService = <http://data.lblod.info/id/besturenVanDeEredienst/8d4c1066736ac9be7886d273b86751b8>
|
||||
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
|
||||
# OP-1565
|
||||
|
||||
prefix skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
|
||||
delete {
|
||||
graph <http://mu.semte.ch/graphs/organisatieportaal>{
|
||||
<http://lblod.data.gift/concepts/ac400cc9f135ac7873fb3e551ec738c1> skos:prefLabel ?prefLabel1.
|
||||
<http://lblod.data.gift/concepts/86fcbbbff764f1cba4c7e10dbbae578e> skos:prefLabel ?prefLabel2.
|
||||
<http://lblod.data.gift/concepts/0f845f00ee76099c89518cbaf6a7b77f> skos:prefLabel ?prefLabel3.
|
||||
}
|
||||
|
||||
}insert {
|
||||
graph <http://mu.semte.ch/graphs/organisatieportaal>{
|
||||
<http://lblod.data.gift/concepts/ac400cc9f135ac7873fb3e551ec738c1> skos:prefLabel "Toezichthoudend".
|
||||
<http://lblod.data.gift/concepts/86fcbbbff764f1cba4c7e10dbbae578e> skos:prefLabel "Mede-financierend".
|
||||
<http://lblod.data.gift/concepts/0f845f00ee76099c89518cbaf6a7b77f> skos:prefLabel "Adviserend".
|
||||
}
|
||||
|
||||
}where {
|
||||
graph <http://mu.semte.ch/graphs/organisatieportaal>{
|
||||
<http://lblod.data.gift/concepts/ac400cc9f135ac7873fb3e551ec738c1> skos:prefLabel ?prefLabel1.
|
||||
<http://lblod.data.gift/concepts/86fcbbbff764f1cba4c7e10dbbae578e> skos:prefLabel ?prefLabel2.
|
||||
<http://lblod.data.gift/concepts/0f845f00ee76099c89518cbaf6a7b77f> skos:prefLabel ?prefLabel3.
|
||||
}
|
||||
}
|
||||
69
config/migrations/2022/20220719112423-update-toezicht.sparql
Normal file
69
config/migrations/2022/20220719112423-update-toezicht.sparql
Normal file
@@ -0,0 +1,69 @@
|
||||
PREFIX org: <http://www.w3.org/ns/org#>
|
||||
PREFIX locn: <http://www.w3.org/ns/locn#>
|
||||
PREFIX schema: <http://schema.org/>
|
||||
PREFIX regorg: <http://www.w3.org/ns/regorg#>
|
||||
PREFIX person: <http://www.w3.org/ns/person#>
|
||||
PREFIX vcard: <http://www.w3.org/2006/vcard/ns#>
|
||||
PREFIX dbpedia: <http://dbpedia.org/ontology/>
|
||||
PREFIX adms: <http://www.w3.org/ns/adms#>
|
||||
PREFIX euro: <http://data.europa.eu/m8g/>
|
||||
PREFIX prov: <http://www.w3.org/ns/prov#>
|
||||
PREFIX organisatie: <https://data.vlaanderen.be/ns/organisatie#>
|
||||
PREFIX persoon: <https://data.vlaanderen.be/ns/persoon#>
|
||||
PREFIX adres: <https://data.vlaanderen.be/ns/adres#>
|
||||
PREFIX generiek: <https://data.vlaanderen.be/ns/generiek#>
|
||||
PREFIX mandaat: <http://data.vlaanderen.be/ns/mandaat#>
|
||||
PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
|
||||
PREFIX lblodlg: <https://data.lblod.info/vocabularies/leidinggevenden/>
|
||||
PREFIX dc_terms: <http://purl.org/dc/terms/>
|
||||
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX euvoc: <http://publications.europa.eu/ontology/euvoc#>
|
||||
PREFIX ere: <http://data.lblod.info/vocabularies/erediensten/>
|
||||
PREFIX ch: <http://data.lblod.info/vocabularies/contacthub/>
|
||||
PREFIX code: <http://lblod.data.gift/vocabularies/organisatie/>
|
||||
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX adres: <https://data.vlaanderen.be/ns/adres#>
|
||||
|
||||
DELETE { GRAPH <http://mu.semte.ch/graphs/organisatieportaal> { ?betrokkenheid ere:typebetrokkenheid <http://lblod.data.gift/concepts/ac400cc9f135ac7873fb3e551ec738c1>. } }
|
||||
INSERT { GRAPH <http://mu.semte.ch/graphs/organisatieportaal> { ?betrokkenheid ere:typebetrokkenheid <http://lblod.data.gift/concepts/86fcbbbff764f1cba4c7e10dbbae578e>. } }
|
||||
WHERE {
|
||||
GRAPH <http://mu.semte.ch/graphs/organisatieportaal> {
|
||||
{
|
||||
SELECT DISTINCT ?bestuur ?label ?typeEredienst ?provincie ?municipality ?betrokkenheidCount WHERE {
|
||||
{
|
||||
SELECT ?bestuur (COUNT(DISTINCT ?betrokkenheid) AS ?betrokkenheidCount) WHERE {
|
||||
?bestuur rdf:type ?type.
|
||||
FILTER(?type IN(ere:CentraalBestuurVanDeEredienst, ere:BestuurVanDeEredienst))
|
||||
?betrokkenheid org:organization ?bestuur;
|
||||
ere:typebetrokkenheid <http://lblod.data.gift/concepts/ac400cc9f135ac7873fb3e551ec738c1>;
|
||||
rdf:type ere:BetrokkenLokaleBesturen.
|
||||
}
|
||||
GROUP BY ?bestuur
|
||||
HAVING ((COUNT(DISTINCT ?betrokkenheid)) > 1 )
|
||||
ORDER BY DESC (?betrokkenheidCount)
|
||||
}
|
||||
OPTIONAL { ?bestuur skos:prefLabel ?label. }
|
||||
OPTIONAL {
|
||||
?bestuur ere:typeEredienst ?typeEredienstUri.
|
||||
OPTIONAL { ?typeEredienstUri skos:prefLabel ?typeEredienst. }
|
||||
}
|
||||
OPTIONAL {
|
||||
?bestuur org:hasPrimarySite ?primarySite.
|
||||
OPTIONAL {
|
||||
?primarySite organisatie:bestaatUit ?sa.
|
||||
OPTIONAL { ?sa locn:adminUnitL2 ?provincie. }
|
||||
OPTIONAL { ?sa adres:gemeentenaam ?municipality. }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
?betrokkenheid org:organization ?bestuur;
|
||||
ere:typebetrokkenheid <http://lblod.data.gift/concepts/ac400cc9f135ac7873fb3e551ec738c1>;
|
||||
rdf:type ere:BetrokkenLokaleBesturen.
|
||||
?administrativeUnit ere:betrokkenBestuur ?betrokkenheid.
|
||||
OPTIONAL { ?administrativeUnit skos:prefLabel ?administrativeUnitLabel. }
|
||||
FILTER(?administrativeUnitLabel != ?municipality)
|
||||
}
|
||||
}
|
||||
@@ -158,7 +158,7 @@ services:
|
||||
restart: always
|
||||
logging: *default-logging
|
||||
frontend:
|
||||
image: lblod/frontend-organization-portal:1.9.0-4
|
||||
image: lblod/frontend-organization-portal:1.10.0-2
|
||||
volumes:
|
||||
- ./config/frontend/add-x-frame-options-header.conf:/config/add-x-frame-options.conf
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user