-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from lblod/fix/zonality-data-issues
Fix data issues related to zonality URIs
- Loading branch information
Showing
4 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
13
config/migrations/20240613090626-fill-in-missing-zonalities.sparql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) | ||
} |