Skip to main content

sync_references

Function sync_references 

Source
pub async fn sync_references(
    store: &dyn IndexStore,
    paper: &Paper,
) -> Result<(Vec<Paper>, usize, usize)>
Expand description

Fetch, persist, and return the OpenAlex references of paper. Idempotent: referenced papers dedupe against library entries by OpenAlex id then DOI, and citation edges dedupe on their paper-id pair. Returns the resolved reference papers, how many edges were newly inserted, and how many papers were newly ingested.