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

Linking figures (with thumbnails) to papers #4

Closed
blahah opened this issue Feb 27, 2016 · 1 comment
Closed

Linking figures (with thumbnails) to papers #4

blahah opened this issue Feb 27, 2016 · 1 comment

Comments

@blahah
Copy link
Member

blahah commented Feb 27, 2016

It would be cool to associate individual figures with each paper, and provide thumbnails that can be followed to the full-size images.

I solved a good chunk of this problem for a related project, but the solution only works for articles in EuropePMC: open_access_figures.

The getfigures script there runs getpapers with a user-specified query to download the XML and figure images (where available) for all papers matching the query in EuropPMC. It then parses the XML to identify the figures and extract the captions, and it also generates URLs linking to the thumbnails on EuropePMC (which are predictable once you have the full image filenames).

So, I think the initial goal should be to generate the following:

  • a dataset containing all the figures from EuropePMC
  • another with the thumbnails for those figures
  • metadata for each article - an array of figures with:
    • caption
    • thumbnail (url / checksum)
    • full figure image (url / checksum)

Here's how to achieve that:

  • the captions can be generated using the EuropePMC fulltext dumps here:
  • the full figures can be pulled using getpapers (or the EuropePMC api directly)
  • the thumbnails can be scraped once the full images are pulled, the same way as in the getfigures script linked above.

Help and ideas very welcome. I'm happy to do this myself, but won't get to it for at least a few days, possibly longer.

@blahah
Copy link
Member Author

blahah commented Mar 26, 2017

This is really related to PDFs, which aren't planned to be included in v1. Closing this but we can revisit later if we decide to add PDFs.

@blahah blahah closed this as completed Mar 26, 2017
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

1 participant