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

ScienceDirect: Object Retrieval #360

Open
nils-herrmann opened this issue Oct 17, 2024 · 3 comments
Open

ScienceDirect: Object Retrieval #360

nils-herrmann opened this issue Oct 17, 2024 · 3 comments

Comments

@nils-herrmann
Copy link
Collaborator

It seems that the only consistent way of identifying objects is by its eid which has following structure:
<file_eid>-<object_ref>.<object_suffix>
An example is 1-s2.0-S0893608024005562-si15.svg'

Therefore the most reliable strategy is to retrieve objects by passing the document identifier and object file name:

ObjectRetrieval('10.1016/j.neunet.2024.106632', filename='gr3.jpg')

To get the file names, users can use the ObjectMetadata class:

o_md = ObjectMetadata('10.1016/j.neunet.2024.106632')
filenames = [f['filename'] for f in o_md.results]
@nils-herrmann nils-herrmann self-assigned this Oct 17, 2024
@nils-herrmann nils-herrmann changed the title Science Direct: Object Retrieval ScienceDirect: Object Retrieval Oct 17, 2024
nils-herrmann added a commit to nils-herrmann/pybliometrics that referenced this issue Oct 17, 2024
nils-herrmann added a commit to nils-herrmann/pybliometrics that referenced this issue Oct 17, 2024
@Michael-E-Rose
Copy link
Contributor

How would users know the filename beforehand?

@nils-herrmann
Copy link
Collaborator Author

nils-herrmann commented Oct 18, 2024

There is a naming convention. All items are enumerated with a prefix/suffix depending on its type (figure, math formula, pdf):

  • Standard Figures are: gr<nr>.jpg
  • Formula: si<nr>.svg

Manually, there are two options:

  1. Use the ObjectMetadata class and get the filenames of all objects:
o_md = ObjectMetadata('10.1016/j.neunet.2024.106632')
filenames = [f['filename'] for f in o_md.results]
  1. Check the paper online and inspect the download link: https://ars.els-cdn.com/content/image/1-s2.0-S1566253524004342-gr2_lrg.jpg
    image

@Michael-E-Rose
Copy link
Contributor

Alright, then let's make the class work with the filename. I will include your hints in the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants