Has the tri-agency data policy changed how Canada shares research data? Data and scripts
The numbers and charts behind the post Has the tri-agency data policy changed how Canada shares research data?. All data comes from the OpenAlex API (CC0), pulled on 29 November 2026. Policy facts come from the agencies’ and funders’ own pages, linked in the post. MANIFEST.md maps every number and chart in the post to its script and file.
Run order
export OPENALEX_API_KEY=... # optional for most scripts; needed for checks/validation_sample.py
cd scripts
python3 s1_panel_v3.py # papers naming a data repository, and with a data statement, by year: 16 countries, 24 funders, Canadian splits (~350 requests)
python3 s2b_v3_extras.py # Canadian papers by funding (tri-agency / other funders only / none) and by repository named (~25 requests)
python3 s6_field_adjust_v3.py # the same, reweighted to the world's mix of 26 research fields, 2020 and 2025 (~200 requests)
python3 s9_domestic.py # papers with authors in one country only vs with co-authors abroad, 16 countries (~170 requests)
python3 s11_datasets_openalex.py # datasets by country and for Canada's 25 largest universities (~150 requests)
python3 s12_country_universities.py # datasets and papers for each country's 10 largest universities (~320 requests)
python3 s8_results_v3.py # country, funder and Canadian funded-paper tables (no API calls)
python3 summarize.py # the other numbers in the post and the CSVs behind figures 3 to 5 (no API calls)
cd ../checks
python3 small_checks.py # MDPI and data statements, NIH full-text coverage, FRDR and Borealis records (~15 requests)
python3 validation_sample.py # 200 papers' data statements against the searches (~210 requests, content API)
Python 3.9 or later, standard library only. Each script rewrites its file in results/ (or checks/). OpenAlex changes daily, so a later run will differ a little; 2025 full text and funder links were still arriving on 29 November.
Two things to know when querying datasets in OpenAlex: most dataset records (including almost all of Borealis and FRDR) sit in OpenAlex’s expansion pack, so add include_xpac=true; and a few automated series (US Department of Energy instrument records, a Japanese fusion lab’s ten million records, synchrotron logs) swamp country totals, so s11_datasets_openalex.py lists the ones left out.
What’s in results/
| File | What it holds |
|---|---|
s1_panel_v3.json |
By year, 2012-2025, for each group (16 countries, 24 funders, Canadian and US splits, world): papers with searchable full text (n), papers naming a data repository (any_repo, also without OSF), naming a big biology archive (biomed), with a data statement (das), and counts by open access type |
country_any_repo.csv, funder_2020_2025.csv, ca_funded_vs_other.csv, headlines.json |
Tables from s8_results_v3.py: figure 2’s rows, the funder comparison, ranks, medians and robustness checks |
s2b_v3_extras.json |
Canadian papers by funding acknowledged, and by repository named (each counted by name, web address and DOI prefix) |
s6_field_mix_v3.json, s6_field_adjusted_v3.json |
Counts by research field and the field-adjusted shares, 2020 and 2025 |
s9_domestic.json |
Papers with authors in one country only vs with co-authors abroad, for 16 countries, by year: open access type counts, full-text papers, papers naming a repository |
s11_datasets.json |
Datasets by year for 16 countries and Canada’s 25 largest universities (all repositories without automated series; the four big international repositories; Borealis), with their papers |
s12_country_univ.json |
Datasets and papers by year for each country’s 10 largest universities |
summary.json, figure3_*.csv, figure4_*.csv, figure5_*.csv |
The remaining numbers in the post and the rows behind figures 3 to 5 |
checks/ holds small_checks.json (four one-off counts), validation_200.csv (the 200 sampled papers by OpenAlex ID, with flags only) and links.json. Figure 1 is drawn from policy dates, not data.
Check the headline numbers in a browser (counts as of 29 November 2026)
- Canadian research papers, 2025 (119,094): https://api.openalex.org/works?filter=type:article%7Creview,institutions.country_code:CA,publication_year:2025&per_page=1&select=id
- …with full text OpenAlex can search (68,692): https://api.openalex.org/works?filter=type:article%7Creview,institutions.country_code:CA,publication_year:2025,has_fulltext:true&per_page=1&select=id
- …of those, naming a data repository (8,909, or 13.0%): https://api.openalex.org/works?filter=type:article%7Creview,institutions.country_code:CA,publication_year:2025,has_fulltext:true,fulltext.search:zenodo%20OR%20figshare%20OR%20dryad%20OR%20%22osf.io%22%20OR%20%22open%20science%20framework%22%20OR%20dataverse%20OR%20%22mendeley%20data%22%20OR%20%22doi.org%2F10.5683%22%20OR%20%22federated%20research%20data%20repository%22%20OR%20%2210.20383%22%20OR%20%22gene%20expression%20omnibus%22%20OR%20%22sequence%20read%20archive%22%20OR%20dbgap%20OR%20bioproject%20OR%20proteomexchange%20OR%20%22european%20nucleotide%20archive%22%20OR%20arrayexpress%20OR%20%22zenodo.org%22%20OR%20%22figshare.com%22%20OR%20%22datadryad.org%22%20OR%20%22data.mendeley.com%22%20OR%20%2210.17632%22%20OR%20%2210.5683%22%20OR%20%22borealisdata.ca%22%20OR%20%22dataverse.harvard.edu%22%20OR%20%2210.7910%22%20OR%20%2210.5061%22%20OR%20%2210.6084%22%20OR%20%2210.5281%22%20OR%20%2210.17605%22%20OR%20%22www.ncbi.nlm.nih.gov%2Fgeo%22%20OR%20%22www.ncbi.nlm.nih.gov%2Fsra%22%20OR%20%22www.ebi.ac.uk%2Fena%22%20OR%20%22www.ebi.ac.uk%2Fpride%22%20OR%20%22geo%20accession%22&per_page=1&select=id
- The same by year, 2015-2025: https://api.openalex.org/works?filter=type:article%7Creview,institutions.country_code:CA,publication_year:2015-2025,has_fulltext:true,fulltext.search:zenodo%20OR%20figshare%20OR%20dryad%20OR%20%22osf.io%22%20OR%20%22open%20science%20framework%22%20OR%20dataverse%20OR%20%22mendeley%20data%22%20OR%20%22doi.org%2F10.5683%22%20OR%20%22federated%20research%20data%20repository%22%20OR%20%2210.20383%22%20OR%20%22gene%20expression%20omnibus%22%20OR%20%22sequence%20read%20archive%22%20OR%20dbgap%20OR%20bioproject%20OR%20proteomexchange%20OR%20%22european%20nucleotide%20archive%22%20OR%20arrayexpress%20OR%20%22zenodo.org%22%20OR%20%22figshare.com%22%20OR%20%22datadryad.org%22%20OR%20%22data.mendeley.com%22%20OR%20%2210.17632%22%20OR%20%2210.5683%22%20OR%20%22borealisdata.ca%22%20OR%20%22dataverse.harvard.edu%22%20OR%20%2210.7910%22%20OR%20%2210.5061%22%20OR%20%2210.6084%22%20OR%20%2210.5281%22%20OR%20%2210.17605%22%20OR%20%22www.ncbi.nlm.nih.gov%2Fgeo%22%20OR%20%22www.ncbi.nlm.nih.gov%2Fsra%22%20OR%20%22www.ebi.ac.uk%2Fena%22%20OR%20%22www.ebi.ac.uk%2Fpride%22%20OR%20%22geo%20accession%22&group_by=publication_year
- Borealis works in OpenAlex (25,578): https://api.openalex.org/works?filter=locations.source.id:S7407052304&per_page=1&select=id&include_xpac=true
- FRDR datasets with an author affiliation (162 of 895): https://api.openalex.org/works?filter=locations.source.id:S7407050854,type:dataset,institutions.id:!null&per_page=1&select=id&include_xpac=true
