Generated by scripts/generate_data_dictionary.py — do not hand-edit.
Data dictionary
Field reference generated from JSON Schemas under data/schemas/.
For consumption contracts and join keys, see ai-consumers.md.
countries
| Field | Type | Required | Columnar export | Description |
|---|---|---|---|---|
code | string | yes | yes | ISO 3166-1 alpha-2 country code (primary key). Seven non-standard codes exist; filter code_status = 'official_iso3166_1' for current ISO entries only. |
name | string | yes | yes | Country name in World Bank style (e.g. 'Egypt, Arab Rep.'). English common names are in other_names (id 'en') and common_names. |
iso3code | string | yes | yes | ISO 3166-1 alpha-3 code. Join key for the borders field, which stores alpha-3 neighbor codes. |
numeric_code | string | yes | yes | ISO 3166-1 numeric code as a zero-padded string (e.g. '004'). |
capital_city | object | yes | Capital or de facto seat of government with name and optional lat/lng coordinates. Absent by design for uninhabited territories and groupings. | |
region | object | yes | World Bank region as {id, value} (e.g. id 'ECS'), with the Bank's current label. Filter on id: the Bank renames regions (MEA became 'Middle East, North Africa, Afghanistan & Pakistan' in 2025). Absent for 8 entities the World Bank does not classify. | |
adminregion | object | yes | World Bank administrative region as {id, value} (e.g. id 'ECA', value 'Europe & Central Asia (excluding high income)'). Only covers low- and middle-income economies; absence for high-income economies is expected. | |
incomeLevel | object | yes | World Bank income classification as {id, value} (e.g. id 'HIC', value 'High income'). Absent for 8 unclassified entities. | |
lendingType | object | yes | World Bank lending category as {id, value} (e.g. IBRD, IDA, Blend). Absent for 8 unclassified entities. | |
wikidata_id | string | yes | Wikidata entity id (Q-number) for cross-referencing and entity linking. | |
geonames_id | string | yes | GeoNames integer feature id for the country/territory (as string). Expected for current official ISO 3166-1 records; source-specific exceptions are documented separately. | |
ioc_code | string | yes | International Olympic Committee three-letter NOC code when assigned; not every ISO entity has an NOC. | |
fifa_code | string | yes | FIFA three-letter Member Association code when assigned; FIFA association coverage is not identical to ISO country coverage. | |
fips_code | string | yes | Legacy FIPS 10-4-compatible two-letter code when known. FIPS 10-4 was withdrawn in 2008 and replaced by GENC; retain only for legacy joins. | |
bbox | object | yes | Optional geographic bounding box {west, east, north, south} in WGS84 degrees. | |
official_name | string | yes | Official long-form state name (e.g. 'Arab Republic of Egypt'). | |
languages | array | yes | Spoken/official languages as a list of {code, name, official} objects. | |
currencies | array | yes | Circulating currencies as a list of {code, name, symbol} objects with ISO 4217 codes. | |
un_member | boolean | yes | True when the entity is a United Nations member state. See un_status for the three-way member/observer/non_member distinction. | |
un_status | string | yes | United Nations participation status: member (UN member state), observer (permanent observer state: PS, VA), or non_member. Must be consistent with un_member (member <=> un_member: true). Values: member, observer, non_member. | |
independent | boolean | yes | True when the entity is a widely recognized sovereign state. Explicitly false on non-standard-code records (disputed territories, groupings). | |
subregion | string | yes | UN M49 subregion label (e.g. 'South-Eastern Asia'). Statistical convenience only; implies no political affiliation. | |
continents | array | yes | Continent names the entity belongs to (list; transcontinental states list several). | |
borders | array | yes | Land border neighbors as ISO 3166-1 alpha-3 codes (e.g. CAN, MEX) | |
population | object | null | yes | Population indicator struct {value, year, source, source_id}. Use .value for the number; year is null when the reference year is unknown (never 0). | |
area | object | null | yes | Land area indicator struct {value, year, source, source_id} in square kilometres. Use .value for the number. | |
gini | object | null | yes | Gini income-inequality index struct {value, year, source, source_id}. Sparse: roughly a third of records have no value. | |
centroid | object | yes | Geographic centroid as {lat, lng}. | |
native_names | object | yes | Names in the entity's own languages (languages[] mapped through data/vocabs/language_codes.yaml), keyed by ISO 639-1 or ISO 639-3 code: official from Wikidata P1448, common from the Wikidata label. Either may be absent. Names in other languages are in other_names. Empty only when languages[] is empty. | |
landlocked | boolean | yes | True when the entity has no coastline. Non-ISO records may be landlocked with an empty borders list (borders holds alpha-3 codes only). | |
timezones | array | yes | IANA/UTC timezone offsets covering the territory. Empty for uninhabited territories (see timezone_status). | |
timezone_status | string | yes | Marker explaining an empty timezones list, e.g. 'not_applicable' for uninhabited territories. Values: not_applicable. | |
tld | string | yes | Country-code top-level internet domain (e.g. '.th'). | |
calling_codes | array | yes | International telephone calling codes (list of strings). | |
flag_emoji | string | yes | Unicode flag emoji for the country code. | |
car_side | string | yes | Driving side: 'left' or 'right'. Values: left, right. | |
writing_directions | array | yes | Writing direction(s) in use; ids from data/vocabs/writing_directions.yaml (ltr, rtl, ttb). | |
writing_systems | array | yes | Writing system(s) in use; ids from data/vocabs/writing_systems.yaml. | |
dvd_region | integer | yes | Commercial DVD region code (1-6) when assigned. | |
broadcast_systems | array | yes | Television/broadcast standard(s); ids from data/vocabs/broadcast_systems.yaml. | |
legal_systems | array | yes | Legal tradition(s); ids from data/vocabs/legal_systems.yaml. Not government form. | |
rail_gauges | array | yes | Railway track gauge(s); ids from data/vocabs/rail_gauges.yaml. | |
start_of_week | string | yes | First day of the working week (e.g. 'monday', 'sunday'). Values: monday, saturday, sunday. | |
demonyms | object | yes | Demonyms as {female, male} strings in English. | |
other_names | array | yes | Names in multiple languages (UN official languages) | |
common_names | array | yes | Common English names and alternative names for the country | |
m49_code | string | yes | UN M49 numeric code (3-digit code for countries) | |
entity_type | string | yes | yes | Entity classification: sovereign_state, dependent_territory, special_administrative_region, disputed_territory, historical_entity, supranational_grouping, or statistical_area. Values: sovereign_state, dependent_territory, special_administrative_region, disputed_territory, historical_entity, supranational_grouping, statistical_area. |
code_status | string | yes | yes | Code assignment status: official_iso3166_1 (249 records), user_assigned, obsolete, or exceptionally_reserved. See docs/country-code-policy.md. Values: official_iso3166_1, user_assigned, obsolete, exceptionally_reserved. |
recognition_status | object | yes | Recognition metadata for non-standard entities: {status, un_member, notes} explaining disputed, dissolved, or collective-grouping records. | |
parent_entity | object | yes | Parent state {code, name} for dependent territories and special administrative regions. | |
provenance | array | yes | Field-level sourcing entries {field, source, url, retrieved_at, license, note} documenting where enriched values came from. |
intblocks
| Field | Type | Required | Columnar export | Description |
|---|---|---|---|---|
id | string | yes | yes | Stable uppercase identifier (primary key), e.g. EU, NATO, UN. Renames are tracked in data/datasets/intblocks_aliases.json. |
name | string | yes | yes | Official English name of the organization, group, or agreement. |
blocktype | array | yes | yes | Taxonomy keys from the blocktypes dataset (list). The record's directory under data/intblocks/ matches the primary blocktype. |
status | string | yes | yes | Formality of the entity: e.g. 'formal' (treaty-based organization) or informal grouping. Values: formal, informal, de-facto, historical. |
languages | array | yes | Official/working languages as ISO 639-1 codes. | |
links | array | yes | Related URLs as {url, type} where type is website, wikipedia, or wikidata. | |
includes | array | yes | Membership roster. Join on includes[].id (country code or intblock id per type); includes[].name is a display label only (for type: country the build sets it to the country's name). status captures member/observer/former_member etc. (see data/schemas/includes_status.yaml); joined/left are ISO dates. | |
founded | string | yes | Foundation date (YYYY, YYYY-MM, YYYY-MM-DD) or decade (e.g. 1950s) when only decade precision is known | |
dissolved | string | yes | Dissolution date (ISO string) for defunct entities. | |
active_period | object | yes | Operational period as {start, end} ISO date strings; end is absent for active entities. | |
headquarters | object | yes | Seat of the organization as {city, country, coordinates{lat,lng}} with an alpha-2 country code. | |
geographic_scope | string | yes | Coverage of the membership: 'global' or 'regional'. Values: global, regional, sub-regional, bilateral. | |
scope_category | string | yes | Entity-kind taxonomy: igo, treaty_body, policy_forum, reference_enumeration, intergovernmental_body, or non_state_organization. This classifies the record itself, not the role of entries in includes. See docs/intblock-inclusion-policy.md. Values: igo, treaty_body, policy_forum, reference_enumeration, intergovernmental_body, non_state_organization. | |
regions | array | yes | Region labels covered by the entity (e.g. 'worldwide', 'europe', 'africa'). | |
partof | any | yes | Parent organization id(s) for suborganizations (string or list in source; normalized to a list in exports). | |
suborganizations | array | full JSON/YAML only | Child entities as {id, name} references to other intblock records. | |
acronyms | array | yes | Known acronyms as {lang, value} pairs. | |
wikidata_id | string | yes | Wikidata entity id (Q-number) for cross-referencing and entity linking. | |
membership_count | integer | yes | Officially stated member count. Interpreted as country members unless membership_count_type says otherwise; compared against the includes roster by validation. | |
membership_count_type | string | yes | Unit of membership_count. When absent, the count is interpreted as country members and is compared against the includes roster. Non-country counts (companies, individual experts, national governing bodies, etc.) are exempt from roster comparison but require provenance for membership_count. Values: countries, organizations, companies, individuals, mixed. | |
membership_applicability | string | full JSON/YAML only | When not_applicable, an empty country/organization includes roster is intentional. The entity may still have institutional or individual members that this dataset does not model (e.g. NGOs), or have no separate member states (e.g. a subsidiary office or fund). Values: not_applicable. | |
founding_members | array | full JSON/YAML only | Country codes of founding members (list). | |
last_verified | string | yes | Date (YYYY-MM-DD) the record was last checked against official sources. | |
description | string | yes | Short text summarizing what the entity is for | |
tags | array | yes | List of keywords for the entity | |
topics | array | yes | List of topics with which this entity is associated | |
other_names | array | yes | Names in multiple languages (UN official languages) | |
notes | string | full JSON/YAML only | Additional notes or historical information about the entity | |
provenance | array | yes | Field-level sourcing for enriched fields | |
legal_status | string | yes | Legal character of the entity (e.g. intergovernmental, treaty, non-binding) | |
recognition_status | string | full JSON/YAML only | How the entity is recognized within a broader system (e.g. UN specialized agency) | |
predecessor | string | yes | Id of the entity this one succeeded | |
successor | string | yes | Id of the entity that succeeded this one | |
previous_names | array | full JSON/YAML only | Former names with the period they were used | |
official_documents | array | full JSON/YAML only | Links to founding or official documents | |
social_media | object | full JSON/YAML only | Social media handles keyed by platform | |
secretariat | object | full JSON/YAML only | Secretariat location and host organization | |
institutional_design | object | yes | What the founding instrument lets the organization decide and enforce. Optional; an absent object or subfield means unknown, not none. Values are defined in data/schemas/institutional_design.yaml. Allowed only on igo, treaty_body, policy_forum and intergovernmental_body records, with provenance. |