-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* finish TODOs * fix aliases * missing district name is captured in Victoria District * update README
- Loading branch information
Showing
9 changed files
with
12,825 additions
and
10,736 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,18 @@ | ||
## Federal Electoral Districts | ||
|
||
Canadian federal electoral districts are represented by the following naming policy: | ||
* All current divisions are given an ID, based on their name. | ||
* All divisions that are abolished according to the Library of Parliament are given an ID, based on their name. | ||
* If multiple current/abolished divisions have the same ID, later divisions are suffixed with the validFrom year. | ||
* All divisions that were renamed according to the Library of Parliament are aliases (sameAs) to another ID. | ||
* A province/territory:id pair is prefixed to the ed:id pair, since two provinces can contain the same district name. | ||
* The most recent ID is the "canonical" ID. Previous renames are aliased to it. | ||
|
||
Up until November 2022, Canadian federal electoral districts were represented with [federal electoral district codes](https://www.elections.ca/content.aspx?section=res&dir=cir/list&document=index338&lang=e) where the year in which the redistricting was completed would be appended to the file name (i.e. ca\_federal\_electoral\_districts-2013.csv). | ||
|
||
To generate updated OCD ID files, run the script: scripts/country-ca/ca\_federal\_electoral\_districts.py (instructions found in file). The following files are generated by the script: | ||
identifiers/country-ca/ca\_federal\_electoral\_districts-abolished.csv | ||
identifiers/country-ca/ca\_federal\_electoral\_districts-aliases.csv | ||
identifiers/country-ca/ca\_federal\_electoral\_districts-current.csv | ||
|
||
To add aliases manually, append to identifiers/country-ca/aliases.csv |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.