Skip to content

Conversation

@egonw
Copy link
Collaborator

@egonw egonw commented Aug 19, 2025

Description

Uses information in Wikidata about retrations. The patch adds a /retraction/ landing page and provides a /retraction/Qxxx route for works known as retracted (screenshots below).

Several queries use the main or the scholarly WDQS explicitly, but I was not able to get all of them working yet.

Other features:

  • link from /work/ to /retraction in the data table (if the article is retracted)
  • on the landing page, list Wikidata items which use retracted articles as statement reference
  • on the landing page, show the number of retractions per year

Caveats

It depends on the following data model: articles are P31-ed as retracted article. It also becomes a lot more useful if that statement has a 'start time' qualifier (which 90% will have, pending a few QS batches).

Check any of the following which apply:

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
    • I have made corresponding changes to the documentation
  • This change requires new dependencies (please list)

If you make changes to the Python code

  • My code passes the tox check, I can receive warnings about tests, documentation or both

Testing

Checklist

  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have not used code from external sources without attribution
  • I have considered accessibility in my implementation
  • There are no remaining debug statements (print, console.log, ...)

Screenshots

/retraction/Qxxx aspect

image

/retraction/ landing page

image

/retraction/ landing page: bar plot "per year"

image

panels showing Wikidata statements citing retracted articles

image

/retraction/Qxxx aspect's "data" panel

image

@egonw egonw self-assigned this Aug 19, 2025
@egonw
Copy link
Collaborator Author

egonw commented Aug 19, 2025

Note to self: requested query help here

@egonw egonw marked this pull request as ready for review August 19, 2025 12:22
@egonw egonw removed their assignment Aug 19, 2025
@egonw egonw changed the title [WIP] Basic retraction info pages Basic retraction info pages Aug 19, 2025
@fnielsen fnielsen merged commit 0b050f2 into main Aug 21, 2025
4 of 7 checks passed
@fnielsen fnielsen self-assigned this Aug 21, 2025
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.

3 participants