Replacing CITATION.bib with a standard metadata format

  • codemeta.json is the standard name (codemeta/codemeta#81)
  • the possible fields are listed here: The CodeMeta Project
  • it’s a JSON file.
  • Essentially doi2bib(JSON.parse(String(read("codemeta.json")))["citation"]) using the doi2bib function I posted above, at least in the minimal case of a single citation given by a DOI, although technically the citation field is a URL so you’d need split out the part after http://dx.doi.org/ first … you could also support other kinds of URLs as I mentioned above. (The citation field can also be an array.)

I agree that their documentation is abysmal, though.

7 Likes