Skip to main content

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​

FieldTypeRequiredColumnar exportDescription
codestringyesyesISO 3166-1 alpha-2 country code (primary key). Seven non-standard codes exist; filter code_status = 'official_iso3166_1' for current ISO entries only.
namestringyesyesCountry name in World Bank style (e.g. 'Egypt, Arab Rep.'). English common names are in other_names (id 'en') and common_names.
iso3codestringyesyesISO 3166-1 alpha-3 code. Join key for the borders field, which stores alpha-3 neighbor codes.
numeric_codestringyesyesISO 3166-1 numeric code as a zero-padded string (e.g. '004').
capital_cityobjectyesCapital or de facto seat of government with name and optional lat/lng coordinates. Absent by design for uninhabited territories and groupings.
regionobjectyesWorld 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.
adminregionobjectyesWorld 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.
incomeLevelobjectyesWorld Bank income classification as {id, value} (e.g. id 'HIC', value 'High income'). Absent for 8 unclassified entities.
lendingTypeobjectyesWorld Bank lending category as {id, value} (e.g. IBRD, IDA, Blend). Absent for 8 unclassified entities.
wikidata_idstringyesWikidata entity id (Q-number) for cross-referencing and entity linking.
geonames_idstringyesGeoNames integer feature id for the country/territory (as string). Expected for current official ISO 3166-1 records; source-specific exceptions are documented separately.
ioc_codestringyesInternational Olympic Committee three-letter NOC code when assigned; not every ISO entity has an NOC.
fifa_codestringyesFIFA three-letter Member Association code when assigned; FIFA association coverage is not identical to ISO country coverage.
fips_codestringyesLegacy 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.
bboxobjectyesOptional geographic bounding box {west, east, north, south} in WGS84 degrees.
official_namestringyesOfficial long-form state name (e.g. 'Arab Republic of Egypt').
languagesarrayyesSpoken/official languages as a list of {code, name, official} objects.
currenciesarrayyesCirculating currencies as a list of {code, name, symbol} objects with ISO 4217 codes.
un_memberbooleanyesTrue when the entity is a United Nations member state. See un_status for the three-way member/observer/non_member distinction.
un_statusstringyesUnited 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.
independentbooleanyesTrue when the entity is a widely recognized sovereign state. Explicitly false on non-standard-code records (disputed territories, groupings).
subregionstringyesUN M49 subregion label (e.g. 'South-Eastern Asia'). Statistical convenience only; implies no political affiliation.
continentsarrayyesContinent names the entity belongs to (list; transcontinental states list several).
bordersarrayyesLand border neighbors as ISO 3166-1 alpha-3 codes (e.g. CAN, MEX)
populationobject | nullyesPopulation indicator struct {value, year, source, source_id}. Use .value for the number; year is null when the reference year is unknown (never 0).
areaobject | nullyesLand area indicator struct {value, year, source, source_id} in square kilometres. Use .value for the number.
giniobject | nullyesGini income-inequality index struct {value, year, source, source_id}. Sparse: roughly a third of records have no value.
centroidobjectyesGeographic centroid as {lat, lng}.
native_namesobjectyesNames 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.
landlockedbooleanyesTrue when the entity has no coastline. Non-ISO records may be landlocked with an empty borders list (borders holds alpha-3 codes only).
timezonesarrayyesIANA/UTC timezone offsets covering the territory. Empty for uninhabited territories (see timezone_status).
timezone_statusstringyesMarker explaining an empty timezones list, e.g. 'not_applicable' for uninhabited territories. Values: not_applicable.
tldstringyesCountry-code top-level internet domain (e.g. '.th').
calling_codesarrayyesInternational telephone calling codes (list of strings).
flag_emojistringyesUnicode flag emoji for the country code.
car_sidestringyesDriving side: 'left' or 'right'. Values: left, right.
writing_directionsarrayyesWriting direction(s) in use; ids from data/vocabs/writing_directions.yaml (ltr, rtl, ttb).
writing_systemsarrayyesWriting system(s) in use; ids from data/vocabs/writing_systems.yaml.
dvd_regionintegeryesCommercial DVD region code (1-6) when assigned.
broadcast_systemsarrayyesTelevision/broadcast standard(s); ids from data/vocabs/broadcast_systems.yaml.
legal_systemsarrayyesLegal tradition(s); ids from data/vocabs/legal_systems.yaml. Not government form.
rail_gaugesarrayyesRailway track gauge(s); ids from data/vocabs/rail_gauges.yaml.
start_of_weekstringyesFirst day of the working week (e.g. 'monday', 'sunday'). Values: monday, saturday, sunday.
demonymsobjectyesDemonyms as {female, male} strings in English.
other_namesarrayyesNames in multiple languages (UN official languages)
common_namesarrayyesCommon English names and alternative names for the country
m49_codestringyesUN M49 numeric code (3-digit code for countries)
entity_typestringyesyesEntity 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_statusstringyesyesCode 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_statusobjectyesRecognition metadata for non-standard entities: {status, un_member, notes} explaining disputed, dissolved, or collective-grouping records.
parent_entityobjectyesParent state {code, name} for dependent territories and special administrative regions.
provenancearrayyesField-level sourcing entries {field, source, url, retrieved_at, license, note} documenting where enriched values came from.

intblocks​

FieldTypeRequiredColumnar exportDescription
idstringyesyesStable uppercase identifier (primary key), e.g. EU, NATO, UN. Renames are tracked in data/datasets/intblocks_aliases.json.
namestringyesyesOfficial English name of the organization, group, or agreement.
blocktypearrayyesyesTaxonomy keys from the blocktypes dataset (list). The record's directory under data/intblocks/ matches the primary blocktype.
statusstringyesyesFormality of the entity: e.g. 'formal' (treaty-based organization) or informal grouping. Values: formal, informal, de-facto, historical.
languagesarrayyesOfficial/working languages as ISO 639-1 codes.
linksarrayyesRelated URLs as {url, type} where type is website, wikipedia, or wikidata.
includesarrayyesMembership 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.
foundedstringyesFoundation date (YYYY, YYYY-MM, YYYY-MM-DD) or decade (e.g. 1950s) when only decade precision is known
dissolvedstringyesDissolution date (ISO string) for defunct entities.
active_periodobjectyesOperational period as {start, end} ISO date strings; end is absent for active entities.
headquartersobjectyesSeat of the organization as {city, country, coordinates{lat,lng}} with an alpha-2 country code.
geographic_scopestringyesCoverage of the membership: 'global' or 'regional'. Values: global, regional, sub-regional, bilateral.
scope_categorystringyesEntity-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.
regionsarrayyesRegion labels covered by the entity (e.g. 'worldwide', 'europe', 'africa').
partofanyyesParent organization id(s) for suborganizations (string or list in source; normalized to a list in exports).
suborganizationsarrayfull JSON/YAML onlyChild entities as {id, name} references to other intblock records.
acronymsarrayyesKnown acronyms as {lang, value} pairs.
wikidata_idstringyesWikidata entity id (Q-number) for cross-referencing and entity linking.
membership_countintegeryesOfficially stated member count. Interpreted as country members unless membership_count_type says otherwise; compared against the includes roster by validation.
membership_count_typestringyesUnit 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_applicabilitystringfull JSON/YAML onlyWhen 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_membersarrayfull JSON/YAML onlyCountry codes of founding members (list).
last_verifiedstringyesDate (YYYY-MM-DD) the record was last checked against official sources.
descriptionstringyesShort text summarizing what the entity is for
tagsarrayyesList of keywords for the entity
topicsarrayyesList of topics with which this entity is associated
other_namesarrayyesNames in multiple languages (UN official languages)
notesstringfull JSON/YAML onlyAdditional notes or historical information about the entity
provenancearrayyesField-level sourcing for enriched fields
legal_statusstringyesLegal character of the entity (e.g. intergovernmental, treaty, non-binding)
recognition_statusstringfull JSON/YAML onlyHow the entity is recognized within a broader system (e.g. UN specialized agency)
predecessorstringyesId of the entity this one succeeded
successorstringyesId of the entity that succeeded this one
previous_namesarrayfull JSON/YAML onlyFormer names with the period they were used
official_documentsarrayfull JSON/YAML onlyLinks to founding or official documents
social_mediaobjectfull JSON/YAML onlySocial media handles keyed by platform
secretariatobjectfull JSON/YAML onlySecretariat location and host organization
institutional_designobjectyesWhat 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.