NCEAS / metajam

Bringing data and metadata togetheR
https://nceas.github.io/metajam/
Apache License 2.0
16 stars 7 forks source link

Add citation #36

Open isteves opened 6 years ago

isteves commented 6 years ago
isteves commented 6 years ago

Chatted with Rushi about this, and it looks like the citation is currently generated from the EML content.

It's possible to query crossref for doi's, and there may be some integration we can do to get citation information into a format that is zotero/mendeley/etc friendly.

Citations Crossref endpoint: https://api.crossref.org/works/10.1007/S10040-016-1481-0 R package: https://github.com/ropensci/rcrossref

Other notes:

isteves commented 6 years ago

Some discussion about citations in the dataspice repo: https://github.com/ropenscilabs/dataspice/issues/57

their thoughts: An R object could also contain the citation (perhaps as an R bibitem object, which R can already turn into either bibtex or text-based citation). i.e. simply x$citation; or we could have a methods-y interface like citation(x)

isteves commented 6 years ago

Looks like crossref does not work for ADC (and probably all? DataONE doi's). We need to use DataCite instead: https://api.datacite.org/works/10.18739/A2TB0XV0F

also works with the rdatacite package: dc_work(doi = "10.18739/A2TB0XV0F")

Pros:

Problems:

isteves commented 6 years ago

Another related issue: https://github.com/NCEAS/metacatui/issues/491

brunj7 commented 6 years ago

from @rushirajnenuji: screen shot 2018-08-24 at 8 54 02 am

response:

@article{2018,
    doi = {10.3390/f9010019},
    url = {https://doi.org/10.3390%2Ff9010019},
    year = 2018,
    month = {jan},
    publisher = {{MDPI} {AG}},
    volume = {9},
    number = {1},
    pages = {19},
    author = {and},
    title = {The Role of Environmental Filtering in Structuring Appalachian Tree Communities: Topographic Influences on Functional Diversity Are Mediated through Soil Characteristics},
    journal = {Forests}
}