nx_lib_openalex.nx
buildroot/runtime/nx_lib_openalex.nx
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
imports: nx_syscalls.nxnx_lib_store.nx
imported by: nx_fetchprobec.nxnx_lib_gbif.nxnx_lib_openalex_probe.nxnx_libdata.nx
structs
| none |
consts
| 8 | const OA_WORKSBUF: i64 = 1048576 |
functions
| 11 | func oa_find(hay: *u8, end: i64, start: i64, needle: *u8) -> i64 |
| 26 | func 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 } |
| 27 | func oa_hex(c: i64) -> i64 |
| 34 | func oa_utf8(out: *u8, k: i64, maxlen: i64, cp: i64) -> i64 |
| 42 | func oa_str(hay: *u8, s: i64, e: i64, key: *u8, out: *u8, maxlen: i64) -> i64 called by 4: gb_segnx_lib_gbif_ingest_bufoa_authorsnx_lib_openalex_ingest_buf calls 4: oa_findoa_iswsoa_hexoa_utf8 |
| 79 | func oa_num(hay: *u8, s: i64, e: i64, key: *u8, out: *u8, maxlen: i64) -> i64 |
| 98 | func oa_lastseg(src: *u8, srclen: i64, out: *u8, maxlen: i64) -> i64 called by 1: nx_lib_openalex_ingest_buf |
| 112 | func oa_authors(hay: *u8, s: i64, e: i64, out: *u8, maxlen: i64) -> i64 |
| 143 | func oa_abstract(hay: *u8, s: i64, e: i64, out: *u8, maxlen: i64) -> i64 |
| 216 | func oa_dummy_hk(buf: *u8, seq: i64) -> i64 |
| 229 | func nx_lib_openalex_ingest_buf(json: *u8, n: i64) -> i64 |