IPTC / Write Metadata to File ... Preserve hierarchy?

If I used a sidecar/xmp, Digikam writes the hierarchy of tags perfectly, in multiple forms:

     <rdf:li>:in depth/:: style or aesthetics/anime</rdf:li>
     <rdf:li>collection/- IP or Universe/::: game</rdf:li>
     <rdf:li>:media/pixelart</rdf:li>

But in-file, using IPTC it only writes out the selected hashtags and not the hierarchy:

::: game
anime
pixelart

Is there any way to preserve this hierarchy when writing to file?

Thank you!

Different fields in the metadata have different rules. IPTC is being phased out in favor of XMP. There is an internal XMP section on the metadata.

The phase out has been going on long enough at this point that I’m not certain if there is any metadata viewer that does not prefer XMP over IPTC. IPTC fields are length limited. XMP fields are not. IPTC is a subset of what is available in XMP.