Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ codes, ISO 4217 currency codes, and many others. Provided as a [Tabular Data Pac
Data are fetched from multiple sources:

- Official formal and short names (in English, French, Spanish, Arabic, Chinese, and Russian) are from
[United Nations Protocol and Liaison Service](https://protocol.un.org/dgacm/pls/site.nsf/PermanentMissions.xsp)
[United Nations Protocol and Liaison Service](https://www.un.org/dgacm/sites/www.un.org.dgacm/files/Documents_Protocol/unterm-efsrca.xlsx)

- Customary English short names are from
[Unicode Common Locale Data Repository (CLDR) Project](https://raw.githubusercontent.com/unicode-org/cldr-json/d38478855dd8342749f0494332cc8acc2895d20d/cldr-json/cldr-localenames-full/main/ms/territories.json).
Expand All @@ -35,6 +35,8 @@ resources and is much easier to scrape than multiple Wikipedia pages.

- EDGAR codes are from [sec.gov](https://www.sec.gov/submit-filings/filer-support-resources/edgar-state-country-codes)

- Wikidata entity URLs (`wikidata_id`) are fetched via the [Wikidata SPARQL endpoint](https://query.wikidata.org/sparql) using the ISO 3166-1 alpha-2 property (P297)


## Preparation

Expand Down
22 changes: 18 additions & 4 deletions datapackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ format: csv
last_modified: 2023-09-25
licenses:
- name: ODC-PDDL-1.0
path: http://opendatacommons.org/licenses/pddl/
path: https://opendatacommons.org/licenses/pddl/
title: Open Data Commons Public Domain Dedication and License v1.0
name: country-codes
description: Comprehensive dataset of country codes combining ISO 3166 alpha-2/alpha-3/numeric,
ITU dialing codes, ISO 4217 currency codes, UN M49 region codes, Geonames, CLDR
display names, EDGAR codes, and Wikidata identifiers for all countries and territories.
related:
- formats:
- CSV
Expand Down Expand Up @@ -46,6 +49,9 @@ resources:
- format: csv
name: country-codes
path: data/country-codes.csv
description: One row per country or territory with code columns from multiple international
standards bodies including ISO 3166, ITU, ISO 4217, UN M49, Geonames, CLDR, EDGAR,
and Wikidata.
schema:
fields:
- description: "Codes assigned by the F\xE9d\xE9ration Internationale de Football\
Expand Down Expand Up @@ -182,7 +188,7 @@ resources:
Islands or Sark, for example)
name: M49
title: M49
type: number
type: integer
- description: Country classification from United Nations Statistics Division
name: Sub-region Code
title: sub-region code
Expand Down Expand Up @@ -287,7 +293,7 @@ resources:
description: Geoname ID
name: Geoname ID
title: Geoname ID
type: number
type: integer
- description: Country's customary English short name (CLDR)
name: CLDR display name
title: CLDR display name
Expand All @@ -298,12 +304,17 @@ resources:
name: EDGAR
title: EDGAR code
type: string
- description: Wikidata entity URL for the country, sourced via Wikidata SPARQL
query on ISO 3166-1 alpha-2 property (P297)
name: wikidata_id
title: Wikidata ID
type: string
sources:
- name: United Nations Protocol and Liaison Service
path: https://www.un.org/dgacm/sites/www.un.org.dgacm/files/Documents_Protocol/unterm-efsrca.xlsx
title: United Nations Protocol and Liaison Service
- name: Unicode Common Locale Data Repository (CLDR) Project
path: https://github.com/unicode-org/cldr-json/blob/d38478855dd8342749f0494332cc8acc2895d20d/cldr-json/cldr-localenames-full/main/ms/territories.json
path: https://raw.githubusercontent.com/unicode-org/cldr-json/d38478855dd8342749f0494332cc8acc2895d20d/cldr-json/cldr-localenames-full/main/ms/territories.json
title: Unicode Common Locale Data Repository (CLDR) Project
- name: United Nations Department of Economic and Social Affairs Statistics Division
path: https://unstats.un.org/unsd/methodology/m49/overview/
Expand All @@ -320,5 +331,8 @@ sources:
- name: US Securities and Exchange Commission
path: https://www.sec.gov/submit-filings/filer-support-resources/edgar-state-country-codes
title: US Securities and Exchange Commission
- name: Wikidata
path: https://query.wikidata.org/sparql
title: Wikidata SPARQL endpoint
title: 'Comprehensive country codes: ISO 3166, ITU, ISO 4217 currency codes and many
more'
1 change: 0 additions & 1 deletion scripts/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"official_name_fr",
"UNTERM French Short",
"ISO4217-currency_name",
"Developed / Developing Countries",
"UNTERM Russian Formal",
"UNTERM English Short",
"ISO4217-currency_alphabetic_code",
Expand Down
Loading