OP-3832: Added the new spatial werkingsgebied to producers and search + migration to backfill existing orgs
This commit is contained in:
@@ -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
|
||||
```
|
||||
@@ -36,6 +37,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]
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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 .
|
||||
}
|
||||
}
|
||||
@@ -701,6 +701,10 @@
|
||||
"operation_area": [
|
||||
"http://data.vlaanderen.be/ns/besluit#werkingsgebied",
|
||||
"http://www.w3.org/2004/02/skos/core#prefLabel"
|
||||
],
|
||||
"operation_area_spatial": [
|
||||
"http://purl.org/dc/terms/spatial",
|
||||
"http://www.w3.org/2004/02/skos/core#prefLabel"
|
||||
]
|
||||
},
|
||||
"mappings": {
|
||||
@@ -821,6 +825,15 @@
|
||||
"normalizer": "custom_sort_normalizer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"operation_area_spatial": {
|
||||
"type": "keyword",
|
||||
"fields": {
|
||||
"field": {
|
||||
"type": "keyword",
|
||||
"normalizer": "custom_sort_normalizer"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user