Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write reusable python function that links institution names to RORs #23

Open
jmelot opened this issue Nov 5, 2023 · 1 comment
Open

Comments

@jmelot
Copy link
Owner

jmelot commented Nov 5, 2023

We use this capability in at least two places - #20 and #22. I think it would be nice if we had a reusable python function that we could use to link institution names to their "best" ROR id (if available) using OpenAlex, e.g. something like

def get_best_institution_ror(institution_name: str) -> str:
    """
    Given an institution name, try to find the ROR of its best match. Return the ROR id if
    available, else None
    :param institution_name: Insitution name (e.g. "Massachusetts Insitute of Technology")
    :return: ROR id of best match (e.g. https://ror.org/042nb2s44)
    """
    pass

See also the related thinking in #17

Would you be interested in taking this on @sfisher ?

@dtkaczyk
Copy link
Collaborator

dtkaczyk commented Nov 7, 2023

It is possible to use ROR API for this as well, in particular the affiliation matching functionality. It can be run by doing https://api.ror.org/organizations?affiliation=Massachusetts%20Insitute%20of%20Technology and then taking the first item with a flag chosen=true.

Also, this might be useful for the future: at Crossref we collaborate with ROR on a new, better affiliation matching service, which will most likely replace the current implementation behind /organizations?affiliation. I will monitor this effort and will let the team know when this happens. It will mean it might be a good idea to re-run our script to get (hopefully) better matches.

@jmelot jmelot removed this from the Paper submission milestone Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants