academic_observatory_workflows.doi_workflow.queries
Attributes
Classes
Functions
|
|
|
Fetch the ROR affiliations for a given affiliation string. |
|
|
|
Traverse all of the ancestors of a set of child ROR ids. |
|
Make an index of child to ancestor relationships. |
Module Contents
- academic_observatory_workflows.doi_workflow.queries.make_sql_queries(input_project_id: str, output_project_id: str, dataset_id_crossref_events: str = 'crossref_events', dataset_id_crossref_metadata: str = 'crossref_metadata', dataset_id_crossref_fundref: str = 'crossref_fundref', dataset_id_ror: str = 'ror', dataset_id_orcid: str = 'orcid', dataset_id_open_citations: str = 'open_citations', dataset_id_unpaywall: str = 'unpaywall', dataset_id_scihub: str = 'scihub', dataset_id_openalex: str = 'openalex', dataset_id_pubmed: str = 'pubmed', dataset_id_settings: str = 'settings', dataset_id_observatory: str = 'observatory', dataset_id_observatory_intermediate: str = 'observatory_intermediate') List[List[SQLQuery]][source]
- academic_observatory_workflows.doi_workflow.queries.fetch_ror_affiliations(repository_institution: str, num_retries: int = 3) Dict[source]
Fetch the ROR affiliations for a given affiliation string.
- Parameters:
repository_institution – the affiliation string to search with.
num_retries – the number of retries.
- Returns:
the list of ROR affiliations.
- academic_observatory_workflows.doi_workflow.queries.get_snapshot_date(project_id: str, dataset_id: str, table_id: str, snapshot_date: pendulum.DateTime)[source]