Hierarchical tag chaos

If I understand properly the jpg.xmp file is the write xmp output of darktable, of an imported image jpg (?) image which has the digikam xmp companion file… Is that correct ?

I’m a bit lost. Can you describe the workflow you follow ? I want to be sure of what is the (clean) source and what is the unwanted effect ?

in the xmp file the hierarchical subject already contains single tags, those you don’t want to see in darktable, right ? …

   <lr:hierarchicalSubject>
    <rdf:Bag>
     <rdf:li>GEOGRAFISCHER STANDORT</rdf:li>
     <rdf:li>GEOGRAFISCHER STANDORT|Kontinent|Europa|Mitteleuropa|Deutschland|Mecklenburg-Vorpommern|18374 Zingst</rdf:li>
     <rdf:li>PRIVATE METADATEN|FERIEN|Urlaub|2018 Ostsee</rdf:li>
     <rdf:li>GEOGRAFISCHER STANDORT|Kontinent|Europa</rdf:li>
     <rdf:li>GEOGRAFISCHER STANDORT|Kontinent|Europa|Mitteleuropa|Deutschland</rdf:li>
     <rdf:li>GEOGRAFISCHER STANDORT|Kontinent|Europa|Mitteleuropa|Deutschland|Mecklenburg-Vorpommern|18374 Zingst|Strandübergang 4a</rdf:li>
     <rdf:li>PRIVATE METADATEN</rdf:li>
     <rdf:li>PRIVATE METADATEN|FERIEN|Urlaub</rdf:li>
     <rdf:li>GEOGRAFISCHER STANDORT|Kontinent</rdf:li>
     <rdf:li>GEOGRAFISCHER STANDORT|Kontinent|Europa|Mitteleuropa</rdf:li>
     <rdf:li>PRIVATE METADATEN|FERIEN</rdf:li>
     <rdf:li>GEOGRAFISCHER STANDORT|Kontinent|Europa|Mitteleuropa|Deutschland|Mecklenburg-Vorpommern</rdf:li>
    </rdf:Bag>
   </lr:hierarchicalSubject>