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

Change JSON format of BibTeX and add ADR on JSON format #73

Open
koppor opened this issue Sep 24, 2020 · 1 comment
Open

Change JSON format of BibTeX and add ADR on JSON format #73

koppor opened this issue Sep 24, 2020 · 1 comment
Assignees
Labels
backend Backend related issue

Comments

@koppor
Copy link
Collaborator

koppor commented Sep 24, 2020

We need to have an ADR describing the JSON format used to exchange BibTeX data via HTTP. Refs #67.

After digging more into alternatives for the JSON format, I ask to change our things send/received from/to the server. We seprated meta and content similar as https://github.com/ORCID/bibtexParseJs does.

Seeing https://github.com/chbrown/tex/blob/master/tests/bibfiles/W11-1107.json, I think, the ORCID-Approach is over-engineered and we should go with a plain key-value map.

Options:

(Maybe investigate more at https://www.npmjs.com/search?q=keywords:bibtex)

Library to read bibtex directly

@koppor
Copy link
Collaborator Author

koppor commented Oct 9, 2020

To make it clear: plain-key-value-map:

{
  "entrytype": "InProceedings",
  "citekey": "exampleKey",
  "author": "Pradeep Muthukrishnan and Dragomir Radev and Qiaozhu Mei",
  "title": "Simultaneous Similarity Learning and Feature-Weight Learning for Document Clustering",
  "booktitle": "Proceedings of TextGraphs-6: Graph-based Methods for Natural Language Processing",
  "month": "June",
  "year": "2011",
  "address": "Portland, Oregon",
  "publisher": "Association for Computational Linguistics",
  "url": "http://www.aclweb.org/anthology/W11-1107",
  "pages": "42--50"
}

The EntryType goes into entrytype and CiteKey ("Citation Key") goes into citekey. (In the options in the issue desription, it was pubtype, but entrytype is more consistent to JabRef's model, isn't it?)

@koppor koppor mentioned this issue Oct 9, 2020
3 tasks
@lolagarden lolagarden added the backend Backend related issue label Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend related issue
Projects
None yet
Development

No branches or pull requests

3 participants