code wiki / _hdl_build / nx_entity_card.nx

nx_entity_card.nx

buildroot/runtime/_hdl_build/nx_entity_card.nx

10312 B153 linesdepth 21pulls 147 transitivereach 0 importersview sourcekind tooltopic entity
docsdependenciesstructsconstsfunctions

about

nx_entity_card.nx -- KNOWLEDGE PANEL / entity card (the #1 returns-quality gap, returns-census 2026-07-06). SOTA search shows a photo+bio+facts CARD for a person/entity query; we showed a link list. This extracts a card from a page's structured data -- og/JSON-LD name+description+image+type (via nx_struct_extract) PLUS JSON-LD Person facts (birthDate/birthPlace/jobTitle/nationality) -- and renders it. Composes the SAME extractors nx_url_index already runs at index time, so wiring this into the serve is free data. usage: nx_entity_card <url> license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_struct_extract.nx nx_x509_trust_store.nx nx_trust_store_load_from_certdata. nx_https_fetch_follow.nx nx_entity_card.nx

imports: nx_struct_extract.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_https_fetch_follow.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main ec_w nx_trust_store_load_from_c sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close nx_nss_certdata_parse sys_mmap ↻ _pat_class_cert _pat_value_octal _pat_end _find_newline _starts_with _parse_octal_line sys_mmap ↻ _is_space _decode_octal_escape _is_octal trust_store_alloc sys_mmap ↻ nx_x509_trust_store_load sys_mmap ↻ x509_parse sys_mmap ↻ asn1_cursor_init asn1_expect_tag sys_mmap ↻ asn1_read_tlv_header asn1_read_tag asn1_read_length asn1_read_length ↻ x509_read_tlv sys_mmap ↻ asn1_expect_tag ↻ x509_read_alg_id sys_mmap ↻

structs

none

consts

12const K_MAGIC_4194304: i64 = 4194304
13const K_MAGIC_1024: i64 = 1024
14const K_MAGIC_2048: i64 = 2048

functions

16func ec_lc(c: i64) -> i64 { if c >= 65 { if c <= 90 { return c + 32 } } return c }
called by 2: ec_findec_decode
17func ec_find(hay: *u8, from: i64, hlen: i64, ndl: *u8, nlen: i64) -> i64
called by 1: ec_infobox calls 1: ec_lc
23func ec_strip(html: *u8, s: i64, e: i64, out: *u8, cap: i64) -> i64
called by 1: ec_infobox
36func ec_infobox(html: *u8, n: i64, label: *u8, llen: i64, out: *u8, cap: i64) -> i64
called by 1: main calls 2: ec_findec_strip
53func ec_decode(inb: *u8, out: *u8, cap: i64) -> i64
called by 1: main calls 1: ec_lc
72func ec_cleanname(nm: *u8) -> i64
called by 1: main
84func ec_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 2: ec_fieldmain
85func ec_wb(s: *u8, n: i64) -> i64 { sys_write(1, s, n); return 0 }
called by 1: main
86func ec_sl(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: main
88func ec_field(label: *u8, val: *u8) -> i64
92func ec_trunc_note(v: *u8) -> *u8 { return v } // (identity; truncation handled by callers)
called by 1: ec_field
94func main(argc: i64, argv: *i64) -> i64