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

Citation metadata retrieval using Zotero / MediaWiki infrastructure #70

Closed
dhimmel opened this issue Oct 11, 2018 · 1 comment
Closed

Comments

@dhimmel
Copy link
Member

dhimmel commented Oct 11, 2018

Was talking with @adam3smith at FORCE2018. He is an expert with CSL styles, having written hundreds himself.

We were discussing metadata retrieval and he discussed the work going at Zotero, which is bundled into https://github.com/zotero/translation-server. MediaWiki also has a derivative of this, updated less frequently, called Citoid.

translation-server can extract bibliographic metadata from many types of resources / URLs. However, there is no public instance (we'd have to run one). Citoid doesn't update as frequently but has a public API.

No immediate plans to use this infrastructure, but wanted to jot these notes down before I forget. Thanks @adam3smith for all the amazing info!

@agitter
Copy link
Member

agitter commented Oct 12, 2018

Very interesting. There are definitely some longer term possibilities there.

One short term idea would be to use Citoid to add ISBN support, which has been a previous feature request (most recently in #68). It's probably using the WorldCat Search API. I tested it at https://en.wikipedia.org/api/rest_v1/#!/Citation/getCitation. Some examples worked better than others. For instance, the bookdown example was missing the publication date.

We would also need to look at the mapping between Zotero field names and CSL. That should be more straightforward than bibtex.

dhimmel added a commit that referenced this issue Dec 10, 2018
Merges #84
Closes #70
Refs zotero/translation-server#51

Queries Manubot's translation-server instance at
https://translate.manubot.org.
Setup information for this instance is available at
#82

Adds functions in manubot.cite.zotero to query the web, search,
and export endpoints of a translation-server. Adds tests
in test_zotery.py covering this functionality.

translation-server queries are now used for USL and ISBN
citation metadata retrieval. These methods now use fallbacks,
such that metadata is first collected via translation-server, but
if that fails, then the preexisting methods are used.
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

2 participants