Package: openalexPro 0.18.1

Rainer M Krug

openalexPro: Providing a more advanced access to OpenAlex for the power user

Retrieves large result sets from the 'OpenAlex' API (<https://openalex.org>) without holding them in memory. Queries are built and validated with classic filters and search, or written in 'OpenAlex' query language (OQL) or its JSON form (OQO). Results are downloaded page by page to JSON files, with cursor paging, parallel downloads, retries and resume, and converted per page with 'DuckDB' to a partitioned 'Apache Parquet' dataset that includes reconstructed abstracts and citation strings. Query results can be saved as 'OpenAlex' collections, shareable and reusable sets of IDs that are kept in sync with their queries. Full-text PDFs and TEI XML can be downloaded, and the daily API budget can be inspected.

Authors:Rainer M Krug [aut, cre]

openalexPro_0.18.1.tar.gz
openalexPro_0.18.1.zip(r-4.7-any)openalexPro_0.18.1.zip(r-4.6-any)openalexPro_0.18.1.zip(r-4.5-any)
openalexPro_0.18.1.tgz(r-4.6-any)openalexPro_0.18.1.tgz(r-4.5-any)
openalexPro_0.18.1.tar.gz(r-4.7-any)openalexPro_0.18.1.tar.gz(r-4.6-any)
openalexPro_0.18.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
openalexPro/json (API)

# Install 'openalexPro' in R:
install.packages('openalexPro', repos = c('https://openalexpro.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/openalexpro/openalexpro/issues

Pkgdown/docs site:https://openalexpro.github.io

On CRAN:

Conda:

quarto

4.49 score 8 stars 2 packages 27 exports 38 dependencies

Last updated from:9aa092c59e (on main). Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK253
source / vignettesOK224
linux-releaseOK194
macos-releaseOK226
macos-oldrelOK2511
windows-develOK234
windows-releaseOK271
windows-oldrelOK206
wasm-releaseOK124

Exports:compatibility_reportextract_doiid_blockinfer_json_schemajq_executeoa_normalize_duckdb_typeoa_schemaoa_works_abstract_sqloa_works_citation_sqlopt_api_keyopt_filter_namesopt_select_fieldspro_api_keypro_collectionpro_compact_parquetpro_countpro_download_contentpro_fetchpro_querypro_rate_limit_statuspro_requestpro_request_jsonlpro_request_jsonl_parquetpro_request_parquetpro_validate_credentialsread_corpussample_parquet_n

Dependencies:arrowaskpassassertthatbitbit64clicodetoolscpp11curlDBIdplyrduckdbfuturefuture.applygenericsglobalsgluehttr2jqrjsonlitelazyevallifecyclelistenvmagrittropensslparallellypillarpkgconfigprogressrpurrrR6rlangsystibbletidyselectutf8vctrswithr

Readme and manuals

Help Manual

Help pageTopics
Render and open the compatibility reportcompatibility_report
Extract DOIs or Components from Character Vectorsextract_doi
Compute ID block from OpenAlex IDsid_block
Infer unified JSON schema using DuckDBinfer_json_schema
Execute a jq transformation from an OpenAlex-style JSON to JSONLjq_execute
Canonicalise a DuckDB type string.oa_normalize_duckdb_type
Get or refresh an OpenAlex entity schemaoa_schema
Return the DuckDB SQL expression that reconstructs a plain-text abstract from the 'abstract_inverted_index' column in OpenAlex works data.oa_works_abstract_sql
Return the DuckDB SQL expression that builds a short citation string from the 'authorships' and 'publication_year' columns in OpenAlex works data.oa_works_citation_sql
Get API key for OpenAlex APIopt_api_key
Get available filter names from OpenAlex APIopt_filter_names
Get available select fields from OpenAlex APIopt_select_fields
Retrieve the OpenAlex Pro API keypro_api_key
Create OpenAlex collections from queriespro_collection
Compact a Parquet dataset into fewer, larger filespro_compact_parquet
Download full-text PDFs or TEI XML for OpenAlex workspro_download_content
Fetch and convert OpenAlex data to Parquetpro_fetch
Build an OpenAlex request (httr2)pro_query
Check OpenAlex rate limit statuspro_rate_limit_status
Fetch works from OpenAlexpro_request
Convert JSON files to jsonl filespro_request_jsonl
Convert JSON files to Apache Parquet filespro_request_jsonl_parquet
Convert JSON files from pro_request() directly to Apache Parquetpro_request_parquet
Validate OpenAlex credentialspro_validate_credentials
Read corpus from Parquet Datasetread_corpus
Sample rows from Parquet files using DuckDB reservoir samplingsample_parquet_n