# Add InspireHEP as resource to update the bibliographic data

**URL:** <https://discourse.jabref.org/t/add-inspirehep-as-resource-to-update-the-bibliographic-data/3612>\
**Category:** Features\
**Created:** [November 2, 2022, 5:26pm UTC](https://discourse.jabref.org/t/add-inspirehep-as-resource-to-update-the-bibliographic-data/3612 "2022-11-02T17:26:23Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeterMeinz](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/petermeinz/32/1500_2.png) [@PeterMeinz](https://discourse.jabref.org/u/PeterMeinz)\
**Post date:** [November 2, 2022, 5:26pm UTC](https://discourse.jabref.org/t/add-inspirehep-as-resource-to-update-the-bibliographic-data/3612/1 "2022-11-02T17:26:23Z")

</div>

In the High-Energy Physics community, the InspireHEP keys are used universally as citation keys, so people don’t have to discuss different citation key patterns.

[In a previous feature request](https://discourse.jabref.org/t/can-i-use-inspire-citation-keys-when-importing-via-jabref/2530), there was a workaround presented as to how to make JabRef take these keys upon import of entries from InspireHEP.

However, it would be nice to add InspireHEP as one of the resources to fetch bibliographic data from, so these keys can also be fetched from InspireHEP for entries, which had been imported from elsewhere or are missing an citation key.

The usual procedure would apply, i.e. the opening of a window, which shows the differences between the old and new entry and letting the user choose how to merge them etc.

---

<div class="post-metadata">

**Author:** ![mlep](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/mlep/32/387_2.png) [@mlep](https://discourse.jabref.org/u/mlep)\
**Post date:** [November 2, 2022, 5:47pm UTC](https://discourse.jabref.org/t/add-inspirehep-as-resource-to-update-the-bibliographic-data/3612/2 "2022-11-02T17:47:38Z")

</div>

Hello @PeterMeinz

Inspire-HEP can be queried from within JabRef. See [Searching externally using Online Services - JabRef](https://docs.jabref.org/collect/import-using-online-bibliographic-database) (Note: the first screenshot was misleading; it was not about groups!)  
What additional workflow do you need?

---

<div class="post-metadata">

**Author:** ![PeterMeinz](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/petermeinz/32/1500_2.png) [@PeterMeinz](https://discourse.jabref.org/u/PeterMeinz)\
**Post date:** [November 3, 2022, 11:09am UTC](https://discourse.jabref.org/t/add-inspirehep-as-resource-to-update-the-bibliographic-data/3612/3 "2022-11-03T11:09:14Z")

</div>

Hi @mlep  
sorry, I was talking about the button where one can fetch the data for existing entries:  
 ![Bildschirmfoto 2022-11-03 um 11.06.40](https://canada1.discourse-cdn.com/flex030/uploads/jabref/original/2X/0/0b3553ee1b4472411c71683f9b1d46b4ea530c79.png)  
(marked with the red square)

Would it be feasible to include InspireHEP there?

---

<div class="post-metadata">

**Author:** ![Siedlerchr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/siedlerchr/32/216_2.png) [@Siedlerchr](https://discourse.jabref.org/u/Siedlerchr)\
**Post date:** [November 3, 2022, 7:09pm UTC](https://discourse.jabref.org/t/add-inspirehep-as-resource-to-update-the-bibliographic-data/3612/4 "2022-11-03T19:09:09Z")

</div>

Hi,

this depends a bit on the fetcher, but I think this could be implemented. It would only be useful if you could maybe help to identify which fields of the entry should be used for a query.  
[Search tips for using INSPIRE – INSPIRE help](https://help.inspirehep.net/knowledge-base/inspire-paper-search/)

---

<div class="post-metadata">

**Author:** ![PeterMeinz](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/petermeinz/32/1500_2.png) [@PeterMeinz](https://discourse.jabref.org/u/PeterMeinz)\
**Post date:** [November 4, 2022, 7:33pm UTC](https://discourse.jabref.org/t/add-inspirehep-as-resource-to-update-the-bibliographic-data/3612/5 "2022-11-04T19:33:48Z")

</div>

Hi there,

so the API docs say arxiv or DOI id should be fine: [GitHub - inspirehep/rest-api-doc: Documentation of the INSPIRE REST&nbsp;API](https://github.com/inspirehep/rest-api-doc#external-identifiers)

---

<div class="post-metadata">

**Author:** ![Siedlerchr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/siedlerchr/32/216_2.png) [@Siedlerchr](https://discourse.jabref.org/u/Siedlerchr)\
**Post date:** [November 4, 2022, 8:59pm UTC](https://discourse.jabref.org/t/add-inspirehep-as-resource-to-update-the-bibliographic-data/3612/6 "2022-11-04T20:59:39Z")

</div>

Thanks! I will create an issue on github with some more details.

> <https://github.com/JabRef/jabref/issues/9351>
>
> \<!--
> Please use the GitHub issue tracker only for bug reports and smaller sugge…stions for improvements.
> Requests for completely new features, questions and general feedback is now handled at http://discourse.jabref.org.
> Thanks!
> \--\>
> 
> 
> \*\*Is your suggestion for improvement related to a problem? Please describe.\*\*
> https://discourse.jabref.org/t/add-inspirehep-as-resource-to-update-the-bibliographic-data/3612
> 
> However, it would be nice to add InspireHEP as one of the resources to fetch bibliographic data from, so these keys can also be fetched from InspireHEP for entries, which had been imported from elsewhere or are missing an citation key.
> 
> \*\*Describe the solution you'd like\*\*
> Add the fetcher to the LIST
> 
> \*\*Additional context\*\*
> 
> \<img width="291" alt="grafik" src="https://user-images.githubusercontent.com/320228/200074429-9308b715-fb84-4340-8f9b-483e4f920060.png"\>
> 
> \*\*Implementation details\*\*
> The INSPIRE HEP Fetcher needs to implement EntryBasedFetcher interface and needs to be added to the set of getEntryBasedFetchers in WebFetcher.class
> 
> The fields doi or arxivid could be used as fields
> https://github.com/inspirehep/rest-api-doc#external-identifiers

---

<div class="post-metadata">

**Author:** ![Siedlerchr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/siedlerchr/32/216_2.png) [@Siedlerchr](https://discourse.jabref.org/u/Siedlerchr)\
**Post date:** [February 25, 2023, 2:38pm UTC](https://discourse.jabref.org/t/add-inspirehep-as-resource-to-update-the-bibliographic-data/3612/7 "2023-02-25T14:38:23Z")

</div>

@PeterMeinz Good news, we just merged the PR for the feature. (A new build is ready in roughly 30 minutes)  
It will now take the DOI to resolve the entry metadata.

Remember to make a backup of your library before trying out the new version:

> **[index - powered by h5ai v0.29.0 (https://larsjung.de/h5ai/)](https://builds.jabref.org/main/)**
>
> index - powered by h5ai v0.29.0 (https://larsjung.de/h5ai/)

---

<div class="post-metadata">

**Author:** ![PeterMeinz](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/petermeinz/32/1500_2.png) [@PeterMeinz](https://discourse.jabref.org/u/PeterMeinz)\
**Post date:** [February 28, 2023, 11:36pm UTC](https://discourse.jabref.org/t/add-inspirehep-as-resource-to-update-the-bibliographic-data/3612/8 "2023-02-28T23:36:53Z")

</div>

Thanks a lot for the effort!
