Skip to content

Commit

Permalink
Merge pull request #76 from lblod/fix/zonality-data-issues
Browse files Browse the repository at this point in the history
Fix data issues related to zonality URIs
  • Loading branch information
elpoelma authored Jun 13, 2024
2 parents ead49ca + 60713e6 commit cddaf65
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/odd-schools-hang.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"app-mow-registry": patch
---

Add migration to fill in missing zonalities of road-signs and traffic-measures
5 changes: 5 additions & 0 deletions .changeset/slimy-tables-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"app-mow-registry": patch
---

Add migration to fix the zonality uri used for non-zonal road-signs and traffic-measures
16 changes: 16 additions & 0 deletions config/migrations/20240613085754-fix-non-zonal-uri.sparql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>

DELETE {
GRAPH <http://mu.semte.ch/graphs/mow/registry> {
?uri ext:zonality <http://lblod.data.gift/concepts/b651931b-923c-477c-8da9-fc7dd841fdccZ>.
}
}
INSERT {
GRAPH <http://mu.semte.ch/graphs/mow/registry> {
?uri ext:zonality <http://lblod.data.gift/concepts/b651931b-923c-477c-8da9-fc7dd841fdcc>
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/mow/registry> {
?uri ext:zonality <http://lblod.data.gift/concepts/b651931b-923c-477c-8da9-fc7dd841fdccZ>
}
}
13 changes: 13 additions & 0 deletions config/migrations/20240613090626-fill-in-missing-zonalities.sparql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
PREFIX mobiliteit: <https://data.vlaanderen.be/ns/mobiliteit#>
PREFIX lblodMobilitiet: <http://data.lblod.info/vocabularies/mobiliteit/>

INSERT {
GRAPH <http://mu.semte.ch/graphs/mow/registry> {
?uri ext:zonality <http://lblod.data.gift/concepts/b651931b-923c-477c-8da9-fc7dd841fdcc>
}
} WHERE {
?uri a ?type.
FILTER NOT EXISTS { ?uri ext:zonality ?zonality }
FILTER(?type IN (mobiliteit:Verkeersbordconcept, lblodMobilitiet:TrafficMeasureConcept))
}

0 comments on commit cddaf65

Please sign in to comment.