Skip to main content

Module ipld_path

Module ipld_path 

Source
Expand description

IPLD path resolution for TensorLogic structures

Supports deterministic traversal of JSON-serialized IPLD blocks along paths like:

  /rule/<cid>/head/functor
  /rule/<cid>/head/args/0
  /rule/<cid>/body/0/functor
  /fact/<cid>/predicate
  /fact/<cid>/args/1

The resolver operates on the raw block bytes produced by crate::ipld_codec, which encodes blocks as JSON internally (even though the CID carries the DAG-CBOR codec stamp). Each path segment is applied iteratively: numeric segments index into arrays; string segments key into objects.

Structs§

IpldPathResolver
IPLD path resolver for TensorLogic block data

Enums§

IpldPathValue
Resolved value at an IPLD path
PathError
Errors that can occur during IPLD path resolution