-
Notifications
You must be signed in to change notification settings - Fork 129
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
(Draft) ScienceDirect: Object Retrieval API #353
Comments
The Object Retrieval API returns different things depending on the query:
I think the best choice is to represent the object references metadata of a document as a property and then allow through functions to get specific objects. Here is an example:
objects = ObjectRetrieval('S0360131524001623', refresh=True)
objects.object_references [{'url': 'https://api.elsevier.com/content/object/eid/1-s2.0-S0360131524001623-gr1.jpg?httpAccept=%2A%2F%2A',
'eid': '1-s2.0-S0360131524001623-gr1.jpg',
'ref': 'gr1',
'filename': 'gr1.jpg',
'mimetype': 'image/jpeg',
'size': '135574',
'height': '346',
'width': '491',
'type': 'IMAGE-DOWNSAMPLED'},
{'url': 'https://api.elsevier.com/content/object/eid/1-s2.0-S0360131524001623-gr2.jpg?httpAccept=%2A%2F%2A',
'eid': '1-s2.0-S0360131524001623-gr2.jpg',
'ref': 'gr2',
'filename': 'gr2.jpg',
'mimetype': 'image/jpeg',
'size': '129935',
'height': '365',
'width': '624',
'type': 'IMAGE-DOWNSAMPLED'}
...]
gr1 = objects.get_specific_object('gr1')
image = Image.open(gr1)
display(image) Seems pretty cool that the library will also allow users to access more than text (images, videos, excel sheets, word documents ). What do you think @Michael-E-Rose ? |
We had such a case before, with the |
Implementing two classes (1 for metadata and 1 for the objects) is a good idea. Regarding the images:
|
(Update with answers) For sake of documenting: I'm having some trouble with the retrieval of .svg objects. In the
|
Scopus doesn't maintain its documentation well. There are things in the API but not in the documentation, and vice versa. So, don't investigate the issue too much; pybliometrics can go without svg if needed. |
I contacted Elsevier's Data Support Team and they clarified the issue. The answers are documented above. |
Research for the implementation of the ScienceDirect: Object Retrieval API. The description of the API states: These interfaces represent retrieval of objects associated with a full text article. This resource can also return reference details for an individual object or an entire full text article. The reference metadata response will contain links to the associated Full-Text article.
The text was updated successfully, but these errors were encountered: