NLeSC / rcn_py

RCN is a python package to analyze Research Collaboration Network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenAlex and Local Citation Network

Peter9192 opened this issue · comments

I just stumbled upon Open Alex, through a web app called LocalCitationNetwork (see their source here).

If we want to explore an openly accessible alternative to Scopus, or fetch data from an external source in an interactive session, this might be a good place to start.

They also provide the option to download their source database.

OpenAlex's twitter page also links to some of interesting activities, for example VOSviewer

To find all authors and works affiliated with the escience center:
(substitute email address with your own)

import requests

openalex = "https://api.openalex.org/"
polite_queue = "mailto=EMAIL_ADDRESS"
ror_id = "https://ror.org/00rbjv475"  # NL eScience Center

# Find authors
endpoint = "authors"
filters = f"filter=last_known_institution.ror:{ror_id}"
url = f"{openalex}/{endpoint}?{filters}&{polite_queue}"
n_authors = requests.get(url).json()['meta']['count']
print(url)
print(f"Found {n_authors} authors associated with the eScience Center")

# Find works
endpoint = "works"
filters = f"filter=institutions.ror:{ror_id}"
url = f"{openalex}/{endpoint}?{filters}&{polite_queue}"
n_works = requests.get(url).json()['meta']['count']
print(url)
print(f"Found {n_works} works associated with the eScience Center")
https://api.openalex.org//authors?filter=last_known_institution.ror:https://ror.org/00rbjv475&mailto=EMAIL_ADDRESS
Found 203 authors associated with the eScience Center
https://api.openalex.org//works?filter=institutions.ror:https://ror.org/00rbjv475&mailto=EMAIL_ADDRESS
Found 470 works associated with the eScience Center