oxinabox / DataDepsGenerators.jl

Utility for developers to help define DataDeps registration blocks, for reusing existing Data with DataDeps.jl
Other
18 stars 6 forks source link

Generate Papers to cite correctly via using DIO->Formatted Citation web-api #22

Closed oxinabox closed 6 years ago

oxinabox commented 6 years ago

So according to @SebastinSanty #19 does not generate paper citations correctly. (My bad for not understanding him at the time)

If one looks at the DataDryadAPI, (DataOne v1 I think?)

For view-source:https://datadryad.org/mn/object/http://dx.doi.org/10.5061/dryad.8790

<DryadDataPackage xmlns="http://purl.org/dryad/schema/terms/v3.1" xmlns:dwc="http://rs.tdwg.org/dwc/terms/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:bibo="http://purl.org/dryad/schema/dryad-bibo/v3.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dryad/schema/terms/v3.1 http://datadryad.org/profile/v3.1/dryad.xsd">
  <dcterms:type>package</dcterms:type>
  <dcterms:creator>Smith, Stephen A.</dcterms:creator>
  <dcterms:creator>Beaulieu, Jeremy M.</dcterms:creator>
  <dcterms:creator>Stamatakis, Alexandros</dcterms:creator>
  <dcterms:creator>Donoghue, Michael J.</dcterms:creator>
  <dcterms:dateSubmitted>2011-03-09T18:46:46Z</dcterms:dateSubmitted>
  <dcterms:available>2011-03-09T18:46:46Z</dcterms:available>
  <dcterms:title>Data from: Understanding angiosperm diversification using small and large phylogenetic trees</dcterms:title>
  <dcterms:identifier>https://doi.org/10.5061/dryad.8790</dcterms:identifier>
  <dcterms:description>How will the emerging possibility o...</dcterms:description>
  <dcterms:subject>angiosperms</dcterms:subject>
  <dcterms:subject>diversification rate</dcterms:subject>
  <dcterms:subject>flowering plants</dcterms:subject>
  <dcterms:subject>key innovation</dcterms:subject>
  <dcterms:subject>mega-phylogeny</dcterms:subject>
  <dcterms:references>https://doi.org/10.3732/ajb.1000481</dcterms:references>
  <dcterms:hasPart>https://doi.org/10.5061/dryad.8790/1</dcterms:hasPart>
  <dcterms:hasPart>https://doi.org/10.5061/dryad.8790/2</dcterms:hasPart>
</DryadDataPackage>

The paper to cite is given by

<dcterms:references>https://doi.org/10.3732/ajb.1000481</dcterms:references>
oxinabox commented 6 years ago

===================================== Later, we plan to work on doing better stuff with DOIs. See docs at https://citation.crosscite.org/docs.html One thing we can do with DOIs is get citations.

The following can be rewritten to use HTTP.jl (rather than Curl).

bash> curl -LH "Accept: text/x-bibliography" https://doi.org/10.3732/ajb.1000481

Smith, S. A., Beaulieu, J. M., Stamatakis, A., & Donoghue, M. J. (2011). Understanding angiosperm diversification using small and large phylogenetic trees. American Journal of Botany, 98(3), 404–414. doi:10.3732/ajb.1000481

This also works for the datasets (or anything else with a DOI), to make nice citeable datasets:


Bash> curl -LH "Accept: text/x-bibliography" https://doi.org/10.5061/dryad.8790                           

Smith, S. A., Beaulieu, J. M., Stamatakis, A., & Donoghue, M. J. (2011). Data from: Understanding angiosperm diversification using small and large phylogenetic trees (Version 1) [Data set]. Dryad Digital Repository. https://doi.org/10.5061/dryad.8790
SebastinSanty commented 6 years ago

Are we implementing multiple style citations here, or is this issue safe to close?

oxinabox commented 6 years ago

I see no need for styles. so lets close it. if we want styles later we can open a new one