Merge pull request #609 from lblod/OP-3832-werkingsgebied-for-geregistreerde-organizations

OP-3832: Added the new spatial werkingsgebied to producers and search…
This commit is contained in:
Boris De Vloed
2026-07-24 09:25:02 +02:00
committed by GitHub
6 changed files with 62 additions and 4 deletions

View File

@@ -11,6 +11,7 @@
- "In Oprichting" bestuursorgaan lifecycle [OP-3810]
- Added "werkingsgebied" filter [OP-3812]
- Inhoudelijk thema [OP-3817]
- Werkingsgebied (dct:spatial) for private OCMW associations [OP-3832]
### Deploy notes
```
@@ -28,6 +29,7 @@ drc restart cache resource
drc pull construct-organization-relationships && drc up -d construct-organization-relationships
drc restart migrations
drc restart resource cache
drc restart delta-producer-publication-graph-maintainer
scripts/reset-elastic.sh
```
```
@@ -36,6 +38,13 @@ drc restart migrations frontend db resource cache
/bin/bash scripts/reset-elastic.sh
```
```
drc restart migrations search
drc up -d frontend
# reindex elastic search:
/bin/bash scripts/reset-elastic.sh
```
## v1.40.0
- Query to check missing address URI's [OP-3784]
- Create new query 'organisations shown in OP frontend' in Dashboard [OP-3774]

View File

@@ -108,7 +108,7 @@
"graphsFilter": ["http://mu.semte.ch/graphs/administrative-unit"],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://data.vlaanderen.be/ns/besluit#werkingsgebied",
"http://purl.org/dc/terms/spatial",
"http://www.opengis.net/ont/geosparql#sfWithin",
"http://www.w3.org/2002/07/owl#sameAs",
"http://www.w3.org/2004/02/skos/core#altLabel",

View File

@@ -240,7 +240,7 @@
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://data.vlaanderen.be/ns/besluit#werkingsgebied",
"http://purl.org/dc/terms/spatial",
"http://www.opengis.net/ont/geosparql#sfWithin",
"http://www.w3.org/2002/07/owl#sameAs",
"http://www.w3.org/2004/02/skos/core#altLabel",

View File

@@ -126,7 +126,7 @@
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://data.vlaanderen.be/ns/besluit#werkingsgebied",
"http://purl.org/dc/terms/spatial",
"http://www.opengis.net/ont/geosparql#sfWithin",
"http://www.w3.org/2002/07/owl#sameAs",
"http://www.w3.org/2004/02/skos/core#altLabel",

View File

@@ -0,0 +1,36 @@
PREFIX org: <http://www.w3.org/ns/org#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX organisatie: <https://data.vlaanderen.be/ns/organisatie#>
PREFIX adres: <https://data.vlaanderen.be/ns/adres#>
PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
PREFIX dct: <http://purl.org/dc/terms/>
INSERT {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?org dct:spatial ?werkingsgebied .
}
} WHERE {
VALUES ?classification {
<http://data.vlaanderen.be/id/concept/GeregistreerdeOrganisatieClassificatieCode/82250452-83a0-48f4-89cc-b430320493ce>
<http://data.vlaanderen.be/id/concept/GeregistreerdeOrganisatieClassificatieCode/35833ba2-7371-400b-8df2-2912f66fb153>
<http://data.vlaanderen.be/id/concept/GeregistreerdeOrganisatieClassificatieCode/82fd21dc-e8bb-4d13-a010-f4a12358ef10>
}
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?org org:classification ?classification ;
org:hasPrimarySite ?site .
?site organisatie:bestaatUit ?address .
?address adres:gemeentenaam ?municipalityName .
}
FILTER NOT EXISTS {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?org dct:spatial ?existing .
}
}
GRAPH <http://mu.semte.ch/graphs/shared> {
?municipality org:classification <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000001> ;
skos:prefLabel ?municipalityName .
}
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?municipality besluit:werkingsgebied ?werkingsgebied .
}
}

View File

@@ -700,7 +700,11 @@
],
"operation_area": [
"http://data.vlaanderen.be/ns/besluit#werkingsgebied",
"http://www.w3.org/2004/02/skos/core#prefLabel"
"http://www.w3.org/2000/01/rdf-schema#label"
],
"operation_area_spatial": [
"http://purl.org/dc/terms/spatial",
"http://www.w3.org/2000/01/rdf-schema#label"
]
},
"mappings": {
@@ -821,6 +825,15 @@
"normalizer": "custom_sort_normalizer"
}
}
},
"operation_area_spatial": {
"type": "keyword",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
}
}
}