uwdata / living-papers

Authoring tools for scholarly communication. Create interactive web pages or formal research papers from markdown source.
BSD 3-Clause "New" or "Revised" License
129 stars 10 forks source link

citations from Semantic Scholar without DOIs? #26

Open joshuahhh opened 2 years ago

joshuahhh commented 2 years ago

I've run into some papers I want to cite that don't seem to have DOIs (ex: https://www.semanticscholar.org/paper/The-Grail-System-Implementation-Ellis-Heafner/6c1779a0c6791609987b6481428022a39a9baadd). It looks like Semantic Scholar still has data on these papers accessible through its API. But I think Living Papers ultimately always looks up data via DOI.

Is it practical to use Semantic Scholar when DOIs aren't available? Or are we relying on a lot of DOI-specific machinery?

(Naturally, I could always just get a BibTeX citation and put it into my document by hand. Just curious about automation!)

jheer commented 2 years ago

Yes, you should be able to cite that paper as [@s2id:6c1779a0c6791609987b6481428022a39a9baadd] (using the full SHA hash s2id) or as [@s2id:59877838] (using the Semantic Scholar Corpus ID number).

joshuahhh commented 2 years ago

I get:

Citation s2id lookup failed: 6c1779a0c6791609987b6481428022a39a9baadd
Citation s2id lookup failed: 59877838

(At commit 2fb2845106b5.)

joshuahhh commented 2 years ago

(Re-opening out of an abundance of caution; sorry if I'm doing something wrong.)

jheer commented 2 years ago

You're right, thanks for re-opening. The Semantic Scholar lookup (as a network request) is actually succeeding, but the citation plugin currently quits if there is no corresponding DOI. (S2 lookups for papers with DOIs should work.) I'll leave this open until we decide if/how we want to handle the creation of CSL-JSON citation objects from S2 data alone.