code wiki / (root) / nx_lib_gbif.nx

nx_lib_gbif.nx

buildroot/runtime/nx_lib_gbif.nx

5999 B121 linesdepth 5pulls 5 transitivereach 2 importersview sourcekind librarytopic lib
docsdependenciesstructsconstsfunctions

about

nx_lib_gbif.nx -- ingest the library's REAL data: GBIF backbone-taxonomy JSONL (one flat taxon object per line) into nx_lib_store. Each taxon becomes a searchable record: title=scientificName, doi=taxonID, published=year(from authorship), license=rank, abstract=classification lineage, authors=authorship. Reuses the oa_* JSON field extractors. license_tier: ORIGINAL

dependencies 1 imports · 2 importers

nx_lib_openalex.nx nx_lib_gbif.nx nx_lib_gbif_bulk.nx nx_lib_gbif_probe.nx

imports: nx_lib_openalex.nx

imported by: nx_lib_gbif_bulk.nxnx_lib_gbif_probe.nx

structs

none

consts

7const K_MAGIC_1024: i64 = 1024
8const K_MAGIC_4096: i64 = 4096
9const K_MAGIC_16384: i64 = 16384
10const K_MAGIC_8388608: i64 = 8388608

functions

12func gb_isdig(c: i64) -> i64 { if c >= 0x30 { if c <= 0x39 { return 1 } } return 0 }
called by 1: gb_year
15func gb_year(src: *u8, srclen: i64, out: *u8) -> i64
called by 1: nx_lib_gbif_ingest_buf calls 1: gb_isdig
29func gb_seg(json: *u8, s: i64, e: i64, key: *u8, label: *u8, out: *u8, off: i64) -> i64
called by 1: nx_lib_gbif_ingest_buf calls 1: oa_str
44func nx_lib_gbif_ingest_buf(json: *u8, n: i64) -> i64