Skip to content

New feature: Get author articles from OpenAlex - #46

Merged
ahasverus merged 16 commits into
mainfrom
feat-author-articles-in-oa
May 27, 2026
Merged

New feature: Get author articles from OpenAlex#46
ahasverus merged 16 commits into
mainfrom
feat-author-articles-in-oa

Conversation

@ahasverus

Copy link
Copy Markdown
Member

This PR fixes #30, #44 & #45.

In addition, functions querying OpenAlex API have been:

  • renamed:

    • fp_retrieve_author_oa_id() > fp_get_openalex_author()
    • fp_retrieve_article_doi() > fp_get_openalex_doi()
  • and refactored:

    • fp_get_openalex_author() = fp_oa_fetch_authors() + fp_oa_parse_authors()
    • fp_get_openalex_doi() = fp_oa_fetch_dois() + fp_oa_parse_dois()

@codecov

codecov Bot commented May 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (fb52f0a) to head (0a29499).

Additional details and impacted files
@@            Coverage Diff             @@
##              main       #46    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files            9        14     +5     
  Lines          377       534   +157     
==========================================
+ Hits           377       534   +157     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ahasverus
ahasverus marked this pull request as ready for review May 27, 2026 08:50
@ahasverus

ahasverus commented May 27, 2026

Copy link
Copy Markdown
Member Author

@nmouquet: here is the workflow proposed by this PR.

  1. fp_get_openalex_author_id() retrieves the OpenAlex ID of the author
  2. fp_get_openalex_author_works() retrieves the works of this author. Some filters are available (drop NA in DOI/journal and select work types)
  3. fp_identify_duplicate_works() identifies the potential duplicate works by creating unique reference ID. Similar works will have the same ID. These duplicate works are just flagged not deleted.

N.B. The plot of the temporal trend of the ratios will be implemented in a different PR.

@ahasverus
ahasverus merged commit f85bbc8 into main May 27, 2026
9 checks passed
@ahasverus
ahasverus deleted the feat-author-articles-in-oa branch May 27, 2026 12:41
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

Successfully merging this pull request may close these issues.

Anyone could compute their own ratio, by providing openalew id ?

1 participant