Skip to main content

Module rdf_holograph

Module rdf_holograph 

Source
Expand description

RDF / NQuin → 96-byte holographic node layout (10D fold, RGBA32F atlas). RDF / NQuin → holographic semantic-graph layout.

Hot path is zero-heap: stack QuinCollector, open-addressed id table, and a caller-owned [RdfHolographScene] of fixed arrays. GPU residency (SSBO / RGBA32F) is the larger graphics budget; this file does not Vec / BTreeMap / String on layout, atlas pack, or framing.

Projects 48-byte NQuins into the 96-byte [HolographicNodeGpu] contract used by the Holographic 3D Engine (WebGPU SSBO) and the WebGL2 GLSL ES 300 theatre (RGBA32F node texture, 6 texels per node). No new .10d / .emf magics.

Structs§

HolographOverlay
One in-field name chip after camera projection. Caller owns the output slot.
PlacedHolograph
One vibe-placed holographic entity. Ingest may allocate the slice; packing into RdfHolographScene stays on the caller-owned fixed arrays.
RdfHolographLabel
One labelled holographic entity after 10D → 3D projection.
RdfHolographScene
Laid-out holographic RDF scene. Fixed arrays; caller owns residency.

Constants§

HOLOGRAPH_TEXELS_PER_NODE
Six RGBA32F texels pack one 96-byte holographic node.
MAX_HOLOGRAPH_NODES
Mobile-safe instance cap for the WebGL2 RGBA32F atlas (height = node count).

Functions§

classify_resource_kind
Classify a resource for packing. Quoted lexical forms that never appear as a subject are literals; rdf:type objects / high-degree hubs are classes; remaining IRIs are instances even when they only appear as objects.
display_local_name
Local display token of an expanded IRI or literal lexical form.
fill_label_names
Fill empty label names at ingest. Already-set names win.
framing_zoom
Orbit distance that fits resource crystals in the vertical FOV. Predicate capsules store half-span in position_scale.w; counting that as a sphere radius pulled the camera so far the field collapsed to a cluster. k=1.22 with a 4.2–16 clamp keeps a small constellation (FOAF/Star) in frame instead of filling the viewport with a single glass close-up.
intern_kind
Intern a vibe/JS kind string to a 'static label used on the hot path.
layout_nquins
Test helper: stack/box scene filled from quins.
layout_nquins_into
Layout NQuins into a caller-owned scene. No heap.
layout_placed_into
Pack vibe-placed records into a caller-owned scene. No heap.
layout_rdf_bytes_into
Parse by Content-Type or Qualia format id (turtle, text/turtle, …).
layout_rdf_into
Parse an RDF document into a caller-owned scene. Parse errors are static.
layout_rdf_str_into
Parse a UTF-8 RDF document by Content-Type or Qualia format id.
manifold_code
Shader manifold_tensor[1] code for an interned kind. 0 instance, 1 class, 2 literal, 3 rdf:type filament, 4 property filament, 5 plane.
ndc_to_canvas
NDC xy → canvas pixels (origin top-left).
overlay_chips_into
Project named resource crystals to canvas pixels. Skips filaments and wells. out is caller-owned; returns the number of chips written.
pick_resource_at
Screen-space pick of a resource crystal. Skips filaments and semantic planes. w_angle matches the shader / overlay Y-rotation about W.
project_10d
10D address [q,v,w,x,y,z,t,α,μ,σ] folded to a cinematic 3-space with context as height.
project_world_ndc
Rotate by W then project to NDC. None when clip.w is degenerate.
rotate_y_w
Y-rotate a world point by the holographic W-angle.