# Replacing CITATION.bib with a standard metadata format

**URL:** <https://discourse.julialang.org/t/replacing-citation-bib-with-a-standard-metadata-format/26871>\
**Category:** Tooling\
**Tags:** packages\
**Created:** [July 27, 2019, 3:14am UTC](https://discourse.julialang.org/t/replacing-citation-bib-with-a-standard-metadata-format/26871 "2019-07-27T03:14:17Z")\
**Posts on this page:** 1\
**Showing post:** 25

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [September 17, 2019, 11:59pm UTC](https://discourse.julialang.org/t/replacing-citation-bib-with-a-standard-metadata-format/26871/25 "2019-09-17T23:59:37Z")

</div>

> [@StefanKarpinski](#):
>
> It would help to encourage the use of CodeMeta if someone could decipher the standard sufficiently to figure out how to write citations in packages. I have not been able to glean basic things like:
> 
> - what the file name should be
> - what the relevant field names are
> - what tools one should install to parse and transform CodeMeta
> - what command invocations are necessary to generate BibTeX from CodeMeta

- `codemeta.json` is the standard name ([codemeta/codemeta#81](https://github.com/codemeta/codemeta/issues/81))
- the possible fields are listed here: [The CodeMeta Project](https://codemeta.github.io/terms/)
- it’s a JSON file.
- Essentially `doi2bib(JSON.parse(String(read("codemeta.json")))["citation"])` using the `doi2bib` function I posted [above](https://discourse.julialang.org/t/replacing-citation-bib-with-a-standard-metadata-format/26871/4), 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.

---

_[View the full topic](https://discourse.julialang.org/t/replacing-citation-bib-with-a-standard-metadata-format/26871)._
