CrossTech

Menu

Skip to content
  • Home
  • Terms & Conditons

Turning DOIs into formatted citations

Today two new content types were added to dx.doi.org resolution for CrossRef DOIs. These allow anyone to retrieve DOI bibliographic metadata as formatted bibliographic entries. To perform the formatting we’re using the citation style language processor, citeproc-js which supports a shed load of citation styles and locales. In fact, all the styles and locales found in the CSL repositories, including many common styles such as bibtex, apa, ieee, harvard, vancouver and chicago are supported.
First off, if you’d like to try citation formatting without using content negotiation, there’s a simple web UI that allows input of a DOI, style and locale selection.
If you’re more into accessing the web via your favorite programming language, have a look at these content negotiation curl examples. To make a request for the new “text/bibliography” content type:
$ curl -LH "Accept: text/bibliography; style=bibtex" http://dx.doi.org/10.1038/nrd842
@article{Atkins_Gershell_2002, title={From the analyst's couch: Selective anticancer drugs}, volume={1}, DOI={10.1038/nrd842}, number={7}, journal={Nature Reviews Drug Discovery}, author={Atkins, Joshua H. and Gershell, Leland J.}, year={2002}, month={Jul}, pages={491-492}}

A locale can be specified with the “locale” content type parameter, like this:
$ curl -LH "Accept: text/bibliography; style=mla; locale=fr-FR" http://dx.doi.org/10.1038/nrd842
Atkins, Joshua H., et Leland J. Gershell. « From the analyst's couch: Selective anticancer drugs ». Nature Reviews Drug Discovery 1.7 (2002): 491-492.

You may want to process metadata through CSL yourself. For this use case, there’s another new content type, “application/citeproc+json” that returns metadata in a citeproc-friendly JSON form:
$ curl -LH "Accept: application/citeproc+json" http://dx.doi.org/10.1038/nrd842
{"volume":"1","issue":"7","DOI":"10.1038/nrd842","title":"From the analyst's couch: Selective anticancer drugs","container-title":"Nature Reviews Drug Discovery","issued":{"date-parts":[[2002,7]]},"author":[{"family":"Atkins","given":"Joshua H."},{"family":"Gershell","given":"Leland J."}],"page":"491-492","type":"article-journal"}

Finally, to retrieve lists of supported styles and locales, either hit these URLs:

  • http://data.crossref.org/styles
  • http://data.crossref.org/locales

or check out the CSL style and locale repositories.
There’s one big caveat to all this. The CSL processor will do its best with CrossRef metadata which can unfortunately be quite patchy at times. There may be pieces of metadata missing, inaccurate metadata or even metadata items stored under the wrong field, all resulting in odd-looking formatted citations. Most of the time, though, it works.

This entry was posted in Citation Formats, CrossRef Labs, Linked Data, Metadata on November 28, 2011 by kward.

Post navigation

← Determining the CrossRef membership status of a domain DOIs for PHD Comics’ Valentine’s Day Reading List →

Recent Posts

  • Easily add publications to your ORCID profile
  • CrossRef Metadata Search++
  • PatentCite
  • CrossRef and DataCite unify support for HTTP content negotiation
  • PDF-Extract

Recent Comments

  • Geoffrey Bilder on Content Negotiation for CrossRef DOIs
  • Karl Ward on Content Negotiation for CrossRef DOIs
  • Geoffrey Bilder on Content Negotiation for CrossRef DOIs
  • John S. Erickson, Ph.D. on DOIs and Linked Data: Some Concrete Proposals
  • Ed Summers on Content Negotiation for CrossRef DOIs

Archives

  • January 2013
  • October 2012
  • August 2012
  • May 2012
  • April 2012
  • February 2012
  • November 2011
  • October 2011
  • April 2011
  • March 2011
  • August 2010
  • July 2010
  • April 2010
  • March 2010
  • February 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007
  • December 2006
  • November 2006
  • October 2006
  • September 2006
  • August 2006

Categories

  • Author Identifiers
  • Blog administration
  • Blogs
  • Citation Formats
  • Conference
  • CrossRef Labs
  • CrossRef Metadata Search
  • CrossTech
  • Data
  • Discussion
  • Handle
  • Identifiers
  • Interoperability
  • Linked Data
  • Linking
  • Meetings
  • Member Briefing
  • Metadata
  • Multiple Resolution
  • News
  • ORCID
  • OTMI
  • Patents
  • PDF
  • Programming
  • Publishing
  • RSS
  • Search
  • Standards
  • Uncategorized
  • Web
  • Webinars
  • XML
  • XMP

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
Proudly powered by WordPress