Subjects, journals, open access, and funders data

from alexandria3k import csv_sources

Populate subject, journal, funder, OA data tables

Create a many to many table linking works with Scopus All Science Journal Classification Codes — ASJCs.

Parameters:

database_path (str) – The path specifying the SQLite database to populate.

csv_sources.populate_asjc(database_path, source='resource:data/asjc.csv')

Populate the Scopus Subject Areas and All Science Journal Classification Codes (ASJC) table of the database with data from the specified source. The database is created if it does not exist. If it exists, the tables to be populated are dropped (if they exist) and recreated anew as specified.

Parameters:
  • database_path (str) – The path specifying the SQLite database to populate.

  • source (str, optional) – CSV file or URL of the file containing the corresponding data, defaults to the program’s internally stored data.

csv_sources.populate_funder_names(database_path, source)

Populate funder names table of the database with data from the specified source. The database is created if it does not exist. If it exists, the tables to be populated are dropped (if they exist) and recreated anew as specified.

Parameters:
  • database_path (str) – The path specifying the SQLite database to populate.

  • source (str) – CSV file or URL of the file containing the corresponding data, e.g. “https://doi.crossref.org/funderNames?mode=list”.

csv_sources.populate_journal_names(database_path, source)

Populate journal names table of the database with data from the specified source. The database is created if it does not exist. If it exists, the tables to be populated are dropped (if they exist) and recreated anew as specified.

Parameters:
  • database_path (str) – The path specifying the SQLite database to populate.

  • source (str) – CSV file or URL of the file containing the corresponding data, e.g. “http://ftp.crossref.org/titlelist/titleFile.csv”.

csv_sources.populate_open_access_journals(database_path, source)

Populate the open access journals table of the database with data from the specified source. The database is created if it does not exist. If it exists, the tables to be populated are dropped (if they exist) and recreated anew as specified.

Parameters:
  • database_path (str) – The path specifying the SQLite database to populate.

  • source (str) – CSV file or URL of the file containing the corresponding data, e.g. “https://doaj.org/csv”.