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

citationStyles key for OpenAlex API #179

Open
Masao-Taketani opened this issue Jan 19, 2025 · 4 comments
Open

citationStyles key for OpenAlex API #179

Masao-Taketani opened this issue Jan 19, 2025 · 4 comments

Comments

@Masao-Taketani
Copy link

@corochann @conglu1997
Thank you for supporting OpenAlex API for the alternative to Semantic Scholar API!
However, I have a question about that.

bibtexs = [papers[i]["citationStyles"]["bibtex"] for i in selected_papers]

The above line of code requires you to have citationStyles key, but each paper dictionary you obtain with OpenAlex API (here) does not seem to include citationStyles key, which will result in an error at the line I mentioned above. So, I've been wondering if this is a bug or I am missing something.

I'd really appreciate if you could answer the question.

Thank you very much in advance!

@Masao-Taketani Masao-Taketani changed the title 'citationStyles' key for OpenAlex API citationStyles key for OpenAlex API Jan 19, 2025
@conglu1997
Copy link
Collaborator

Could @corochann help with this? Basically this is about retrieving the bibtex.

@corochann
Copy link
Contributor

Thank you for pointing out, I think this is bug. Do you know what kind of contents are inside "citationStyles" of semantic scholar API??

@Masao-Taketani
Copy link
Author

Masao-Taketani commented Jan 29, 2025

@corochann
Thank you for your reply. Well, unfortunately, no... Because Semantic Scholar API seems to be wait-listing us now in order to get the API key. I will try to apply for it and may be able to find them out as soon as they reply me, but I don't know when that is going to happen.
I thought you guys already knew what kind of contents were there, or at least had the API key. If not, I will let you know once I get the key, or somebody else who got the key before me and see this thread might be able to help out.
Let's wait and see, then.

@conglu1997
Copy link
Collaborator

conglu1997 commented Jan 29, 2025

This is a just a latex bibtex entry, e.g. the output of this should look something like:

@Article{lu2024aiscientist,
title={The {AI} {S}cientist: Towards Fully Automated Open-Ended Scientific Discovery},
author={Lu, Chris and Lu, Cong and Lange, Robert Tjarko and Foerster, Jakob and Clune, Jeff and Ha, David},
journal={arXiv preprint arXiv:2408.06292},
year={2024}
}

These are then pasted into the latex file. The "citationStyles" is pretty irrelevant, all that matter is that bibtex_string has the bibtexs to be entered into the file.

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

3 participants