code wiki / _hdl_build / nx_entity_card.nx
nx_entity_card.nx
buildroot/runtime/_hdl_build/nx_entity_card.nx
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
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
structs
| none |
consts
| 12 | const K_MAGIC_4194304: i64 = 4194304 |
| 13 | const K_MAGIC_1024: i64 = 1024 |
| 14 | const K_MAGIC_2048: i64 = 2048 |
functions
| 16 | func ec_lc(c: i64) -> i64 { if c >= 65 { if c <= 90 { return c + 32 } } return c } |
| 17 | func ec_find(hay: *u8, from: i64, hlen: i64, ndl: *u8, nlen: i64) -> i64 |
| 23 | func ec_strip(html: *u8, s: i64, e: i64, out: *u8, cap: i64) -> i64 called by 1: ec_infobox |
| 36 | func ec_infobox(html: *u8, n: i64, label: *u8, llen: i64, out: *u8, cap: i64) -> i64 |
| 53 | func ec_decode(inb: *u8, out: *u8, cap: i64) -> i64 |
| 72 | func ec_cleanname(nm: *u8) -> i64 called by 1: main |
| 84 | func 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 } |
| 85 | func ec_wb(s: *u8, n: i64) -> i64 { sys_write(1, s, n); return 0 } called by 1: main |
| 86 | func ec_sl(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } called by 1: main |
| 88 | func ec_field(label: *u8, val: *u8) -> i64 |
| 92 | func ec_trunc_note(v: *u8) -> *u8 { return v } // (identity; truncation handled by callers) called by 1: ec_field |
| 94 | func main(argc: i64, argv: *i64) -> i64 |