Compare commits
36 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f6fe8ac87d | ||
|
|
7defbf9009 | ||
|
|
5f1bfe96c7 | ||
|
|
d2ec188373 | ||
|
|
9515aec9ad | ||
|
|
d4cd0d5cbd | ||
|
|
6036b030c1 | ||
|
|
d3420cf935 | ||
|
|
f2a65697db | ||
|
|
f279c1dba5 | ||
|
|
d0d3440338 | ||
|
|
6c0619d45c | ||
|
|
8b8b192bbd | ||
|
|
bde4180168 | ||
|
|
f04ebf5723 | ||
|
|
addd4304f6 | ||
|
|
ba5bdac6cb | ||
|
|
366aad9fe5 | ||
|
|
01c5c7e7b3 | ||
|
|
73a494cd73 | ||
|
|
73e6c2c60c | ||
|
|
6cc9acd4cd | ||
|
|
34244b699b | ||
|
|
0f4173fd1a | ||
|
|
5dfa7e4676 | ||
|
|
927e370aa6 | ||
|
|
2f06135cf9 | ||
|
|
c6b74f6a1c | ||
|
|
706b7fa525 | ||
|
|
8ca23d5515 | ||
|
|
e712fa8fc8 | ||
|
|
225e31d845 | ||
|
|
a26abc8523 | ||
|
|
9591cd3603 | ||
|
|
85c307216c | ||
|
|
e9327a4357 |
53
CHANGELOG.md
53
CHANGELOG.md
@@ -1,4 +1,57 @@
|
||||
# Changelog
|
||||
## Unreleased
|
||||
|
||||
## v1.33.0 (2025-06-05)
|
||||
### Frontend
|
||||
- Bump to version [v1.32.0](https://github.com/lblod/frontend-organization-portal/releases/tag/v1.32.0)
|
||||
### Backend
|
||||
- datafix: move memberships involving provinces and municipalities to shared graph [OP-3619]
|
||||
### Deploy notes
|
||||
```
|
||||
drc restart migrations; drc logs -ft --tail=200 migrations
|
||||
drc exec db-cleanup curl -X POST "http://localhost/cleanup"
|
||||
drc pull frontend; drc up -d frontend
|
||||
```
|
||||
|
||||
## v1.32.1 (2025-06-02)
|
||||
### Backend
|
||||
- Added Kabinet Crevits as bestuurseenheid. [DL-6655]
|
||||
### Deploy Notes
|
||||
```
|
||||
drc restart migrations;
|
||||
drc exec delta-producer-background-jobs-initiator curl -X POST http://localhost/public/healing-jobs
|
||||
```
|
||||
|
||||
## v1.32.0 (2025-05-23)
|
||||
### Frontend
|
||||
- Bump to version [v1.31.0](https://github.com/lblod/frontend-organization-portal/releases/tag/v1.31.0)
|
||||
### Backend
|
||||
- Fix KBO statuses not being displayed [OP-3584]
|
||||
- datafix: update NIS2019 end dates and link additional NIS2025 to werkingsgebieden [part of OP-3566]
|
||||
- datafix: correct date of change event of ckb olen [OP-3594]
|
||||
- datafix: move memberships from shared to administrative unit graph
|
||||
- datafix: cleanup werkingsgbieden data [OP-3566]
|
||||
+ Move werkingsgebieden to public graph
|
||||
+ Link district werkingsgebieden to Antwerp municipality werkingsgebied
|
||||
+ Add missing werkingsgebied for Borsbeek district
|
||||
- Write migration to extract from existing primary sites the province URI [OP-3597]
|
||||
- datafix: update status kerkfabriek weelde [OP-3598]
|
||||
- datafix: delete change event and update status protestantse kerk oostende [OP-3604]
|
||||
- datafix: update change event date islamic assocation [OP-3602]
|
||||
### Deploy Notes
|
||||
```
|
||||
drc pull frontend; drc up -d frontend
|
||||
drc restart migrations; drc logs -ft --tail=200 migrations
|
||||
drc restart migrations-triggering-indexing && drc logs -ft --tail=200 migrations-triggering-indexing
|
||||
drc up -d kbo-data-sync
|
||||
drc exec kbo-data-sync curl -X POST http://localhost/sync-all-kbo-data
|
||||
|
||||
drc restart delta-producer-publication-graph-maintainer
|
||||
drc exec delta-producer-background-jobs-initiator curl -X POST http://localhost/public/healing-jobs # or wait until nightly healing kicks in
|
||||
drc exec delta-producer-background-jobs-initiator curl -X POST http://localhost/organizations/healing-jobs # or wait until nightly healing kicks in
|
||||
drc exec db-cleanup curl -X POST "http://localhost/cleanup"
|
||||
```
|
||||
|
||||
## v1.31.3 (2025-05-08)
|
||||
### Backend
|
||||
- Migrate active organizations linked to inactive CKB to the active one. [DL-6604]
|
||||
|
||||
@@ -336,6 +336,7 @@
|
||||
"http://www.w3.org/ns/locn#postCode",
|
||||
"https://data.vlaanderen.be/ns/adres#gemeentenaam",
|
||||
"http://www.w3.org/ns/locn#adminUnitL2",
|
||||
"https://data.vlaanderen.be/ns/adres#adresIsGelegenIn",
|
||||
"https://data.vlaanderen.be/ns/adres#land",
|
||||
"http://www.w3.org/ns/locn#fullAddress",
|
||||
"https://data.vlaanderen.be/ns/adres#verwijstNaar",
|
||||
@@ -389,7 +390,7 @@
|
||||
{
|
||||
"type": "http://www.w3.org/ns/prov#Location",
|
||||
"graphsFilter": [
|
||||
"http://mu.semte.ch/graphs/shared"
|
||||
"http://mu.semte.ch/graphs/public"
|
||||
],
|
||||
"properties": [
|
||||
"http://www.w3.org/2000/01/rdf-schema#label",
|
||||
|
||||
@@ -252,6 +252,7 @@
|
||||
"http://www.w3.org/ns/locn#postCode",
|
||||
"https://data.vlaanderen.be/ns/adres#gemeentenaam",
|
||||
"http://www.w3.org/ns/locn#adminUnitL2",
|
||||
"https://data.vlaanderen.be/ns/adres#adresIsGelegenIn",
|
||||
"https://data.vlaanderen.be/ns/adres#land",
|
||||
"http://www.w3.org/ns/locn#fullAddress",
|
||||
"https://data.vlaanderen.be/ns/adres#verwijstNaar",
|
||||
@@ -279,6 +280,7 @@
|
||||
"http://www.w3.org/ns/locn#postCode",
|
||||
"https://data.vlaanderen.be/ns/adres#gemeentenaam",
|
||||
"http://www.w3.org/ns/locn#adminUnitL2",
|
||||
"https://data.vlaanderen.be/ns/adres#adresIsGelegenIn",
|
||||
"https://data.vlaanderen.be/ns/adres#land",
|
||||
"http://www.w3.org/ns/locn#fullAddress",
|
||||
"https://data.vlaanderen.be/ns/adres#verwijstNaar",
|
||||
@@ -628,8 +630,7 @@
|
||||
{
|
||||
"type": "http://www.w3.org/ns/prov#Location",
|
||||
"graphsFilter": [
|
||||
"http://mu.semte.ch/graphs/shared",
|
||||
"http://mu.semte.ch/graphs/administrative-unit"
|
||||
"http://mu.semte.ch/graphs/public"
|
||||
],
|
||||
"hasRegexGraphsFilter": false,
|
||||
"properties": [
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
PREFIX regorg: <http://www.w3.org/ns/regorg#>
|
||||
|
||||
DELETE {
|
||||
GRAPH <http://mu.semte.ch/graphs/worship-service> {
|
||||
?s regorg:orgStatus ?activeStatus.
|
||||
}
|
||||
} INSERT {
|
||||
GRAPH <http://mu.semte.ch/graphs/worship-service> {
|
||||
?s regorg:orgStatus ?notActiveStatus.
|
||||
}
|
||||
} WHERE {
|
||||
VALUES ?s {
|
||||
<http://data.lblod.info/id/besturenVanDeEredienst/b1dbb9effdedef39bc4f0c8d96197cfd>
|
||||
}
|
||||
BIND (<http://lblod.data.gift/concepts/d02c4e12bf88d2fdf5123b07f29c9311> AS ?notActiveStatus)
|
||||
BIND (<http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6> AS ?activeStatus)
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
PREFIX regorg: <http://www.w3.org/ns/regorg#>
|
||||
|
||||
DELETE {
|
||||
GRAPH <http://mu.semte.ch/graphs/worship-service> {
|
||||
?s regorg:orgStatus ?notActiveStatus.
|
||||
}
|
||||
} INSERT {
|
||||
GRAPH <http://mu.semte.ch/graphs/worship-service> {
|
||||
?s regorg:orgStatus ?activeStatus.
|
||||
}
|
||||
} WHERE {
|
||||
VALUES ?s {
|
||||
<http://data.lblod.info/id/besturenVanDeEredienst/45596b602140f031237b0ec26a8d4718>
|
||||
}
|
||||
BIND (<http://lblod.data.gift/concepts/d02c4e12bf88d2fdf5123b07f29c9311> AS ?notActiveStatus)
|
||||
BIND (<http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6> AS ?activeStatus)
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
DELETE {
|
||||
GRAPH ?g {
|
||||
?s <http://purl.org/dc/terms/modified> ?modified .
|
||||
}
|
||||
} INSERT {
|
||||
GRAPH ?g {
|
||||
?s <http://purl.org/dc/terms/modified> "1000-01-01"^^xsd:date .
|
||||
}
|
||||
} WHERE {
|
||||
GRAPH ?g {
|
||||
?s a <http://mu.semte.ch/vocabularies/ext/KboOrganisatie> ;
|
||||
<http://purl.org/dc/terms/modified> ?modified .
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
http://mu.semte.ch/graphs/refnis2019-data-temp
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,21 @@
|
||||
PREFIX schemas: <https://schema.org/>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
|
||||
DELETE {
|
||||
GRAPH <http://mu.semte.ch/graphs/public> {
|
||||
?nis2019 schemas:endDate ?currentEndDate .
|
||||
}
|
||||
} INSERT {
|
||||
GRAPH <http://mu.semte.ch/graphs/public> {
|
||||
?nis2019 schemas:endDate ?newEndDate .
|
||||
}
|
||||
} WHERE {
|
||||
GRAPH <http://mu.semte.ch/graphs/public> {
|
||||
?nis2019 skos:inScheme <http://vocab.belgif.be/auth/refnis2019> ;
|
||||
schemas:endDate ?currentEndDate .
|
||||
}
|
||||
GRAPH <http://mu.semte.ch/graphs/refnis2019-data-temp> {
|
||||
?nis2019 schemas:endDate ?newEndDate .
|
||||
}
|
||||
FILTER (?currentEndDate != ?newEndDate)
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
CLEAR GRAPH <http://mu.semte.ch/graphs/refnis2019-data-temp>
|
||||
@@ -0,0 +1,18 @@
|
||||
DELETE {
|
||||
GRAPH <http://mu.semte.ch/graphs/shared> {
|
||||
?werkingsgebied skos:exactMatch ?nis2019 .
|
||||
}
|
||||
} INSERT {
|
||||
GRAPH <http://mu.semte.ch/graphs/shared> {
|
||||
?werkingsgebied skos:exactMatch ?nis2025 .
|
||||
}
|
||||
} WHERE {
|
||||
GRAPH <http://mu.semte.ch/graphs/shared> {
|
||||
?werkingsgebied skos:exactMatch ?nis2019 .
|
||||
}
|
||||
VALUES (?nis2019 ?nis2025) {
|
||||
(<http://vocab.belgif.be/auth/refnis2019/10000> <http://vocab.belgif.be/auth/refnis2025/10000>) # Antwerp province
|
||||
(<http://vocab.belgif.be/auth/refnis2019/40000> <http://vocab.belgif.be/auth/refnis2025/40000>) # East Flanders province
|
||||
(<http://vocab.belgif.be/auth/refnis2019/11002> <http://vocab.belgif.be/auth/refnis2025/11002>) # Antwerp municipality
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
PREFIX prov: <http://www.w3.org/ns/prov#>
|
||||
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
|
||||
|
||||
DELETE {
|
||||
GRAPH ?sourceGraph {
|
||||
?werkingsgebied ?p ?o .
|
||||
}
|
||||
} INSERT {
|
||||
GRAPH <http://mu.semte.ch/graphs/public> {
|
||||
?werkingsgebied ?p ?o .
|
||||
}
|
||||
} WHERE {
|
||||
GRAPH ?sourceGraph {
|
||||
?werkingsgebied a prov:Location ;
|
||||
ext:werkingsgebiedNiveau ?level ;
|
||||
?p ?o .
|
||||
}
|
||||
VALUES ?sourceGraph {
|
||||
<http://mu.semte.ch/graphs/administrative-unit>
|
||||
<http://mu.semte.ch/graphs/shared>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
|
||||
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
|
||||
|
||||
INSERT {
|
||||
GRAPH <http://mu.semte.ch/graphs/public> {
|
||||
?districtLocation geo:sfWithin ?antwerpLocation .
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <http://mu.semte.ch/graphs/public> {
|
||||
?districtLocation a prov:Location ;
|
||||
ext:werkingsgebiedNiveau ?level .
|
||||
FILTER (?level = "District")
|
||||
}
|
||||
# Hardcode the werkingsgbied for the Antwerp municipality as it is the only one with districts anyway.
|
||||
BIND (<http://data.lblod.info/id/werkingsgebieden/3a9b09cbccb798c8f9d5bad3fce1476bce1ee014165ba243488b0af690d0f464> AS ?antwerpLocation)
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
|
||||
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
|
||||
PREFIX mu: <http://mu.semte.ch/vocabularies/core/>
|
||||
PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
|
||||
|
||||
INSERT {
|
||||
GRAPH <http://mu.semte.ch/graphs/public> {
|
||||
?borsbeekLocation a prov:Location;
|
||||
mu:uuid ?uuid ;
|
||||
rdfs:label "Borsbeek" ;
|
||||
ext:werkingsgebiedNiveau "District" ;
|
||||
geo:sfWithin ?antwerpLocation .
|
||||
}
|
||||
# Also link this new werkingsgbied to the actual district
|
||||
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
|
||||
?borsbeekDistrict besluit:werkingsgebied ?borsbeekLocation .
|
||||
}
|
||||
} WHERE {
|
||||
BIND(SHA256(CONCAT("Werkingsgebied for the district of Borsbeek")) AS ?uuid)
|
||||
BIND(IRI(CONCAT("http://data.lblod.info/id/werkingsgebieden/", STR(?uuid))) AS ?borsbeekLocation)
|
||||
|
||||
BIND (<http://data.lblod.info/id/werkingsgebieden/3a9b09cbccb798c8f9d5bad3fce1476bce1ee014165ba243488b0af690d0f464> AS ?antwerpLocation)
|
||||
BIND (<http://data.lblod.info/id/bestuurseenheden/4b44e6f1-113b-4692-b149-44a889b215f2> AS ?borsbeekDistrict)
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
|
||||
PREFIX org: <http://www.w3.org/ns/org#>
|
||||
PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
|
||||
|
||||
INSERT {
|
||||
GRAPH <http://mu.semte.ch/graphs/public> {
|
||||
?municipalityLocation geo:sfWithin ?provinceLocation .
|
||||
}
|
||||
} WHERE {
|
||||
GRAPH <http://mu.semte.ch/graphs/shared> {
|
||||
?municipality a besluit:Bestuurseenheid ;
|
||||
org:classification <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000001> .
|
||||
?province a besluit:Bestuurseenheid ;
|
||||
org:classification <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000000> .
|
||||
}
|
||||
|
||||
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
|
||||
?membership a org:Membership ;
|
||||
org:member ?municipality ;
|
||||
org:organization ?province .
|
||||
|
||||
?municipality besluit:werkingsgebied ?municipalityLocation .
|
||||
?province besluit:werkingsgebied ?provinceLocation .
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX prov: <http://www.w3.org/ns/prov#>
|
||||
|
||||
DELETE {
|
||||
GRAPH <http://mu.semte.ch/graphs/shared> {
|
||||
?s ?p ?o .
|
||||
}
|
||||
} INSERT {
|
||||
GRAPH <http://mu.semte.ch/graphs/public> {
|
||||
?s ?p ?o .
|
||||
}
|
||||
} WHERE {
|
||||
GRAPH <http://mu.semte.ch/graphs/shared> {
|
||||
?s ?p ?o .
|
||||
VALUES ?p {
|
||||
geo:sfWithin
|
||||
skos:exactMatch
|
||||
}
|
||||
}
|
||||
GRAPH <http://mu.semte.ch/graphs/public> {
|
||||
?s a prov:Location .
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
PREFIX dct: <http://purl.org/dc/terms/>
|
||||
|
||||
DELETE {
|
||||
GRAPH ?g {
|
||||
<http://data.lblod.info/id/veranderingsgebeurtenissen/68021371D4DB18EC8BA958FC> dct:date ?oldDate .
|
||||
}
|
||||
} INSERT {
|
||||
GRAPH ?g {
|
||||
<http://data.lblod.info/id/veranderingsgebeurtenissen/68021371D4DB18EC8BA958FC> dct:date "2023-11-30"^^xsd:date .
|
||||
}
|
||||
} WHERE {
|
||||
GRAPH ?g {
|
||||
<http://data.lblod.info/id/veranderingsgebeurtenissen/68021371D4DB18EC8BA958FC> dct:date ?oldDate .
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
PREFIX org: <http://www.w3.org/ns/org#>
|
||||
|
||||
DELETE {
|
||||
GRAPH <http://mu.semte.ch/graphs/shared> {
|
||||
?membership ?p ?o .
|
||||
}
|
||||
} INSERT {
|
||||
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
|
||||
?membership ?p ?o .
|
||||
}
|
||||
} WHERE {
|
||||
GRAPH <http://mu.semte.ch/graphs/shared> {
|
||||
?membership a org:Membership ;
|
||||
?p ?o .
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX concept_schemes: <http://data.lblod.info/doc/conceptscheme#>
|
||||
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
|
||||
PREFIX dcterms: <http://purl.org/dc/terms/>
|
||||
|
||||
INSERT DATA {
|
||||
GRAPH <http://mu.semte.ch/graphs/public> {
|
||||
concept_schemes:ProvincesConceptScheme a skos:ConceptScheme ;
|
||||
skos:prefLabel "Provinces Concept Scheme" ;
|
||||
dcterms:description "A concept scheme containing all the location entities that are provinces".
|
||||
}
|
||||
}
|
||||
|
||||
;
|
||||
|
||||
INSERT
|
||||
{
|
||||
GRAPH <http://mu.semte.ch/graphs/public> {
|
||||
?province_uri rdf:type skos:Concept ;
|
||||
skos:inScheme concept_schemes:ProvincesConceptScheme .
|
||||
}
|
||||
} WHERE {
|
||||
GRAPH <http://mu.semte.ch/graphs/public> {
|
||||
?province_uri ext:werkingsgebiedNiveau "Provincie".
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
PREFIX locn: <http://www.w3.org/ns/locn#>
|
||||
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
|
||||
PREFIX adres: <https://data.vlaanderen.be/ns/adres#>
|
||||
|
||||
|
||||
INSERT {
|
||||
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
|
||||
?address adres:adresIsGelegenIn ?province_uri .
|
||||
}
|
||||
} WHERE {
|
||||
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
|
||||
?address rdf:type locn:Address ;
|
||||
locn:adminUnitL2 ?province_literal .
|
||||
}
|
||||
GRAPH <http://mu.semte.ch/graphs/public> {
|
||||
?province_uri rdfs:label ?province_literal ;
|
||||
ext:werkingsgebiedNiveau "Provincie" .
|
||||
}
|
||||
}
|
||||
|
||||
;
|
||||
|
||||
INSERT {
|
||||
GRAPH <http://mu.semte.ch/graphs/worship-service> {
|
||||
?address adres:adresIsGelegenIn ?province_uri .
|
||||
}
|
||||
} WHERE {
|
||||
GRAPH <http://mu.semte.ch/graphs/worship-service> {
|
||||
?address rdf:type locn:Address ;
|
||||
locn:adminUnitL2 ?province_literal .
|
||||
}
|
||||
GRAPH <http://mu.semte.ch/graphs/public> {
|
||||
?province_uri rdfs:label ?province_literal ;
|
||||
ext:werkingsgebiedNiveau "Provincie" .
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
http://mu.semte.ch/graphs/public
|
||||
@@ -0,0 +1,41 @@
|
||||
@prefix cleanup: <http://mu.semte.ch/vocabularies/ext/cleanup/> .
|
||||
@prefix mu: <http://mu.semte.ch/vocabularies/core/> .
|
||||
@prefix dcterms: <http://purl.org/dc/terms/> .
|
||||
|
||||
<http://data.lblod.info/id/cleanup-job/42245582-ea60-4d44-80ef-c686901eccb5> a cleanup:Job ;
|
||||
mu:uuid "42245582-ea60-4d44-80ef-c686901eccb5" ;
|
||||
dcterms:title "Insert missing province uris for addresses of administrative units" ;
|
||||
cleanup:randomQuery """
|
||||
|
||||
PREFIX locn: <http://www.w3.org/ns/locn#>
|
||||
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
|
||||
PREFIX adres: <https://data.vlaanderen.be/ns/adres#>
|
||||
|
||||
INSERT {
|
||||
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
|
||||
?address adres:adresIsGelegenIn ?province_uri .
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
|
||||
?address rdf:type locn:Address ;
|
||||
locn:adminUnitL2 ?province_literal .
|
||||
FILTER NOT EXISTS {
|
||||
?address adres:adresIsGelegenIn ?province_uri2 .
|
||||
}
|
||||
}
|
||||
GRAPH <http://mu.semte.ch/graphs/public> {
|
||||
?province_uri rdfs:label ?province_literal ;
|
||||
ext:werkingsgebiedNiveau "Provincie" .
|
||||
BIND (?province_uri as ?province_uri2)
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
""" .
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
http://mu.semte.ch/graphs/public
|
||||
@@ -0,0 +1,39 @@
|
||||
@prefix cleanup: <http://mu.semte.ch/vocabularies/ext/cleanup/> .
|
||||
@prefix mu: <http://mu.semte.ch/vocabularies/core/> .
|
||||
@prefix dcterms: <http://purl.org/dc/terms/> .
|
||||
|
||||
<http://data.lblod.info/id/cleanup-job/cdbb9f4e-90cc-40f6-a0a9-bd0bd8c9105f> a cleanup:Job ;
|
||||
mu:uuid "cdbb9f4e-90cc-40f6-a0a9-bd0bd8c9105f" ;
|
||||
dcterms:title "Insert missing province uris for addresses of worship services" ;
|
||||
cleanup:randomQuery """
|
||||
|
||||
PREFIX locn: <http://www.w3.org/ns/locn#>
|
||||
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
|
||||
PREFIX adres: <https://data.vlaanderen.be/ns/adres#>
|
||||
|
||||
INSERT {
|
||||
GRAPH <http://mu.semte.ch/graphs/worship-service> {
|
||||
?address adres:adresIsGelegenIn ?province_uri .
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <http://mu.semte.ch/graphs/worship-service> {
|
||||
?address rdf:type locn:Address ;
|
||||
locn:adminUnitL2 ?province_literal .
|
||||
FILTER NOT EXISTS {
|
||||
?address adres:adresIsGelegenIn ?province_uri2 .
|
||||
}
|
||||
}
|
||||
GRAPH <http://mu.semte.ch/graphs/public> {
|
||||
?province_uri rdfs:label ?province_literal ;
|
||||
ext:werkingsgebiedNiveau "Provincie" .
|
||||
BIND (?province_uri as ?province_uri2)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
""" .
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
PREFIX core: <http://mu.semte.ch/vocabularies/core/>
|
||||
PREFIX org: <http://www.w3.org/ns/org#>
|
||||
PREFIX lblodorg: <http://lblod.data.gift/vocabularies/organisatie/>
|
||||
PREFIX euro: <http://data.europa.eu/m8g/>
|
||||
PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
|
||||
|
||||
DELETE {
|
||||
GRAPH <http://mu.semte.ch/graphs/worship-service> {
|
||||
?event ?ep ?eo .
|
||||
|
||||
?result ?rp ?ro .
|
||||
|
||||
?decision ?de ?do .
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <http://mu.semte.ch/graphs/worship-service> {
|
||||
?event a org:ChangeEvent ;
|
||||
core:uuid "6824418BD4DB18EC8BA95940" ;
|
||||
lblodorg:veranderingsgebeurtenisResultaat ?result ;
|
||||
?ep ?eo .
|
||||
|
||||
?result a lblodorg:VeranderingsgebeurtenisResultaat ;
|
||||
?rp ?ro .
|
||||
|
||||
OPTIONAL {
|
||||
?event euro:hasFormalFramework ?decision .
|
||||
?decision a besluit:Besluit ;
|
||||
?de ?do .
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
PREFIX dct: <http://purl.org/dc/terms/>
|
||||
|
||||
DELETE {
|
||||
GRAPH ?g {
|
||||
<http://data.lblod.info/id/veranderingsgebeurtenissen/682443E0D4DB18EC8BA95945> dct:date ?oldDate .
|
||||
}
|
||||
} INSERT {
|
||||
GRAPH ?g {
|
||||
<http://data.lblod.info/id/veranderingsgebeurtenissen/682443E0D4DB18EC8BA95945> dct:date "2021-06-18"^^xsd:date .
|
||||
}
|
||||
} WHERE {
|
||||
GRAPH ?g {
|
||||
<http://data.lblod.info/id/veranderingsgebeurtenissen/682443E0D4DB18EC8BA95945> dct:date ?oldDate .
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
PREFIX owl: <http://www.w3.org/2002/07/owl#>
|
||||
PREFIX dcterms: <http://purl.org/dc/terms/>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
|
||||
INSERT DATA {
|
||||
|
||||
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
|
||||
<http://data.lblod.info/id/bestuurseenheden/a33d5059-d527-4c9a-a788-1b7f5c75d10e>
|
||||
rdf:type <http://www.w3.org/ns/org#Organization> , <http://data.vlaanderen.be/ns/besluit#Bestuurseenheid> , dcterms:Agent ;
|
||||
owl:sameAs <http://data.vlaanderen.be/doc/organisatie/OVO053550> ;
|
||||
<http://www.w3.org/ns/org#classification> <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/52cc9d8d-1c9a-4d92-9936-da9d4a622ec4> ;
|
||||
<http://www.w3.org/ns/org#linkedTo> <http://data.lblod.info/id/bestuurseenheden/141d9d6b-54af-4d17-b313-8d1c30bc3f5b> ;
|
||||
<http://mu.semte.ch/vocabularies/core/uuid> "a33d5059-d527-4c9a-a788-1b7f5c75d10e" ;
|
||||
skos:prefLabel "Kabinet Crevits" ;
|
||||
<http://www.w3.org/2004/02/skos/core#note> """This is a special case, we consider (for now) Kabinet Crevits as a bestuurseenheid, of org:classification ABB.""";
|
||||
<http://www.w3.org/ns/adms#identifier> <http://data.lblod.info/id/identificatoren/b53dc2b0-7fca-4c59-8f2a-276753edb81e> ;
|
||||
<http://www.w3.org/ns/regorg#orgStatus> <http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6> ;
|
||||
<http://www.w3.org/ns/regorg#legalName> "Kabinet Crevits" .
|
||||
|
||||
<http://data.lblod.info/id/identificatoren/b53dc2b0-7fca-4c59-8f2a-276753edb81e>
|
||||
<https://data.vlaanderen.be/ns/generiek#gestructureerdeIdentificator> <http://data.lblod.info/id/gestructureerdeIdentificator/aac3f5c0-e525-4cec-8432-2d59806661e5>;
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/adms#Identifier>;
|
||||
<http://www.w3.org/2004/02/skos/core#notation> "OVO-nummer" ;
|
||||
<http://mu.semte.ch/vocabularies/core/uuid> "b53dc2b0-7fca-4c59-8f2a-276753edb81e" .
|
||||
|
||||
<http://data.lblod.info/id/gestructureerdeIdentificator/aac3f5c0-e525-4cec-8432-2d59806661e5>
|
||||
<http://mu.semte.ch/vocabularies/core/uuid> "aac3f5c0-e525-4cec-8432-2d59806661e5";
|
||||
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://data.vlaanderen.be/ns/generiek#GestructureerdeIdentificator>;
|
||||
<https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "OVO053550" .
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
PREFIX org: <http://www.w3.org/ns/org#>
|
||||
|
||||
DELETE {
|
||||
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
|
||||
?membership ?p ?o .
|
||||
?organization org:hasSubOrganization ?member .
|
||||
}
|
||||
} INSERT {
|
||||
GRAPH <http://mu.semte.ch/graphs/shared>{
|
||||
?membership ?p ?o .
|
||||
?organization org:hasSubOrganization ?member .
|
||||
}
|
||||
} WHERE {
|
||||
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
|
||||
?membership a org:Membership ;
|
||||
org:member ?member ;
|
||||
org:organization ?organization ;
|
||||
?p ?o .
|
||||
}
|
||||
GRAPH <http://mu.semte.ch/graphs/shared> {
|
||||
?member org:classification <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000001> . # Municipality
|
||||
?organization org:classification <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000000> . # Province
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
http://mu.semte.ch/graphs/public
|
||||
@@ -0,0 +1,36 @@
|
||||
@prefix cleanup: <http://mu.semte.ch/vocabularies/ext/cleanup/> .
|
||||
@prefix mu: <http://mu.semte.ch/vocabularies/core/> .
|
||||
@prefix dcterms: <http://purl.org/dc/terms/> .
|
||||
|
||||
# Insert triples of the form
|
||||
# <Province> <http://www.w3.org/ns/org#hasSubOrganization> <Municipality>
|
||||
# matching memberships for which no such triple exists.
|
||||
|
||||
# Province: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000000>
|
||||
#
|
||||
# Municipality: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000001>
|
||||
|
||||
<http://data.lblod.info/id/cleanup-job/0cc5e981-a61e-433e-b6f2-c59fd8599944> a cleanup:Job ;
|
||||
mu:uuid "0cc5e981-a61e-433e-b6f2-c59fd8599944" ;
|
||||
dcterms:title "Insert missing `org:hasSubOrganization` triples relating provinces and municipalities." ;
|
||||
cleanup:randomQuery """
|
||||
PREFIX org: <http://www.w3.org/ns/org#>
|
||||
|
||||
INSERT {
|
||||
GRAPH <http://mu.semte.ch/graphs/shared> {
|
||||
?province org:hasSubOrganization ?municipality .
|
||||
}
|
||||
} WHERE {
|
||||
GRAPH <http://mu.semte.ch/graphs/shared> {
|
||||
?membership a org:Membership ;
|
||||
org:organization ?province ;
|
||||
org:member ?municipality ;
|
||||
org:role <http://data.lblod.info/id/rollen/4ec7d5c39bdc4e84b4174379b9e22ad8> .
|
||||
|
||||
FILTER NOT EXISTS { ?province org:hasSubOrganization ?municipality . }
|
||||
|
||||
?municipality org:classification <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000001> .
|
||||
?province org:classification <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000000> .
|
||||
}
|
||||
}
|
||||
""" .
|
||||
@@ -0,0 +1 @@
|
||||
http://mu.semte.ch/graphs/public
|
||||
@@ -0,0 +1,37 @@
|
||||
@prefix cleanup: <http://mu.semte.ch/vocabularies/ext/cleanup/> .
|
||||
@prefix mu: <http://mu.semte.ch/vocabularies/core/> .
|
||||
@prefix dcterms: <http://purl.org/dc/terms/> .
|
||||
|
||||
# Delete triples of the form
|
||||
# <Province> <http://www.w3.org/ns/org#hasSubOrganization> <Municipality>
|
||||
# for which no matching membership exists.
|
||||
|
||||
# Province: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000000>
|
||||
#
|
||||
# Municipality: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000001>
|
||||
|
||||
<http://data.lblod.info/id/cleanup-job/7354dfd9-bdef-48d6-b81e-e814bd4f4e9c> a cleanup:Job ;
|
||||
mu:uuid "7354dfd9-bdef-48d6-b81e-e814bd4f4e9c" ;
|
||||
dcterms:title "Delete leftover `org:hasSubOrganization` triples between Provinces and municipalities." ;
|
||||
cleanup:randomQuery """
|
||||
PREFIX org: <http://www.w3.org/ns/org#>
|
||||
|
||||
DELETE {
|
||||
GRAPH <http://mu.semte.ch/graphs/shared> {
|
||||
?province org:hasSubOrganization ?municipality .
|
||||
}
|
||||
} WHERE {
|
||||
GRAPH <http://mu.semte.ch/graphs/shared> {
|
||||
?province org:hasSubOrganization ?municipality .
|
||||
FILTER NOT EXISTS {
|
||||
?membership a org:Membership ;
|
||||
org:organization ?province ;
|
||||
org:member ?municipality ;
|
||||
org:role <http://data.lblod.info/id/rollen/4ec7d5c39bdc4e84b4174379b9e22ad8> .
|
||||
}
|
||||
|
||||
?municipality org:classification <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000001> .
|
||||
?province org:classification <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000000> .
|
||||
}
|
||||
}
|
||||
""" .
|
||||
@@ -1,5 +1,3 @@
|
||||
version: "3.4"
|
||||
|
||||
services:
|
||||
identifier:
|
||||
restart: "no"
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
version: "3.4"
|
||||
|
||||
x-logging: &default-logging
|
||||
driver: "json-file"
|
||||
options:
|
||||
@@ -196,7 +194,7 @@ services:
|
||||
restart: always
|
||||
logging: *default-logging
|
||||
frontend:
|
||||
image: lblod/frontend-organization-portal:1.30.0
|
||||
image: lblod/frontend-organization-portal:1.32.0
|
||||
volumes:
|
||||
- ./config/frontend/add-x-frame-options-header.conf:/config/add-x-frame-options.conf
|
||||
environment:
|
||||
@@ -312,7 +310,7 @@ services:
|
||||
restart: always
|
||||
logging: *default-logging
|
||||
kbo-data-sync:
|
||||
image: lblod/sync-wegwijs-organization-service:2.0.2
|
||||
image: lblod/sync-wegwijs-organization-service:2.0.3
|
||||
links:
|
||||
- db:database
|
||||
labels:
|
||||
|
||||
Reference in New Issue
Block a user