User story
As a researcher or infrastructure provider, I want to see all citations and references to a given DOI including traditional citation, Twitter, blogs and grey literature.
Query strategy
Starting with the DOI for the publication, we fetch the metadata about the publication we are interested in, its citations and whatever metadata we want from the citing resources.
The citations we provide are either other Crossref DOIs, or DataCite DOIs using the relation types cites
, references
, and isSupplementTo
. The latter includes grey literature. The GraphQL API does not (yet) include Twitter or blogs (other than the small number that use DOIs).
Why GraphQL
We can return metadata about the cited resource and the citing resources in one query. We can also return additional information, in this case formatted citations in the Vancouver citation style.
In this example, 47 citations are returned as of April 12, 2020.
Use the following query in the GraphQL client at https://api.datacite.org/graphql
{
work(id: "https://doi.org/10.1001/jama.2020.2648") {
id
types {
resourceType
}
publisher
publicationYear
creators {
id
name
affiliation {
name
}
}
titles {
title
}
citationCount
formattedCitation(style: "vancouver")
citations(first: 50) {
nodes {
id
types {
resourceType
}
publisher
publicationYear
creators {
id
name
affiliation {
name
}
}
titles {
title
}
citationCount
formattedCitation(style: "vancouver")
}
}
}
}