jmelot / SoftwareImpactHackathon2023_InstitutionalOSS

Linking open-source software to research organizations
MIT License
6 stars 0 forks source link

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

Open jmelot opened 1 year ago

jmelot commented 1 year ago

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 commented 1 year ago

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.