Node.Group
val root : t
creates the root node
val of_path : string -> t
of_path s
returns a node from string s
.
val to_path : t -> string
to_path n
returns node n
as a string path.
val name : t -> string
name n
returns the name of node n
. The root node does not have a name and thus the empty string ""
is returned if n
is a root node.
parent n
returns Some p
where p
is the parent node of n
of None
if node n
is the root node.
ancestors n
returns ancestor nodes of n
including the root node. The root node has no ancestors, thus this returns the empty list if called on a root node.
val to_key : t -> string
to_key n
converts a node's path to a key, as defined in the Zarr V3 specification.
val to_prefix : t -> string
to_prefix n
converts a node's path to a prefix key, as defined in the Zarr V3 specification.
val to_metakey : t -> string
to_metakey n
returns the metadata key associated with node n
, as defined in the Zarr V3 specification.
is_child_group m n
Tests if group node m
is the immediate parent of group node n
. Returns true
when the test passes and false
otherwise.
val show : t -> string
show n
returns a string representation of a node type.
val pp : Stdlib.Format.formatter -> t -> unit
pp fmt t
pretty prints a node type value.