code wiki / (root) / nx_lib_openalex.nx

nx_lib_openalex.nx

buildroot/runtime/nx_lib_openalex.nx

14222 B304 linesdepth 4pulls 4 transitivereach 6 importersview sourcekind librarytopic lib
docsdependenciesstructsconstsfunctions

about

nx_lib_openalex.nx -- ingest REAL works from the OpenAlex API JSON into nx_lib_store. Splits the "results":[...] array into work objects (string- aware brace scan), then per work extracts id->hk, title, doi, publication_year -> a TAB record. The sovereign end of the fetch->parse->store pipeline on real academic data. license_tier: ORIGINAL

dependencies 2 imports · 4 importers

nx_syscalls.nx nx_lib_store.nx nx_lib_openalex.nx nx_fetchprobec.nx nx_lib_gbif.nx nx_lib_openalex_probe.nx nx_libdata.nx

imports: nx_syscalls.nxnx_lib_store.nx

imported by: nx_fetchprobec.nxnx_lib_gbif.nxnx_lib_openalex_probe.nxnx_libdata.nx

structs

none

consts

8const OA_WORKSBUF: i64 = 1048576

functions

11func oa_find(hay: *u8, end: i64, start: i64, needle: *u8) -> i64
26func oa_isws(c: i64) -> i64 { if c == 0x20 { return 1 } if c == 0x0a { return 1 } if c == 0x09 { return 1 } if c == 0x0d { return 1 } return 0 }
27func oa_hex(c: i64) -> i64
called by 2: oa_stroa_abstract
34func oa_utf8(out: *u8, k: i64, maxlen: i64, cp: i64) -> i64
called by 2: oa_stroa_abstract
42func oa_str(hay: *u8, s: i64, e: i64, key: *u8, out: *u8, maxlen: i64) -> i64
79func oa_num(hay: *u8, s: i64, e: i64, key: *u8, out: *u8, maxlen: i64) -> i64
98func oa_lastseg(src: *u8, srclen: i64, out: *u8, maxlen: i64) -> i64
112func oa_authors(hay: *u8, s: i64, e: i64, out: *u8, maxlen: i64) -> i64
143func oa_abstract(hay: *u8, s: i64, e: i64, out: *u8, maxlen: i64) -> i64
216func oa_dummy_hk(buf: *u8, seq: i64) -> i64
called by 1: nx_lib_openalex_ingest_buf calls 1: sys_mmap
229func nx_lib_openalex_ingest_buf(json: *u8, n: i64) -> i64