Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
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 11 new columns ({'undl_id', 'meeting', 'member_state_votes', 'resolution', 'vote_summary', 'undl_link', 'modality', 'vote_note', 'subjects', 'description', 'draft'}) and 9 missing columns ({'year', 'draft_resolution', 'draft_url', 'veto_id', 'short_agenda', 'meeting_record', 'record_url', 'num_vetoing_pms', 'vetoing_countries'}).

This happened while the json dataset builder was generating data using

hf://datasets/Ayushnangia/ana_v2_partial/sc_voting_with_drafts.jsonl (at revision 328600b75bf0eb50945cc6945010066328648019)

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
              undl_id: string
              date: timestamp[s]
              resolution: string
              draft: string
              meeting: string
              description: string
              agenda: string
              subjects: string
              vote_note: string
              modality: string
              undl_link: string
              vote_summary: struct<total_yes: int64, total_no: int64, total_abstentions: int64, total_non_voting: int64, total_m (... 9 chars omitted)
                child 0, total_yes: int64
                child 1, total_no: int64
                child 2, total_abstentions: int64
                child 3, total_non_voting: int64
                child 4, total_ms: int64
              member_state_votes: list<item: struct<ms_code: string, ms_name: string, permanent_member: bool, vote: string>>
                child 0, item: struct<ms_code: string, ms_name: string, permanent_member: bool, vote: string>
                    child 0, ms_code: string
                    child 1, ms_name: string
                    child 2, permanent_member: bool
                    child 3, vote: string
              draft_pdf: struct<has_pdf: bool, filename: string, text: string, char_count: int64, page_count: int64, extracti (... 15 chars omitted)
                child 0, has_pdf: bool
                child 1, filename: string
                child 2, text: string
                child 3, char_count: int64
                child 4, page_count: int64
                child 5, extraction_error: null
              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')}}
              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 11 new columns ({'undl_id', 'meeting', 'member_state_votes', 'resolution', 'vote_summary', 'undl_link', 'modality', 'vote_note', 'subjects', 'description', 'draft'}) and 9 missing columns ({'year', 'draft_resolution', 'draft_url', 'veto_id', 'short_agenda', 'meeting_record', 'record_url', 'num_vetoing_pms', 'vetoing_countries'}).
              
              This happened while the json dataset builder was generating data using
              
              hf://datasets/Ayushnangia/ana_v2_partial/sc_voting_with_drafts.jsonl (at revision 328600b75bf0eb50945cc6945010066328648019)
              
              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
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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 }
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
End of preview.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

UN Security Council Voting Data with Draft Resolutions

Overview

This dataset combines UN Security Council voting records with the full text of draft resolutions extracted from PDF documents. Each record represents a unique Security Council vote, including detailed member state votes, voting summaries, and the machine-readable text of the draft resolution document.

File: sc_voting_with_drafts.jsonl Format: JSON Lines (one JSON object per line) Size: 11 MB Records: 2,787 unique Security Council votes Time Period: 1946-2025 (79 years)

Data Sources

  1. Voting Data: 2025_7_21_sc_voting.csv

    • 40,929 rows (15 member states × 2,787 votes)
    • Source: UN Digital Library voting records
  2. Draft PDFs: pdf_draft/ directory

    • 488 draft resolution PDFs
    • All PDFs contain machine-readable text (99.6% extraction success rate)
    • 5.68 million characters extracted
    • Average: 11,640 characters per draft

Dataset Statistics

Coverage

  • Total votes: 2,787
  • With draft PDFs: 488 (17.5%)
  • Without draft PDFs: 2,299 (82.5%)
  • PDF extraction errors: 0

Temporal Distribution

Decade Vote Records Draft PDFs
1940s 78 0
1950s 54 0
1960s 143 1
1970s 186 5
1980s 185 1
1990s 638 73
2000s 623 157
2010s 596 180
2020s 284 71

Top Years by Draft Availability

  1. 2002: 26 drafts
  2. 1998: 25 drafts
  3. 1999: 24 drafts
  4. 2016: 22 drafts
  5. 2006: 21 drafts

Data Structure

Each line is a JSON object with the following structure:

{
  "undl_id": "705442",
  "date": "2011-06-13",
  "resolution": "S/RES/1986(2011)",
  "draft": "S/2011/355",
  "meeting": "S/PV.6554",
  "description": "Security Council resolution 1986 (2011)...",
  "agenda": "The situation in Cyprus.",
  "subjects": "CYPRUS QUESTION",
  "vote_note": "",
  "modality": "Vote",
  "undl_link": "https://digitallibrary.un.org/record/705442",

  "vote_summary": {
    "total_yes": 15,
    "total_no": 0,
    "total_abstentions": 0,
    "total_non_voting": 0,
    "total_ms": 15
  },

  "member_state_votes": [
    {
      "ms_code": "CHN",
      "ms_name": "CHINA",
      "permanent_member": true,
      "vote": "Y"
    },
    ...
  ],

  "draft_pdf": {
    "has_pdf": true,
    "filename": "draft_S_2011_355.pdf",
    "text": "United Nations S/2011/355...",
    "char_count": 9740,
    "page_count": 4
  }
}

Field Descriptions

Core Metadata

  • undl_id (string): Unique identifier from UN Digital Library
  • date (string): Vote date in YYYY-MM-DD format
  • resolution (string): Resolution number (e.g., "S/RES/1986(2011)")
  • draft (string): Draft document number (e.g., "S/2011/355")
  • meeting (string): Meeting record (e.g., "S/PV.6554")
  • description (string): Full description of the resolution
  • agenda (string): Agenda item description
  • subjects (string): Subject classification
  • vote_note (string): Additional voting notes
  • modality (string): Voting type (typically "Vote")
  • undl_link (string): URL to UN Digital Library record

Vote Summary

  • total_yes (integer): Number of Yes votes
  • total_no (integer): Number of No votes
  • total_abstentions (integer): Number of abstentions
  • total_non_voting (integer): Number of non-voting members
  • total_ms (integer): Total member states (typically 15)

Member State Votes

Array of objects, one per Security Council member:

  • ms_code (string): ISO country code (e.g., "USA", "CHN")
  • ms_name (string): Country name (e.g., "UNITED STATES")
  • permanent_member (boolean): Is this a permanent member (P5)?
  • vote (string): Vote cast - "Y" (Yes), "N" (No), "A" (Abstain)

Draft PDF Data

  • has_pdf (boolean): Whether draft PDF exists and was extracted
  • filename (string|null): PDF filename (e.g., "draft_S_2011_355.pdf")
  • text (string|null): Full extracted text from the PDF
  • char_count (integer): Number of characters in extracted text
  • page_count (integer): Number of pages in the PDF
  • extraction_error (string|null): Error message if extraction failed

Usage Examples

Python

import json

# Load all records
records = []
with open('sc_voting_with_drafts.jsonl', 'r', encoding='utf-8') as f:
    for line in f:
        records.append(json.loads(line))

print(f"Loaded {len(records)} records")

# Find records with draft text
with_drafts = [r for r in records if r['draft_pdf']['has_pdf']]
print(f"Records with drafts: {len(with_drafts)}")

# Analyze voting patterns
unanimous = [r for r in records
             if r['vote_summary']['total_yes'] == r['vote_summary']['total_ms']]
print(f"Unanimous votes: {len(unanimous)}")

# Search draft text
keyword = "peacekeeping"
matching = [r for r in with_drafts
            if r['draft_pdf']['text'] and keyword.lower() in r['draft_pdf']['text'].lower()]
print(f"Drafts mentioning '{keyword}': {len(matching)}")

Command Line (jq)

# Count records by year
cat sc_voting_with_drafts.jsonl | jq -r '.date[:4]' | sort | uniq -c

# Find all vetoed resolutions
cat sc_voting_with_drafts.jsonl | jq 'select(.vote_summary.total_no > 0)'

# Extract all China votes
cat sc_voting_with_drafts.jsonl | jq '.member_state_votes[] | select(.ms_code == "CHN")'

# Get records with draft text over 50KB
cat sc_voting_with_drafts.jsonl | jq 'select(.draft_pdf.char_count > 50000)'

Analysis Ideas

  1. Voting Pattern Analysis

    • P5 veto frequency and patterns
    • Voting bloc identification
    • Temporal trends in voting behavior
  2. Text Analysis

    • Topic modeling on draft texts
    • Resolution complexity (by text length)
    • Language patterns in successful vs. failed resolutions
  3. Correlation Studies

    • Resolution length vs. voting outcome
    • Subject matter vs. unanimity
    • Temporal trends in resolution topics

Data Quality Notes

PDF Text Extraction

  • Success Rate: 100% (488/488 PDFs successfully extracted)
  • Non-Readable PDFs: 2 identified in initial scan (not in this dataset)
  • Extraction Method: PyPDF2 library
  • Text Quality: Machine-readable, preserves line breaks and structure

Missing Data

  • Draft PDFs: 82.5% of votes lack draft PDFs
    • Primarily older records (pre-1990s)
    • Some recent records also missing
  • Empty Fields: Some records have empty agenda, subjects, or vote_note fields

Known Limitations

  1. Older resolutions (1940s-1980s) have limited draft PDF availability
  2. Some extracted text may contain formatting artifacts
  3. Member state names use historical designations (e.g., "USSR", "ZAIRE")
  4. Permanent member status reflects historical composition

File Generation

Script: create_voting_jsonl.py Generated: 2025-10-31 Processing Time: ~5 minutes for 2,787 records

Generation Process

  1. Parse CSV voting data (40,929 rows)
  2. Group by undl_id (2,787 unique votes)
  3. For each vote:
    • Aggregate member state votes
    • Calculate vote summary
    • Extract draft PDF text if available
  4. Write to JSONL format

License & Attribution

Data Source: United Nations Digital Library Website: https://digitallibrary.un.org/

Please cite the UN Digital Library when using this dataset. This compilation is provided for research and educational purposes.

Contact & Issues

For questions or issues with this dataset, please refer to the UN Digital Library documentation or the data processing scripts included in this repository.


Last Updated: October 31, 2025 Version: 1.0

Downloads last month
8