The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 17 new columns ({'geographic', 'meeting', 'thematic_coding', 'content', 'meeting_text', 'urls_records', 'voting_totals', 'identifiers', 'urls_draft', 'administrative', 'urls_resolution', 'dates', 'member_state_votes', 'urls_meeting', 'draft_from_file1', 'resolution_text_multilingual', 'resolution_text'}) and 17 missing columns ({'date', 'vetoing_countries', 'record_url', 'total_no', 'num_vetoing_pms', 'reason', 'draft_url', 'veto_id', 'voting_found', 'agenda', 'total_yes', 'votes_by_member', 'short_agenda', 'meeting_record', 'draft_resolution', 'total_abstentions', 'year'}).
This happened while the json dataset builder was generating data using
hf://datasets/Ayushnangia/ana_v2.1_final_full/unified_unsc_resolutions.jsonl (at revision 6ca2c7f6886d70bf50d3b9ec0c4b8525fa212135)
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1831, in _prepare_split_single
writer.write_table(table)
File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 714, in write_table
pa_table = table_cast(pa_table, self._schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2272, in table_cast
return cast_table_to_schema(table, schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
identifiers: struct<symbol: string, res_no: int64, year: int64, doc_id: string, body: string, doctype: string, ca (... 18 chars omitted)
child 0, symbol: string
child 1, res_no: int64
child 2, year: int64
child 3, doc_id: string
child 4, body: string
child 5, doctype: string
child 6, call_number: string
dates: struct<date: timestamp[s], vote_date: timestamp[s]>
child 0, date: timestamp[s]
child 1, vote_date: timestamp[s]
meeting: struct<meeting_record: string, meeting_no: double>
child 0, meeting_record: string
child 1, meeting_no: double
content: struct<title: string, summary: null, topic: string, subjects: string, agenda_information: null, othe (... 32 chars omitted)
child 0, title: string
child 1, summary: null
child 2, topic: string
child 3, subjects: string
child 4, agenda_information: null
child 5, other_titles: string
child 6, notes: string
thematic_coding: struct<chapter6: bool, chapter7: bool, chapter8: bool, human_rights: bool, peace_threat: bool, peace (... 52 chars omitted)
child 0, chapter6: bool
child 1, chapter7: bool
child 2, chapter8: bool
child 3, human_rights: bool
child 4, peace_threat: bool
child 5, peace_breach: bool
child 6, self_defence: bool
child 7, aggression: bool
resolution_text: struct<text_en: string, char_count: int64, page_count: double, sentence_count: int64, token_count: i (... 24 chars omitted)
child 0, text_en: string
child 1, char_count: int64
child 2, page_count: double
child 3,
...
ha3: string, iso_name: string, m49_countrycode: string, m49_region: string, m49_region (... 46 chars omitted)
child 0, iso_alpha3: string
child 1, iso_name: string
child 2, m49_countrycode: string
child 3, m49_region: string
child 4, m49_region_sub: string
child 5, m49_region_intermediate: string
urls_resolution: struct<en: string, ar: null, es: string, fr: string, ru: string, zh: string>
child 0, en: string
child 1, ar: null
child 2, es: string
child 3, fr: string
child 4, ru: string
child 5, zh: string
urls_draft: struct<en: string, ar: null, es: string, fr: string, ru: string, zh: string>
child 0, en: string
child 1, ar: null
child 2, es: string
child 3, fr: string
child 4, ru: string
child 5, zh: string
urls_meeting: struct<en: string, ar: null, es: string, fr: string, ru: string, zh: string>
child 0, en: string
child 1, ar: null
child 2, es: string
child 3, fr: string
child 4, ru: string
child 5, zh: string
urls_records: struct<main: string, draft: string, meeting: string>
child 0, main: string
child 1, draft: string
child 2, meeting: string
administrative: struct<series: null, doi_concept: string, doi_version: string, license: string, version: timestamp[s (... 70 chars omitted)
child 0, series: null
child 1, doi_concept: string
child 2, doi_version: string
child 3, license: string
child 4, version: timestamp[s]
child 5, related_resource: string
child 6, committee_report: null
child 7, contains: string
to
{'veto_id': Value('int64'), 'year': Value('int64'), 'date': Value('timestamp[s]'), 'draft_resolution': Value('string'), 'meeting_record': Value('string'), 'agenda': Value('string'), 'short_agenda': Value('string'), 'vetoing_countries': List(Value('string')), 'num_vetoing_pms': Value('int64'), 'draft_url': Value('string'), 'record_url': Value('string'), 'draft_pdf': {'has_pdf': Value('bool'), 'filename': Value('string'), 'text': Value('string'), 'char_count': Value('int64'), 'page_count': Value('int64'), 'extraction_error': Value('null')}, 'voting_found': Value('bool'), 'votes_by_member': List({'country': Value('string'), 'vote': Value('string'), 'permanent_member': Value('bool')}), 'total_yes': Value('int64'), 'total_no': Value('int64'), 'total_abstentions': Value('int64'), 'reason': Value('string')}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1455, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1054, in convert_to_parquet
builder.download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 894, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 970, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1702, in _prepare_split
for job_id, done, content in self._prepare_split_single(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1833, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 17 new columns ({'geographic', 'meeting', 'thematic_coding', 'content', 'meeting_text', 'urls_records', 'voting_totals', 'identifiers', 'urls_draft', 'administrative', 'urls_resolution', 'dates', 'member_state_votes', 'urls_meeting', 'draft_from_file1', 'resolution_text_multilingual', 'resolution_text'}) and 17 missing columns ({'date', 'vetoing_countries', 'record_url', 'total_no', 'num_vetoing_pms', 'reason', 'draft_url', 'veto_id', 'voting_found', 'agenda', 'total_yes', 'votes_by_member', 'short_agenda', 'meeting_record', 'draft_resolution', 'total_abstentions', 'year'}).
This happened while the json dataset builder was generating data using
hf://datasets/Ayushnangia/ana_v2.1_final_full/unified_unsc_resolutions.jsonl (at revision 6ca2c7f6886d70bf50d3b9ec0c4b8525fa212135)
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
veto_id int64 | year int64 | date timestamp[us] | draft_resolution string | meeting_record string | agenda string | short_agenda string | vetoing_countries list | num_vetoing_pms int64 | draft_url string | record_url string | draft_pdf dict | voting_found bool | votes_by_member list | total_yes int64 | total_no int64 | total_abstentions int64 | reason string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | 2,025 | 2025-09-18T00:00:00 | S/2025/583 | 10000 | The situation in the Middle East, including the Palestinian question | Middle East, including Palestinian question | [
"USA"
] | 1 | https://docs.un.org/S/2025/583 | https://undocs.org/en/S/PV.10000 | {
"has_pdf": true,
"filename": "draft_S_2025_583.pdf",
"text": " United Nations S/2025/583 \n Security Council \nDistr.: General \n18 September 2025 \n \nOriginal: English \n \n25-14898 (E) 220925 \n*2514898* \n \n Algeria, Denmark, Greece, Guyana, Pakistan, Panama, Republic \nof Korea, Sierra... | true | [
{
"country": "Algeria",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "Y",
"permanent_member": true
},
{
"country": "Denmark",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
... | 14 | 1 | 0 | |
2 | 2,025 | 2025-06-04T00:00:00 | S/2025/353 | 9929 | The situation in the Middle East, including the Palestinian question | Middle East, including Palestinian question | [
"USA"
] | 1 | https://undocs.org/S/2025/353 | https://undocs.org/en/S/PV.9929 | {
"has_pdf": true,
"filename": "draft_S_2025_353.pdf",
"text": " United Nations S/2025/353 \n Security Council \nDistr.: General \n4 June 2025 \n \nOriginal: English \n \n25-08520 (E) 090625 \n*2508520* \n \n Algeria, Denmark, Greece, Guyana, Pakistan, Panama, Republic \nof Korea, Sierra Leone, S... | true | [
{
"country": "Algeria",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "Y",
"permanent_member": true
},
{
"country": "Denmark",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
... | 14 | 1 | 0 | |
3 | 2,025 | 2025-02-24T00:00:00 | S/2025/116 | 9866 | Maintenance of peace and security of Ukraine | Ukraine | [
"RUSSIA/USSR"
] | 1 | https://undocs.org/en/S/2025/116 | https://undocs.org/en/S/PV.9866 | {
"has_pdf": true,
"filename": "draft_S_2025_116.pdf",
"text": " United Nations S/2025/116 \n Security Council \nDistr.: General \n24 February 2025 \n \nOriginal: English \n \n25-03072 (E) 260225 \n*2503072* \n \nDenmark, France, Greece, Slovenia and United Kingdom of Great \nBritain and Northe... | true | [
{
"country": "Algeria",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "Y",
"permanent_member": true
},
{
"country": "Denmark",
"vote": "A",
"permanent_member": false
},
{
"country": "France",
"vote": "A",
"permanent_member": true
... | 10 | 0 | 5 | |
4 | 2,025 | 2025-02-24T00:00:00 | S/2025/115 | 9866 | Maintenance of peace and security of Ukraine | Ukraine | [
"RUSSIA/USSR"
] | 1 | https://undocs.org/en/S/2025/115 | https://undocs.org/en/S/PV.9866 | {
"has_pdf": true,
"filename": "draft_S_2025_115.pdf",
"text": " United Nations S/2025/115 \n Security Council Distr.: General \n24 February 2025 \n \nOriginal: English \n \n25-03071 (E) 2 60225 \n*2503071* \n \n \n Denmark, France, Greece, Slovenia and United Kingdom of Great \nBritain and Northe... | true | [
{
"country": "Algeria",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "Y",
"permanent_member": true
},
{
"country": "Denmark",
"vote": "A",
"permanent_member": false
},
{
"country": "France",
"vote": "A",
"permanent_member": true
... | 10 | 0 | 5 | |
5 | 2,024 | 2024-11-20T00:00:00 | S/2024/835 | 9790 | The situation in the Middle East, including the Palestinian question | Middle East, including Palestinian question | [
"USA"
] | 1 | https://undocs.org/en/S/2024/835 | https://undocs.org/en/S/PV.9790 | {
"has_pdf": true,
"filename": "draft_S_2024_835.pdf",
"text": " United Nations S/2024/835 \n Security Council Distr.: General \n20 November 2024 \n \nOriginal: English \n \n24-20468 (E) 2 21124 \n*2420468* \n \n Algeria, Ecuador, Guyana, Japan, Malta, Mozambique, Republic \nof Korea, Sierra Leone... | true | [
{
"country": "Algeria",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "Y",
"permanent_member": true
},
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
... | 14 | 1 | 0 | |
6 | 2,024 | 2024-11-18T00:00:00 | S/2024/826 | 9786 | Reports of the Secretary-General on the Sudan and South Sudan | Sudan and South Sudan | [
"RUSSIA/USSR"
] | 1 | https://undocs.org/en/S/2024/826 | https://undocs.org/en/S/PV.9786 | {
"has_pdf": true,
"filename": "draft_S_2024_826.pdf",
"text": " United Nations S/2024/826 \n Security Council Distr.: General \n18 November 2024 \n \nOriginal: English \n \n24-21045 (E) 201124 \n*2421045* \n \n Sierra Leone and United Kingdom of Great Britain and Northern \nIreland: draft resolu... | true | [
{
"country": "Algeria",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "Y",
"permanent_member": true
},
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
... | 14 | 1 | 0 | |
7 | 2,024 | 2024-04-24T00:00:00 | S/2024/302 | 9616 | Non-proliferation | Non-proliferation | [
"RUSSIA/USSR"
] | 1 | https://undocs.org/en/S/2024/302 | https://undocs.org/en/S/PV.9616 | {
"has_pdf": true,
"filename": "draft_S_2024_302.pdf",
"text": " United Nations S/2024/302 \n Security Council Distr.: General \n24 April 2024 \n \nOriginal: English \n \n24-07462 (E) 2 60424 \n*2407462* \n \n Albania, Antigua and Barbuda, Argentina, Australia, Bahamas, \nBangladesh, Belgium, Bosn... | true | [
{
"country": "Algeria",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "A",
"permanent_member": true
},
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
... | 13 | 1 | 1 | |
8 | 2,024 | 2024-04-18T00:00:00 | S/2024/312 | 9609 | Admission of new members | Admission of new Members | [
"USA"
] | 1 | https://undocs.org/en/S/2024/312 | https://undocs.org/en/S/PV.9609 | {
"has_pdf": true,
"filename": "draft_S_2024_312.pdf",
"text": " United Nations S/2024/312 \n Security Council Distr.: General \n18 April 2024 \n \nOriginal: English \n \n24-07138 (E) 220424 \n*2407138* \n \n Algeria: draft resolution \n \n \n The Security Council , \n Having examined the appli... | true | [
{
"country": "Algeria",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "Y",
"permanent_member": true
},
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
... | 12 | 1 | 2 | |
9 | 2,024 | 2024-03-28T00:00:00 | S/2024/255 | 9591 | Non-proliferation/Democratic People's Republic of Korea | Non-proliferation/DPRK | [
"RUSSIA/USSR"
] | 1 | https://undocs.org/en/S/2024/255 | https://undocs.org/en/S/PV.9591 | {
"has_pdf": true,
"filename": "draft_S_2024_255.pdf",
"text": " United Nations S/2024/255 \n Security Council Distr.: General \n28 March 2024 \n \nOriginal: English \n \n24-05905 (E) 020424 \n*2405905* \n \nUnited States of America: draft resolution \n \n \n The Security Council , \n Recalling i... | true | [
{
"country": "Algeria",
"vote": "Y",
"permanent_member": false
},
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
},
{
"country": "Guyana",
"vote": "Y",
"permanent_member": fals... | 13 | 1 | 1 | |
10 | 2,024 | 2024-03-22T00:00:00 | S/2024/239 | 9584 | The situation in the Middle East, including the Palestinian question | Middle East, including Palestinian question | [
"CHINA",
"RUSSIA/USSR"
] | 2 | https://undocs.org/en/S/2024/239 | https://undocs.org/en/S/PV.9584 | {
"has_pdf": true,
"filename": "draft_S_2024_239.pdf",
"text": " United Nations S/2024/239 \n Security Council Distr.: General \n22 March 2024 \n \nOriginal: English \n \n24-05580 (E) 2 60324 \n*2405580* \n \n United States of America: draft resolution \n \n \n The Security Council , \n Reaffirmi... | true | [
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
},
{
"country": "Japan",
"vote": "Y",
"permanent_member": false
},
{
"country": "Malta",
"vote": "Y",
"permanent_member": false
... | 11 | 3 | 1 | |
11 | 2,024 | 2024-02-20T00:00:00 | S/2024/173 | 9552 | The situation in the Middle East, including the Palestinian question | Middle East, including Palestinian question | [
"USA"
] | 1 | https://undocs.org/en/S/2024/173 | https://undocs.org/en/S/PV.9552 | {
"has_pdf": true,
"filename": "draft_S_2024_173.pdf",
"text": " United Nations S/2024/173 \n Security Council Distr.: General \n20 February 2024 \n \nOriginal: English \n \n24-03217 (E) 220224 \n*2403217* \n \n Algeria: draft resolution \n \n \n The Security Council , \n Reaffirming the purpos... | true | [
{
"country": "Algeria",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "Y",
"permanent_member": true
},
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
... | 13 | 1 | 1 | |
12 | 2,023 | 2023-12-22T00:00:00 | Oral amendment | 9520 | The situation in the Middle East, including the Palestinian question | Middle East, including Palestinian question | [
"USA"
] | 1 | https://undocs.org/en/S/PV.9520 | https://undocs.org/en/S/PV.9520 | {
"has_pdf": false,
"filename": null,
"text": null,
"char_count": 0,
"page_count": 0,
"extraction_error": null
} | true | [
{
"country": "Albania",
"vote": "A",
"permanent_member": false
},
{
"country": "Brazil",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "Y",
"permanent_member": true
},
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false... | 10 | 1 | 4 | |
13 | 2,023 | 2023-12-08T00:00:00 | S/2023/970 | 9499 | The situation in the Middle East, including the Palestinian question | Middle East, including Palestinian question | [
"USA"
] | 1 | https://undocs.org/en/S/2023/970 | https://undocs.org/en/S/PV.9499 | {
"has_pdf": true,
"filename": "draft_S_2023_970.pdf",
"text": " United Nations S/2023/970 \n Security Council Distr.: General \n8 December 2023 \n \nOriginal: English \n \n23-24906 (E) 131223 \n*2324906* \n \n Afghanistan, Andorra, Angola, Antigua and Barbuda, Argentina, \nAzerbaijan, Bahamas... | true | [
{
"country": "Albania",
"vote": "Y",
"permanent_member": false
},
{
"country": "Brazil",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "Y",
"permanent_member": true
},
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false... | 13 | 1 | 1 | |
14 | 2,023 | 2023-10-25T00:00:00 | S/2023/792 | 9453 | The situation in the Middle East, including the Palestinian question | Middle East, including Palestinian question | [
"CHINA",
"RUSSIA/USSR"
] | 2 | https://undocs.org/en/S/2023/792 | https://undocs.org/en/S/PV.9453 | {
"has_pdf": true,
"filename": "draft_S_2023_792.pdf",
"text": " United Nations S/2023/792 \n Security Council Distr.: General \n25 October 2023 \n \nOriginal: English \n \n23-20737 (E) 271023 \n*2320737* \n \n United States of America: draft resolution \n \n \n The Security Council , \n Reaffir... | true | [
{
"country": "Albania",
"vote": "Y",
"permanent_member": false
},
{
"country": "Brazil",
"vote": "A",
"permanent_member": false
},
{
"country": "China",
"vote": "N",
"permanent_member": true
},
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false... | 10 | 3 | 2 | |
15 | 2,023 | 2023-10-18T00:00:00 | S/2023/773 | 9442 | The situation in the Middle East, including the Palestinian question | Middle East, including Palestinian question | [
"USA"
] | 1 | https://undocs.org/en/S/2023/773 | https://undocs.org/en/S/PV.9442 | {
"has_pdf": true,
"filename": "draft_S_2023_773.pdf",
"text": " United Nations S/2023/773 \n Security Council Distr.: General \n18 October 2023 \n \nOriginal: English \n \n23-20284 (E) 201023 \n*2320284* \n \nBrazil: draft resolution \n \n \n The Security Council , \n Guided by the purposes a... | true | [
{
"country": "Albania",
"vote": "Y",
"permanent_member": false
},
{
"country": "Brazil",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "Y",
"permanent_member": true
},
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false... | 12 | 1 | 2 | |
16 | 2,023 | 2023-08-30T00:00:00 | S/2023/638 | 9408 | The situation in Mali | Mali | [
"RUSSIA/USSR"
] | 1 | https://undocs.org/en/S/2023/638 | https://undocs.org/en/S/PV.9408 | {
"has_pdf": true,
"filename": "draft_S_2023_638.pdf",
"text": " United Nations S/2023/638 \n Security Council Distr.: General \n30 August 2023 \n \nOriginal: English \n \n23-16801 (E) 010923 \n*2316801* \n \n France and United Arab Emirates: draft resolution \n \n \n The Security Council , \n... | true | [
{
"country": "Albania",
"vote": "Y",
"permanent_member": false
},
{
"country": "Brazil",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "A",
"permanent_member": true
},
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false... | 13 | 1 | 1 | |
17 | 2,023 | 2023-07-11T00:00:00 | S/2023/506 | 9371 | The situation in the Middle East | Middle East (Syria) | [
"RUSSIA/USSR"
] | 1 | https://undocs.org/en/S/2023/506 | https://undocs.org/en/S/PV.9371 | {
"has_pdf": true,
"filename": "draft_S_2023_506.pdf",
"text": " United Nations S/2023/506 \n Security Council Distr.: General \n11 July 2023 \n \nOriginal: English \n \n23-13545 (E) 130723 \n*2313545* \n \n Brazil and Switzerland: draft resolution \n \n \n The Security Council , \n Recalling... | true | [
{
"country": "Albania",
"vote": "Y",
"permanent_member": false
},
{
"country": "Brazil",
"vote": "Y",
"permanent_member": false
},
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": tru... | 13 | 1 | 1 | |
18 | 2,022 | 2022-09-30T00:00:00 | S/2022/720 | 9143 | Maintenance of peace and security of Ukraine | Maintenance of peace and security of Ukraine | [
"RUSSIA/USSR"
] | 1 | https://undocs.org/en/S/2022/720 | https://undocs.org/en/S/PV.9143 | {
"has_pdf": true,
"filename": "draft_S_2022_720.pdf",
"text": " United Nations S/2022/720 \n Security Council Distr.: General \n30 September 2022 \n \nOriginal: English \n \n22-22595 (E) 041022 \n*2222595* \n \n Albania and United States of America: draft resolution \n \n \n The Security Cou... | true | [
{
"country": "Albania",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
},
{
"country": "Ghana",
"vote": "Y",
"permanent_member": false
},
{
"country": "Ireland",
"vote": "Y",
"permanent_member": false... | 10 | 1 | 4 | |
19 | 2,022 | 2022-07-08T00:00:00 | S/2022/538 | 9087 | The situation in the Middle East | Middle East (Syria) | [
"RUSSIA/USSR"
] | 1 | https://undocs.org/en/S/2022/538 | https://undocs.org/en/S/PV.9087 | {
"has_pdf": true,
"filename": "draft_S_2022_538.pdf",
"text": " United Nations S/2022/538 \n Security Council Distr.: General \n8 July 2022 \n \nOriginal: English \n \n22-10874 (E) 1 30722 \n*2210874* \n \n Ireland and Norway: draft resolution \n \n \n The Security Council , \n Recalling its... | true | [
{
"country": "Albania",
"vote": "Y",
"permanent_member": false
},
{
"country": "Brazil",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
},
{
"country": "Gabon",
"vote": "Y",
"permanent_member": false
... | 13 | 1 | 1 | |
20 | 2,022 | 2022-05-26T00:00:00 | S/2022/431 | 9048 | Non-proliferation/Democratic People's Republic of Korea | Non-proliferation/DPRK | [
"CHINA",
"RUSSIA/USSR"
] | 2 | https://undocs.org/S/2022/431 | https://undocs.org/S/PV.9048 | {
"has_pdf": true,
"filename": "draft_S_2022_431.pdf",
"text": " United Nations S/2022/431 \n Security Council Distr.: General \n26 May 2022 \n \nOriginal: English \n \n22-08050 (E) 310522 \n*2208050* \n \n United States of America: draft resolution \n \n \n The Security Council , \n Recalling i... | true | [
{
"country": "Albania",
"vote": "Y",
"permanent_member": false
},
{
"country": "Brazil",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
},
{
"country": "Gabon",
"vote": "Y",
"permanent_member": false
... | 13 | 2 | 0 | |
21 | 2,022 | 2022-02-25T00:00:00 | S/2022/155 | 8979 | Letter dated 28 February 2014 from the Permanent Representative of Ukraine to the United Nations addressed to the President of the Security Council (S/2014/136) | 2014 Letter from Ukraine (Ukraine) | [
"RUSSIA/USSR"
] | 1 | https://undocs.org/S/2022/155 | https://undocs.org/en/S/PV.8979 | {
"has_pdf": true,
"filename": "draft_S_2022_155.pdf",
"text": " United Nations S/2022/155 \n Security Council \nDistr.: General \n25 February 2022 \n \nOriginal: English \n \n22-02867 (E) 280222 \n*2202867* \n \n Albania, Andorra, Antigua and Barbuda, Australia, Austria, \nBahamas, Barbados, B... | true | [
{
"country": "Albania",
"vote": "Y",
"permanent_member": false
},
{
"country": "Brazil",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
},
{
"country": "Gabon",
"vote": "Y",
"permanent_member": false
... | 11 | 1 | 3 | |
22 | 2,021 | 2021-12-13T00:00:00 | S/2021/990 | 8926 | Maintenance of international peace and security | Maintenance of international peace and security | [
"RUSSIA/USSR"
] | 1 | https://undocs.org/S/2021/990 | https://undocs.org/S/PV.8926 | {
"has_pdf": true,
"filename": "draft_S_2021_990.pdf",
"text": " United Nations S/2021/990 \n Security Council Distr.: General \n13 December 2021 \n \nOriginal: English \n \n21-18843 (E) 151221 \n*2118843* \n \n Afghanistan, Albania, Andorra, Antigua and Barbuda, Armenia, \nAustralia, Austria, Ba... | true | [
{
"country": "Estonia",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
},
{
"country": "Ireland",
"vote": "Y",
"permanent_member": false
},
{
"country": "Kenya",
"vote": "Y",
"permanent_member": false... | 12 | 2 | 1 |
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Unified UNSC Resolutions Dataset - Complete Documentation
File: unified_unsc_resolutions.jsonl
Format: JSON Lines (one JSON object per line)
Total Records: 2,767 resolutions
Date Range: January 1946 - December 2024 (79 years)
File Size: ~520 MB
π Executive Summary
This unified dataset combines data from three source files to create the most comprehensive UNSC resolutions database:
- Base: File 1 (CR-UNSC_2024-05-19_ALL_CSV_FULL.csv) - 2,722 resolutions (1946-2024 Jan) with full text and metadata
- Enrichment 1: File 2 (2025_7_21_sc_voting.csv) - Individual country voting data (complete 2024)
- Enrichment 2: File 3 (sc_voting_with_drafts_final.jsonl) - Extracted draft PDF text (complete 2024)
- 2024 Extension: 45 additional resolutions (Feb-Dec 2024) from Files 2 & 3 only
π― Key Statistics:
- β 100% have complete metadata from File 1
- β 100% have individual member state votes (File 2)
- β 97.7% have draft symbols (File 1)
- β 97.3% have draft text (96.4% from File 1, 62.9% from File 3)
- β 99.9% have multilingual text (6 languages)
- β 100% have URLs to UN documents
π§ Data Quality Enhancements Applied:
Symbol Normalization - Fixed formatting mismatch between source files
- Achieved 100% member state vote coverage (up from 75.8%)
- See:
MERGE_FIX_NOTES.md
Draft Symbol Addition - Added draft symbol field from File 1
- Improved draft symbol coverage to 97.7%
Vote Type Simplification - Merged "X" (Not Participating) into "A" (Abstain)
- Simplified from 4 vote types to 3 (Y/N/A)
- See:
CONVERSION_X_TO_A_NOTES.md
2024 Completion - Added 45 missing resolutions (Feb-Dec 2024)
- Extended dataset to full year 2024 using Files 2 & 3
- All 46 resolutions from 2024 now included (S/RES/2722 to S/RES/2767)
- Note: Feb-Dec 2024 records lack File 1 data (full text, thematic coding)
π Dataset Structure
Top-Level Organization
Each resolution is a single JSON object with 18 top-level sections:
{
"identifiers": {...}, // FROM FILE 1
"dates": {...}, // FROM FILE 1
"meeting": {...}, // FROM FILE 1
"content": {...}, // FROM FILE 1
"thematic_coding": {...}, // FROM FILE 1 (UNIQUE)
"resolution_text": {...}, // FROM FILE 1
"resolution_text_multilingual": {...}, // FROM FILE 1
"draft_from_file1": {...}, // FROM FILE 1
"draft_pdf": {...}, // FROM FILE 3 (UNIQUE)
"meeting_text": {...}, // FROM FILE 1
"voting_totals": {...}, // FROM FILE 1
"member_state_votes": [...], // FROM FILE 2 (UNIQUE)
"geographic": {...}, // FROM FILE 1
"urls_resolution": {...}, // FROM FILE 1
"urls_draft": {...}, // FROM FILE 1
"urls_meeting": {...}, // FROM FILE 1
"urls_records": {...}, // FROM FILE 1
"administrative": {...} // FROM FILE 1
}
Total Fields: ~108 flattened fields
π Section-by-Section Breakdown
1. IDENTIFIERS (7 fields) - FROM FILE 1
Core identification information for each resolution.
"identifiers": {
"symbol": "S/RES/2758(2024)", // Primary key: Resolution symbol
"res_no": 2758, // Resolution number only
"year": 2024, // Year of adoption
"doc_id": "S_RES_2758_2024_EN_GOLD.txt", // Document ID
"body": "S", // UN Body (Security Council)
"doctype": "RES", // Document type (Resolution)
"call_number": "UNS(01)/R3" // Library call number
}
Source: File 1 (columns: symbol, res_no, year, doc_id, body, doctype, call_number) Coverage: 100% (2,722/2,722)
2. DATES (2 fields) - FROM FILE 1
Temporal information about the resolution.
"dates": {
"date": "2024-01-10", // Date resolution was adopted
"vote_date": "2024-01-10" // Date of vote (may differ from adoption)
}
Source: File 1 (columns: date, vote_date) Coverage: 100%
3. MEETING (2 fields) - FROM FILE 1
Information about the Security Council meeting.
"meeting": {
"meeting_record": "S/PV.9521", // Meeting record symbol
"meeting_no": 9521.0 // Meeting number
}
Source: File 1 (columns: meeting_record, meeting_no) Coverage: 100%
4. CONTENT (7 fields) - FROM FILE 1
Descriptive content about the resolution.
"content": {
"title": "Security Council resolution 2758 (2024) [on extension of mandate...]",
"summary": "Summary text of the resolution...",
"topic": "Extension of mandate for UN mission...",
"subjects": "PEACEKEEPING OPERATIONS|SOUTH SUDAN|UN MISSION IN SOUTH SUDAN",
"agenda_information": "Reports of the Secretary-General on the Sudan and South Sudan",
"other_titles": "Alternative title formats...",
"notes": "Additional notes about the resolution..."
}
Fields:
title: Official title from UN recordssummary: Executive summary (when available)topic: Main topic classificationsubjects: Pipe-separated keywordsagenda_information: Agenda item descriptionother_titles: Alternative title formatsnotes: Additional contextual notes
Source: File 1 (columns: title, summary, topic, subjects, agenda_information, other_titles, notes) Coverage: 100%
5. THEMATIC CODING (8 fields) - FROM FILE 1 β UNIQUE
Boolean flags for thematic classification. This is UNIQUE to File 1 and invaluable for research.
"thematic_coding": {
"chapter6": false, // Chapter VI: Pacific Settlement of Disputes
"chapter7": true, // Chapter VII: Threats to Peace, Acts of Aggression
"chapter8": false, // Chapter VIII: Regional Arrangements
"human_rights": true, // Human rights related
"peace_threat": true, // Addresses threat to peace
"peace_breach": false, // Addresses breach of peace
"self_defence": false, // Self-defense related
"aggression": false // Act of aggression related
}
Statistics:
- 34.2% (932 resolutions) have at least one thematic tag
- Chapter VII (Peace & Security): 896 resolutions (32.9%)
- Human Rights: 791 resolutions (29.1%)
- Peace Threat: 421 resolutions (15.5%)
- Chapter VIII (Regional): 57 resolutions (2.1%)
- Chapter VI (Pacific Settlement): 9 resolutions (0.3%)
- Peace Breach: 5 resolutions (0.2%)
Source: File 1 (columns: chapter6, chapter7, chapter8, human_rights, peace_threat, peace_breach, self_defence, aggression) Coverage: 34.2% have tags (rest are null/false)
6. RESOLUTION TEXT (6 fields) - FROM FILE 1
Full English text of the adopted resolution with statistics.
"resolution_text": {
"text_en": "Full text of the resolution in English...",
"char_count": 5432, // Character count
"page_count": 3.0, // Number of pages
"sentence_count": 45, // Number of sentences
"token_count": 1203, // Number of tokens/words
"type_count": 456 // Number of unique word types
}
Source: File 1 (columns: text, nchars, npages, nsentences, ntokens, ntypes) Coverage: 100% Average Resolution Length:
- ~4,500 characters
- ~3 pages
- ~900 words
7. RESOLUTION TEXT MULTILINGUAL (5 fields) - FROM FILE 1
Full resolution text in the 5 other official UN languages.
"resolution_text_multilingual": {
"text_ar": "Arabic text...", // Arabic
"text_es": "Spanish text...", // Spanish (EspaΓ±ol)
"text_fr": "French text...", // French (FranΓ§ais)
"text_ru": "Russian text...", // Russian (Π ΡΡΡΠΊΠΈΠΉ)
"text_zh": "Chinese text..." // Chinese (δΈζ)
}
Source: File 1 (columns: text_ar, text_es, text_fr, text_ru, text_zh) Coverage: 99.9% (2,719/2,722) Note: This is why the file is 514 MB. Remove these fields to reduce to ~100 MB.
8. DRAFT FROM FILE 1 (2 fields) - FROM FILE 1
Draft resolution text and symbol as stored in File 1.
"draft_from_file1": {
"draft_symbol": "S/2024/12", // Draft document symbol
"text_draft": "Full text of the draft resolution..."
}
Source: File 1 (columns: draft, text_draft) Coverage:
- Draft symbol: 97.7% (2,659/2,722)
- Draft text: 96.4% (2,623/2,722)
9. DRAFT PDF (5 fields) - FROM FILE 3 β UNIQUE
Draft resolution text extracted from PDF files. This is UNIQUE to File 3 and provides additional draft coverage.
"draft_pdf": {
"draft_symbol": "S/2024/12", // Draft document symbol
"draft_text": "Extracted PDF text...", // Full extracted text
"draft_char_count": 1664, // Character count
"draft_page_count": 1, // Number of pages
"draft_filename": "draft_S_2024_12.pdf" // Original PDF filename
}
Source: File 3 (field: draft_pdf) Coverage: 62.9% (1,712/2,722) Quality: Only includes drafts where text extraction succeeded (no errors)
Combined Draft Coverage:
- Either File 1 OR File 3: 97.3% (2,648/2,722)
- Both sources: 37.8% (1,029/2,722)
- No draft at all: 2.7% (74/2,722)
upFull text of the meeting record/verbatim.
"meeting_text": {
"text": "Full meeting record text..."
}
Source: File 1 (column: text_meeting) Coverage: Varies
11. VOTING TOTALS (7 fields) - FROM FILE 1
Aggregate voting statistics (totals only, not by country).
"voting_totals": {
"vote_yes": 15, // Total yes votes
"vote_no": 0, // Total no votes
"vote_abstention": 0, // Total abstentions (includes not participating)
"vote_nonvote": 0, // Always 0 (merged into vote_abstention)
"vote_total": 15, // Total member states
"vote_detail": "...", // Detailed vote description
"vote_summary": "Adopted unanimously" // Vote summary
}
Source: File 1 (columns: vote_yes, vote_no, vote_abstention, vote_nonvote, vote_total, vote_detail, vote_summary) Coverage: 100%
Note on vote_nonvote: Originally distinguished "not participating" from "abstain", but these have been merged into vote_abstention for simplicity. vote_nonvote is kept as a legacy field (always 0).
Math Check: vote_yes + vote_no + vote_abstention = vote_total
12. MEMBER STATE VOTES (array) - FROM FILE 2 β UNIQUE
Individual member state votes. This is UNIQUE to File 2 and essential for studying voting patterns.
"member_state_votes": [
{
"code": "CHN", // 3-letter country code
"name": "CHINA", // Country name
"vote": "Y", // Vote: Y/N/A (Yes/No/Abstain)
"permanent_member": true // Is P5 member?
},
{
"code": "USA",
"name": "UNITED STATES",
"vote": "Y",
"permanent_member": true
},
{
"code": "FRA",
"name": "FRANCE",
"vote": "Y",
"permanent_member": true
},
{
"code": "GBR",
"name": "UNITED KINGDOM",
"vote": "Y",
"permanent_member": true
},
{
"code": "RUS",
"name": "RUSSIAN FEDERATION",
"vote": "Y",
"permanent_member": true
},
// ... 10 non-permanent members
]
Vote Types:
- Y = Yes (voted in favor)
- N = No (voted against)
- A = Abstain (abstained from voting or not participating)
Source: File 2 (columns: ms_code, ms_name, ms_vote, permanent_member) Coverage: 100% (2,722/2,722)
Notes:
- Security Council has 15 members (5 permanent + 10 rotating)
- Before 1965: 11 members (5 permanent + 6 rotating)
- Any P5 member voting "N" = VETO (resolution fails)
P5 Members (Permanent with Veto Power):
- CHN (China)
- FRA (France)
- GBR (United Kingdom)
- RUS (Russian Federation / USSR before 1991)
- USA (United States)
Country Code Examples:
- P5: CHN (China), FRA (France), GBR (UK), RUS/SUN (Russia/USSR), USA (United States)
- Non-permanent (examples): JPN (Japan), BRA (Brazil), IND (India), etc.
For detailed voting analysis, see: VOTING_REFERENCE.md
13. GEOGRAPHIC (6 fields) - FROM FILE 1
Geographic/country metadata. These appear to be for countries that are subjects of resolutions, not voters.
"geographic": {
"iso_alpha3": "SSD", // ISO 3-letter code
"iso_name": "South Sudan", // Country name
"m49_countrycode": "728", // UN M49 code
"m49_region": "002", // UN region code (Africa=002)
"m49_region_sub": "014", // Sub-region (Eastern Africa=014)
"m49_region_intermediate": null // Intermediate region
}
Source: File 1 (columns: iso_alpha3, iso_name, m49_countrycode, m49_region, m49_region_sub, m49_region_intermediate) Coverage: Partial (not all resolutions concern specific countries)
14. URLS - RESOLUTIONS (6 fields) - FROM FILE 1
Direct links to resolution documents in all 6 UN languages.
"urls_resolution": {
"en": "https://undocs.org/en/S/RES/2758(2024)",
"ar": "https://undocs.org/ar/S/RES/2758(2024)",
"es": "https://undocs.org/es/S/RES/2758(2024)",
"fr": "https://undocs.org/fr/S/RES/2758(2024)",
"ru": "https://undocs.org/ru/S/RES/2758(2024)",
"zh": "https://undocs.org/zh/S/RES/2758(2024)"
}
Source: File 1 (columns: url_res_en, url_res_ar, url_res_es, url_res_fr, url_res_ru, url_res_zh) Coverage: 100%
15. URLS - DRAFTS (6 fields) - FROM FILE 1
Direct links to draft resolution documents in all 6 UN languages.
"urls_draft": {
"en": "https://undocs.org/en/S/2024/12",
"ar": "https://undocs.org/ar/S/2024/12",
"es": "https://undocs.org/es/S/2024/12",
"fr": "https://undocs.org/fr/S/2024/12",
"ru": "https://undocs.org/ru/S/2024/12",
"zh": "https://undocs.org/zh/S/2024/12"
}
Source: File 1 (columns: url_draft_en, url_draft_ar, url_draft_es, url_draft_fr, url_draft_ru, url_draft_zh) Coverage: ~96%
16. URLS - MEETINGS (6 fields) - FROM FILE 1
Direct links to meeting records in all 6 UN languages.
"urls_meeting": {
"en": "https://undocs.org/en/S/PV.9521",
"ar": "https://undocs.org/ar/S/PV.9521",
"es": "https://undocs.org/es/S/PV.9521",
"fr": "https://undocs.org/fr/S/PV.9521",
"ru": "https://undocs.org/ru/S/PV.9521",
"zh": "https://undocs.org/zh/S/PV.9521"
}
Source: File 1 (columns: url_meeting_en, url_meeting_ar, url_meeting_es, url_meeting_fr, url_meeting_ru, url_meeting_zh) Coverage: ~100%
17. URLS - RECORDS (3 fields) - FROM FILE 1
Links to main record pages.
"urls_records": {
"main": "https://digitallibrary.un.org/record/...",
"draft": "https://digitallibrary.un.org/record/...",
"meeting": "https://digitallibrary.un.org/record/..."
}
Source: File 1 (columns: url_record, url_record_draft, url_record_meeting) Coverage: ~100%
18. ADMINISTRATIVE (8 fields) - FROM FILE 1
Administrative metadata and provenance.
"administrative": {
"series": "S/RES", // Document series
"doi_concept": "10.18356/...", // DOI identifier
"doi_version": "10.18356/.../v1", // DOI version
"license": "CC BY 3.0 IGO", // License
"version": "1.0", // Record version
"related_resource": "Related documents...", // Related resources
"committee_report": "Committee reports...", // Committee reports
"contains": "Document contains..." // Contents description
}
Source: File 1 (columns: series, doi_concept, doi_version, license, version, related_resource, committee_report, contains) Coverage: Varies by field
π Data Transformations Applied
1. Symbol Normalization (November 9, 2024)
Problem: Symbol formatting mismatch between files
- File 1:
S/RES/2065 (2012)β space before year - File 2:
S/RES/2065(2012)β no space
Solution: Applied regex normalization to remove spaces before parentheses
Impact:
- Member state vote coverage: 75.8% β 100% β
- Fixed 658 missing matches
- See:
MERGE_FIX_NOTES.md
2. Draft Symbol Field Addition (November 9, 2024)
Problem: Draft symbol from File 1 was not transferred to unified dataset
Solution: Added draft_symbol field to draft_from_file1 section
Impact:
- Draft symbol coverage: 62.9% β 97.7% β
- Improved by 34.8 percentage points
3. Vote Type Simplification (November 9, 2024)
Problem: Source data had 4 vote types (Y/N/A/X) with unclear distinction
Solution: Merged "X" (Not Participating) into "A" (Abstain)
Impact:
- Vote types: 4 β 3 (Y/N/A) β
- Simplified analysis
- 1,258 X votes converted to A (170 resolutions affected)
- See:
CONVERSION_X_TO_A_NOTES.md
4. 2024 Year Completion (November 9, 2024)
Problem: File 1 only had 1 resolution from 2024 (S/RES/2722 from Jan 10)
Solution: Added 45 missing 2024 resolutions (S/RES/2723 through S/RES/2767) using Files 2 & 3
Impact:
- Total resolutions: 2,722 β 2,767 β
- Complete 2024 coverage through December 27
- All 2024 resolutions have: member votes (100%), draft PDF text (100%)
- Missing for Feb-Dec 2024: full resolution text, thematic coding (File 1 only)
π Data Provenance Summary
FROM FILE 1 (Base - 2,722 resolutions)
Provides: Core metadata, full text, thematic coding, URLs, draft text
β Always Present (100%):
- Identifiers (symbol, res_no, year, etc.)
- Dates (date, vote_date)
- Meeting info (meeting_record, meeting_no)
- Content (title, summary, topic, subjects)
- Resolution text (English)
- Voting totals (aggregate numbers)
- URLs (all 21 URL fields)
β Usually Present (96-100%):
- Multilingual text (99.9%)
- Draft symbol (97.7%)
- Draft text (96.4%)
β Partially Present (34%):
- Thematic coding (34.2% tagged)
- Geographic metadata (when relevant)
FROM FILE 2 (Enrichment - 40,929 individual votes)
Provides: Individual member state voting records
β Coverage: 100% (2,722/2,722 resolutions)
Unique Contribution:
- Member state codes (ms_code)
- Member state names (ms_name)
- Individual votes (Y/N/A)
- Permanent member flags
Why 100%?:
- Symbol normalization fix resolved all matching issues
- All resolutions now have individual country votes
FROM FILE 3 (Enrichment - 1,712 draft PDFs)
Provides: Extracted draft resolution PDF text
β Coverage: 62.9% (1,712/2,722 resolutions)
Unique Contribution:
- Draft PDF text (from extracted PDFs)
- Draft metadata (page count, char count, filename)
- Only includes successful extractions (no errors)
Why Not Higher?:
- Not all resolutions have draft PDFs available
- Some PDFs couldn't be extracted
- File 1 already provides most draft text (96.4%)
Value Add:
- Provides 1,712 drafts with clean PDF extraction
- 1,029 resolutions have drafts from BOTH sources (cross-validation)
π Timeline Distribution
Resolutions by decade:
| Decade | Count | Percentage |
|---|---|---|
| 1940s | 78 | 2.9% |
| 1950s | 54 | 2.0% |
| 1960s | 143 | 5.3% |
| 1970s | 186 | 6.8% |
| 1980s | 185 | 6.8% |
| 1990s | 638 | 23.4% |
| 2000s | 623 | 22.9% |
| 2010s | 596 | 21.9% |
| 2020s | 219 | 8.0% |
Notes:
- Significant increase starting in 1990s (post-Cold War)
- Steady high volume in 1990s-2010s
- 2020s incomplete (only through 2024)
π» Usage Examples
1. Loading the Data
Python (pandas):
import pandas as pd
# Load entire dataset
df = pd.read_json('unified_unsc_resolutions.jsonl', lines=True)
# Access basic fields
print(df[['identifiers', 'dates', 'content']].head())
# Get resolution symbols
df['symbol'] = df['identifiers'].apply(lambda x: x['symbol'])
df['year'] = df['identifiers'].apply(lambda x: x['year'])
Python (raw JSON):
import json
with open('unified_unsc_resolutions.jsonl', 'r') as f:
for line in f:
resolution = json.loads(line)
print(resolution['identifiers']['symbol'])
JavaScript/Node.js:
const fs = require('fs');
const readline = require('readline');
const rl = readline.createInterface({
input: fs.createReadStream('unified_unsc_resolutions.jsonl')
});
rl.on('line', (line) => {
const resolution = JSON.parse(line);
console.log(resolution.identifiers.symbol);
});
2. Common Queries
Find all Chapter VII resolutions:
chapter7 = df[df['thematic_coding'].apply(lambda x: x.get('chapter7') == True)]
print(f"Chapter VII resolutions: {len(chapter7)}")
Get resolutions with individual votes:
with_votes = df[df['member_state_votes'].apply(lambda x: x is not None and len(x) > 0)]
print(f"Resolutions with member votes: {len(with_votes)}")
# Result: 2,722 (100%)
Find China's votes on Middle East resolutions:
def get_china_vote(row):
votes = row.get('member_state_votes', [])
if votes:
for v in votes:
if v['code'] == 'CHN':
return v['vote']
return None
df['china_vote'] = df.apply(get_china_vote, axis=1)
middle_east = df[df['content'].apply(lambda x: 'Middle East' in str(x.get('title', '')))]
china_middle_east = middle_east[middle_east['china_vote'].notna()]
print(china_middle_east[['symbol', 'china_vote', 'content']])
Analyze P5 veto patterns:
def check_veto(row):
"""Check if any P5 member voted NO (veto)"""
votes = row.get('member_state_votes', [])
for v in votes:
if v.get('permanent_member') and v.get('vote') == 'N':
return v['name']
return None
df['vetoed_by'] = df.apply(check_veto, axis=1)
vetoes = df[df['vetoed_by'].notna()]
print(f"Resolutions with P5 veto: {len(vetoes)}")
# Note: Most vetoes prevent adoption, check sc_vetoed_drafts.jsonl for failed drafts
Get resolutions about South Sudan:
south_sudan = df[df['content'].apply(
lambda x: 'South Sudan' in str(x.get('subjects', '')) or
'South Sudan' in str(x.get('title', ''))
)]
print(f"South Sudan resolutions: {len(south_sudan)}")
Compare draft text sources:
has_file1_draft = df['draft_from_file1'].apply(
lambda x: x.get('text_draft') is not None and len(str(x.get('text_draft', ''))) > 10
)
has_file3_draft = df['draft_pdf'].apply(
lambda x: x is not None and x.get('draft_text') is not None
)
print(f"Drafts from File 1: {has_file1_draft.sum()}")
print(f"Drafts from File 3: {has_file3_draft.sum()}")
print(f"Both sources: {(has_file1_draft & has_file3_draft).sum()}")
3. Export Subsets
Export only essential fields (reduced size):
import json
essential = []
with open('unified_unsc_resolutions.jsonl', 'r') as f:
for line in f:
record = json.loads(line)
# Create compact version
compact = {
'symbol': record['identifiers']['symbol'],
'date': record['dates']['date'],
'title': record['content']['title'],
'text': record['resolution_text']['text_en'],
'chapter7': record['thematic_coding'].get('chapter7'),
'votes': record['member_state_votes'],
'url': record['urls_resolution']['en']
}
essential.append(compact)
# Write compact version
with open('compact_unsc.jsonl', 'w') as f:
for rec in essential:
f.write(json.dumps(rec) + '\n')
Export to CSV (flattened):
import pandas as pd
import json
records = []
with open('unified_unsc_resolutions.jsonl', 'r') as f:
for line in f:
rec = json.loads(line)
flat = {
'symbol': rec['identifiers']['symbol'],
'year': rec['identifiers']['year'],
'date': rec['dates']['date'],
'title': rec['content']['title'],
'chapter7': rec['thematic_coding'].get('chapter7'),
'vote_yes': rec['voting_totals'].get('vote_yes'),
'vote_no': rec['voting_totals'].get('vote_no'),
'has_member_votes': len(rec.get('member_state_votes', [])) > 0,
'has_draft': rec.get('draft_pdf') is not None
}
records.append(flat)
df = pd.DataFrame(records)
df.to_csv('unsc_resolutions_flat.csv', index=False)
β Data Quality Notes
Completeness by Field Category:
| Category | Coverage | Source |
|---|---|---|
| Basic metadata | 100% | File 1 |
| Resolution text (English) | 100% | File 1 |
| Multilingual text | 99.9% | File 1 |
| URLs | 100% | File 1 |
| Voting totals | 100% | File 1 |
| Member state votes | 100% | File 2 |
| Draft symbol | 97.7% | File 1 |
| Draft text (either source) | 97.3% | Files 1+3 |
| Thematic coding | 34.2% | File 1 |
| Geographic metadata | Partial | File 1 |
Known Characteristics:
Thematic coding (65.8% untagged):
- Many resolutions are procedural and correctly not tagged
- Newer resolutions more likely to be coded
- Selective tagging for significant resolutions
Draft text from File 3 (37.1% missing):
- Not all drafts available as PDFs
- Some PDFs couldn't be extracted
- File 1 covers most gaps (96.4% coverage)
Geographic metadata (partial):
- Only populated for resolutions concerning specific countries
- Many resolutions are procedural/global and don't have geographic tags
π¦ File Size Optimization
Current Size: 514 MB
Breakdown:
- Multilingual text (5 languages): ~350 MB
- English text + metadata: ~100 MB
- Member votes + drafts: ~50 MB
- URLs + admin: ~14 MB
To Reduce Size:
Option 1: Remove multilingual text (~100 MB result)
Remove fields: resolution_text_multilingual
Option 2: Remove all text (~30 MB result)
Keep only metadata, votes, URLs. Remove:
resolution_textresolution_text_multilingualdraft_from_file1draft_pdfmeeting_text
Option 3: Compress with gzip (~50-80 MB result)
gzip unified_unsc_resolutions.jsonl
# Creates: unified_unsc_resolutions.jsonl.gz (~80 MB)
π Related Documentation
VOTING_REFERENCE.md- Complete voting analysis guideQUICK_REFERENCE.md- Quick lookup guideDATA_FLOW_SUMMARY.md- Data integration flow with diagramsMERGE_FIX_NOTES.md- Symbol normalization fix detailsCONVERSION_X_TO_A_NOTES.md- Vote type conversion details
π οΈ Source Files
Input Files:
CR-UNSC_2024-05-19_ALL_CSV_FULL.csv
- 2,722 resolutions, 82 columns, 347.4 MB
- Full text, metadata, thematic coding, URLs
2025_7_21_sc_voting.csv
- 40,929 individual votes, 20 columns, 14.2 MB
- One row per member state vote
sc_voting_with_drafts_final.jsonl
- 2,787 records with nested voting data
- Extracted draft PDF text
Processing:
- Merge Script:
merge_unsc_data.py - Conversion Script:
convert_x_to_a.py
π Recommended Citation
If using this dataset, please cite the original sources:
File 1 (CR-UNSC):
- UN Security Council Resolutions Corpus
- Coverage: 1946-2024
- Source: UN Digital Library
File 2 (Voting Records):
- UN Security Council Voting Data
- Coverage: 1946-2025
- Individual member state votes
File 3 (Draft PDFs):
- Extracted draft resolution texts
- Coverage: Selected resolutions with available PDFs
π Version History
v1.1 (November 9, 2024) - Current
- β Added complete 2024 coverage (45 new resolutions)
- β Extended to 2,767 total resolutions (1946-2024)
- β All 2024 resolutions through December 27, 2024
- β S/RES/2722 to S/RES/2767 (46 resolutions from 2024)
v1.0 (November 9, 2024)
- β Initial unified dataset
- β Combined Files 1, 2, and 3
- β 2,722 resolutions (1946-2024 Jan)
- β Full metadata, voting, and draft text
- β Applied symbol normalization (100% vote coverage)
- β Added draft symbol field (97.7% coverage)
- β Simplified vote types to Y/N/A
π Contact & Support
For questions about this dataset structure, please refer to:
- Documentation: This file and related .md files
- Source Files: See "Source Files" section above
- Merge Script:
merge_unsc_data.py
π Appendix: Quick Field Lookup
| Field Path | Description | Source | Type |
|---|---|---|---|
identifiers.symbol |
Resolution symbol (S/RES/XXX) | File 1 | string |
identifiers.year |
Year of resolution | File 1 | integer |
dates.date |
Adoption date | File 1 | string (ISO date) |
content.title |
Official title | File 1 | string |
thematic_coding.chapter7 |
Chapter VII flag | File 1 | boolean |
resolution_text.text_en |
English text | File 1 | string |
draft_from_file1.draft_symbol |
Draft symbol | File 1 | string |
voting_totals.vote_yes |
Total yes votes | File 1 | integer |
member_state_votes |
Individual votes | File 2 | array |
member_state_votes[].vote |
Vote value (Y/N/A) | File 2 | string |
draft_pdf.draft_text |
Draft PDF text | File 3 | string |
urls_resolution.en |
English URL | File 1 | string |
Last Updated: November 9, 2024 Format Version: 1.1 Total Records: 2,767 (complete through December 2024) Status: β Production Ready
- Downloads last month
- 6