Research organization registry data — ROR¶
from alexandria3k import ror
Populate ROR (Research Organization Registry) data tables
- ror.link_author_affiliations(database_path, link_to_top)¶
Create a work_authors_rors table that links each work author to the identified research organization record (ROR).
- Parameters:
database_path (str) – The path specifying the SQLite database in which to add the table. The database must be already contain the research_organizations and author_affiliations tables.
link_to_top (bool) – If True then the authors are linked to the top-level of the hierarchy associated with their affiliation (e.g. the university to which the university hospital they are affiliated with belongs).
- ror.populate(database_path, data_path)¶
Populate the specified SQLite database with the research organization details. 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.
data_path (str) – Path to a zip file containing the research organization data, e.g. “v1.17.1-2022-12-16-ror-data.zip”