CrossRef / rest-api-doc

Documentation for Crossref's REST API. For questions or suggestions, see https://community.crossref.org/
Other
733 stars 269 forks source link

Inconsistent Results For DOI Query #351

Open connermcd opened 6 years ago

connermcd commented 6 years ago

When requesting a .bib file by DOI sometimes author is included and sometimes it is not. Example given:

curl -s "http://api.crossref.org/works/10.1097/TA.0000000000001245/transform/application/x-bibtex"
curl -s "http://api.crossref.org/works/10.1097/TA.0000000000001245/transform/application/x-bibtex"
curl -s "http://api.crossref.org/works/10.1097/TA.0000000000001245/transform/application/x-bibtex"
curl -s "http://api.crossref.org/works/10.1097/TA.0000000000001245/transform/application/x-bibtex"
curl -s "http://api.crossref.org/works/10.1097/TA.0000000000001245/transform/application/x-bibtex"
curl -s "http://api.crossref.org/works/10.1097/TA.0000000000001245/transform/application/x-bibtex"

outputs:

@article{2016,
    doi = {10.1097/ta.0000000000001245},
    url = {https://doi.org/10.1097%2Fta.0000000000001245},
    year = 2016,
    month = {nov},
    publisher = {Ovid Technologies (Wolters Kluwer Health)},
    volume = {81},
    number = {5},
    pages = {843--848},
    title = {Compared to warfarin, direct oral anticoagulants are associated with lower mortality in patients with blunt traumatic intracranial hemorrhage},
    journal = {Journal of Trauma and Acute Care Surgery}
}
@article{Feeney_2016,
    doi = {10.1097/ta.0000000000001245},
    url = {https://doi.org/10.1097%2Fta.0000000000001245},
    year = 2016,
    month = {nov},
    publisher = {Ovid Technologies (Wolters Kluwer Health)},
    volume = {81},
    number = {5},
    pages = {843--848},
    author = {James M. Feeney and Elizabeth Santone and Monica DiFiori and Lilla Kis and Vijay Jayaraman and Stephanie C. Montgomery},
    title = {Compared to warfarin, direct oral anticoagulants are associated with lower mortality in patients with blunt traumatic intracranial hemorrhage},
    journal = {Journal of Trauma and Acute Care Surgery}
}
@article{Feeney_2016,
    doi = {10.1097/ta.0000000000001245},
    url = {https://doi.org/10.1097%2Fta.0000000000001245},
    year = 2016,
    month = {nov},
    publisher = {Ovid Technologies (Wolters Kluwer Health)},
    volume = {81},
    number = {5},
    pages = {843--848},
    author = {James M. Feeney and Elizabeth Santone and Monica DiFiori and Lilla Kis and Vijay Jayaraman and Stephanie C. Montgomery},
    title = {Compared to warfarin, direct oral anticoagulants are associated with lower mortality in patients with blunt traumatic intracranial hemorrhage},
    journal = {Journal of Trauma and Acute Care Surgery}
}
@article{Feeney_2016,
    doi = {10.1097/ta.0000000000001245},
    url = {https://doi.org/10.1097%2Fta.0000000000001245},
    year = 2016,
    month = {nov},
    publisher = {Ovid Technologies (Wolters Kluwer Health)},
    volume = {81},
    number = {5},
    pages = {843--848},
    author = {James M. Feeney and Elizabeth Santone and Monica DiFiori and Lilla Kis and Vijay Jayaraman and Stephanie C. Montgomery},
    title = {Compared to warfarin, direct oral anticoagulants are associated with lower mortality in patients with blunt traumatic intracranial hemorrhage},
    journal = {Journal of Trauma and Acute Care Surgery}
}
@article{2016,
    doi = {10.1097/ta.0000000000001245},
    url = {https://doi.org/10.1097%2Fta.0000000000001245},
    year = 2016,
    month = {nov},
    publisher = {Ovid Technologies (Wolters Kluwer Health)},
    volume = {81},
    number = {5},
    pages = {843--848},
    title = {Compared to warfarin, direct oral anticoagulants are associated with lower mortality in patients with blunt traumatic intracranial hemorrhage},
    journal = {Journal of Trauma and Acute Care Surgery}
}
connermcd commented 6 years ago

I have tried this without the BibTex transformation with similar results:

curl -s "http://api.crossref.org/works/10.1097/TA.0000000000001245"
curl -s "http://api.crossref.org/works/10.1097/TA.0000000000001245"
curl -s "http://api.crossref.org/works/10.1097/TA.0000000000001245"
{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2018,4,6]],"date-time":"2018-04-06T14:22:27Z","timestamp":1523024547559},"reference-count":14,"publisher":"Ovid Technologies (Wolters Kluwer Health)","issue":"5","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Journal of Trauma and Acute Care Surgery"],"published-print":{"date-parts":[[2016,11]]},"DOI":"10.1097\/ta.0000000000001245","type":"journal-article","created":{"date-parts":[[2016,9,3]],"date-time":"2016-09-03T13:13:20Z","timestamp":1472908400000},"page":"843-848","source":"Crossref","is-referenced-by-count":9,"title":["Compared to warfarin, direct oral anticoagulants are associated with lower mortality in patients with blunt traumatic intracranial hemorrhage"],"prefix":"10.1097","volume":"81","member":"276","container-title":["Journal of Trauma and Acute Care Surgery"],"original-title":[],"deposited":{"date-parts":[[2017,6,24]],"date-time":"2017-06-24T21:59:17Z","timestamp":1498341557000},"score":1.0,"subtitle":["A TQIP study"],"short-title":[],"issued":{"date-parts":[[2016,11]]},"references-count":14,"journal-issue":{"issue":"5"},"URL":"http:\/\/dx.doi.org\/10.1097\/ta.0000000000001245","relation":{},"ISSN":["2163-0755"],"issn-type":[{"value":"2163-0755","type":"print"}],"subject":["Surgery","Critical Care and Intensive Care Medicine"]}}
{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2018,4,6]],"date-time":"2018-04-06T14:22:27Z","timestamp":1523024547559},"reference-count":14,"publisher":"Ovid Technologies (Wolters Kluwer Health)","issue":"5","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Journal of Trauma and Acute Care Surgery"],"published-print":{"date-parts":[[2016,11]]},"DOI":"10.1097\/ta.0000000000001245","type":"journal-article","created":{"date-parts":[[2016,9,3]],"date-time":"2016-09-03T13:13:20Z","timestamp":1472908400000},"page":"843-848","source":"Crossref","is-referenced-by-count":9,"title":["Compared to warfarin, direct oral anticoagulants are associated with lower mortality in patients with blunt traumatic intracranial hemorrhage"],"prefix":"10.1097","volume":"81","member":"276","container-title":["Journal of Trauma and Acute Care Surgery"],"original-title":[],"deposited":{"date-parts":[[2017,6,24]],"date-time":"2017-06-24T21:59:17Z","timestamp":1498341557000},"score":1.0,"subtitle":["A TQIP study"],"short-title":[],"issued":{"date-parts":[[2016,11]]},"references-count":14,"journal-issue":{"issue":"5"},"URL":"http:\/\/dx.doi.org\/10.1097\/ta.0000000000001245","relation":{},"ISSN":["2163-0755"],"issn-type":[{"value":"2163-0755","type":"print"}],"subject":["Surgery","Critical Care and Intensive Care Medicine"]}}
{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2018,4,6]],"date-time":"2018-04-06T14:22:27Z","timestamp":1523024547559},"reference-count":14,"publisher":"Ovid Technologies (Wolters Kluwer Health)","issue":"5","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Journal of Trauma and Acute Care Surgery"],"published-print":{"date-parts":[[2016,11]]},"DOI":"10.1097\/ta.0000000000001245","type":"journal-article","created":{"date-parts":[[2016,9,3]],"date-time":"2016-09-03T13:13:20Z","timestamp":1472908400000},"page":"843-848","source":"Crossref","is-referenced-by-count":9,"title":["Compared to warfarin, direct oral anticoagulants are associated with lower mortality in patients with blunt traumatic intracranial hemorrhage"],"prefix":"10.1097","volume":"81","author":[{"given":"James M.","family":"Feeney","affiliation":[]},{"given":"Elizabeth","family":"Santone","affiliation":[]},{"given":"Monica","family":"DiFiori","affiliation":[]},{"given":"Lilla","family":"Kis","affiliation":[]},{"given":"Vijay","family":"Jayaraman","affiliation":[]},{"given":"Stephanie C.","family":"Montgomery","affiliation":[]}],"member":"276","container-title":["Journal of Trauma and Acute Care Surgery"],"original-title":[],"deposited":{"date-parts":[[2017,6,24]],"date-time":"2017-06-24T21:59:17Z","timestamp":1498341557000},"score":1.0,"subtitle":["A TQIP study"],"short-title":[],"issued":{"date-parts":[[2016,11]]},"references-count":14,"URL":"http:\/\/dx.doi.org\/10.1097\/ta.0000000000001245","relation":{},"ISSN":["2163-0755"],"issn-type":[{"value":"2163-0755","type":"print"}],"subject":["Surgery","Critical Care and Intensive Care Medicine"]}}

In fact you can see this clearly by simply going to http://api.crossref.org/works/10.1097/TA.0000000000001245 and refreshing the page several times.

daisieh commented 6 years ago

We've been seeing this at Dryad as well: results from "polite" servers seem to not have this problem, but results from impolite searches are inconsistently returning results without authors.