openalexR icon indicating copy to clipboard operation
openalexR copied to clipboard

Use scenario where OpenAlex is stored locally?

Open rgoldsto opened this issue 1 year ago • 2 comments

To try to speed up many accesses to OpenAlex, my lab is interested in having a fork of OpenAlex run locally on one of our machines (following the instructions at https://docs.openalex.org/download-all-data/download-to-your-machine). Can OpenAlexR be configured to make its queries to our local machine's data storage?

rgoldsto avatar Feb 12 '25 00:02 rgoldsto

Hi Rob 👋🏽 I'm not sure about the improved efficiency of querying against your own database, but the oa_fetch() function has an endpoint parameter that you can use to point it to your local database.

https://docs.ropensci.org/openalexR/reference/oa_fetch.html

trangdata avatar Feb 12 '25 02:02 trangdata

Hi Rob.

I would be interested in doing that as well, but please correct me if I am wrong, the site you are linking to omit describes the download of the data snapshot, and not setting up an instance of OpenAlex?

When you have setup the instance incl API, you can easily use that one instead of the OpenAlex endpoint.

If this is the case, please let me know how you did this. Thanks.

rkrug avatar Feb 17 '25 14:02 rkrug