SE761Team4 / jabref

Graphical Java application for managing BibTeX and biblatex (.bib) databases
https://www.jabref.org
MIT License
2 stars 0 forks source link

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

Open koppor opened 4 years ago

koppor commented 4 years ago

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 commented 4 years ago

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?)