Skip to main content

Module references

Module references 

Source

Functions§

sync_citation_intents
Label already-stored citation edges of paper with Semantic Scholar’s per-edge intents (background, methodology, result) and its isInfluential flag, written to citations.context. reverse picks the direction: forward labels the works paper cites, reverse labels the works citing it.
sync_cited_by
Fetch, persist, and return the OpenAlex works citing paper (the reverse direction of sync_references). Same dedupe/idempotency contract; the edges point from each citing paper to paper.
sync_references
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.