Skip to main content

Module query

Module query 

Source
Expand description

Subtree query engine for NAP manifests.

Supports dot-notation path traversal into YAML/JSON manifest values:

"appearances.audienceVotes"  → manifest["appearances"]["audienceVotes"]
"representations.reference_image.hash" → the BLAKE3 hash string
"references.appears_in" → array of scene URIs

This is a first-class resolver capability — not a bolted-on feature. It enables:

  • AI systems to retrieve 500 tokens instead of 40,000
  • Applications to fetch 10 KB instead of 5 MB
  • CLI queries: nap resolve nap://starwars/character/luke#references.appears_in

Structs§

ManifestQuery
Query engine for extracting subtrees from manifest YAML values.