New INSPIRE API¶
Functions for parsing the new INSPIRE JSON metadata. |
|
Get publication information using new INSPIRE API. |
hepdata.modules.inspire_api.parser¶
Functions for parsing the new INSPIRE JSON metadata.
- hepdata.modules.inspire_api.parser.get_title(metadata)[source]¶
Get the title of the publication from the first value in list of english translations (if applicable) otherwise from first title in list of titles.
- hepdata.modules.inspire_api.parser.get_doi(metadata)[source]¶
Get the DOI of the journal publication from the first value in the list of DOIs.
- hepdata.modules.inspire_api.parser.get_authors(metadata)[source]¶
Get the authors of the publication as a list of dictionaries with keys ‘affiliation’ and ‘full_name’.
- hepdata.modules.inspire_api.parser.get_abstract(metadata)[source]¶
Get the abstract of the publication, ideally the one from the arXiv version, otherwise the first one.
- hepdata.modules.inspire_api.parser.get_creation_date(metadata)[source]¶
Get the creation date of the publication, first try to expand the preprint_date, otherwise try legacy_creation_date.
- hepdata.modules.inspire_api.parser.get_arxiv_id(metadata)[source]¶
Get the arxiv id of the publication from the last value in the list of arxiv eprints.
- hepdata.modules.inspire_api.parser.get_collaborations(metadata)[source]¶
Get the collaborations of the publication as a list.
- hepdata.modules.inspire_api.parser.get_keywords(metadata)[source]¶
Get the keywords of the publication.
- hepdata.modules.inspire_api.parser.get_journal_info(metadata)[source]¶
Get the journal information of the publication. Format is ‘title volume (year) article page_start-page_end’ if at least one of these information is available, otherwise attempt to obtain it from ‘pubinfo_freetext’ or ‘publication_info’ or ‘report_numbers’ or ‘public_notes’. Defaults to ‘No Journal Information’.
- hepdata.modules.inspire_api.parser.get_year(metadata)[source]¶
Get the year of the publication. Try first ‘imprints/date’, then ‘publication_info/year’, then ‘preprint_date’, and finally ‘legacy_creation_date’.
hepdata.modules.inspire_api.views¶
Get publication information using new INSPIRE API.