Am Mittwoch, 19. Juli 2017, 22:39:25 CEST schrieb Matze:
> Hi,
> 
> I have a picture which I tagged with Digikam. It had these sections in
> the xmp file:
> 
> <lr:hierarchicalSubject>
>    <rdf:Bag>
>      <rdf:li>Orte|Stadtteil|20e (Arrondissement de Ménilmontant)</rdf:li>
>      <rdf:li>Orte|Land|Frankreich</rdf:li>
>      <rdf:li>Orte|Vorort|Père-Lachaise</rdf:li>
>      <rdf:li>Orte|Stadt|Paris</rdf:li>
>      <rdf:li>Orte|Staat|Île-de-France</rdf:li>
>      <rdf:li>Kamera|E-410</rdf:li>
>    </rdf:Bag>
> </lr:hierarchicalSubject>
> 
> and
> 
> <dc:subject>
>    <rdf:Bag>
>      <rdf:li>20e (Arrondissement de Ménilmontant)</rdf:li>
>      <rdf:li>Frankreich</rdf:li>
>      <rdf:li>Père-Lachaise</rdf:li>
>      <rdf:li>Paris</rdf:li>
>      <rdf:li>Île-de-France</rdf:li>
>      <rdf:li>E-410</rdf:li>
>    </rdf:Bag>
> </dc:subject>
> 
> After the import into Darktable, the <dc:subject> section looks like this:
> 
> <dc:subject>
>    <rdf:Seq>
>      <rdf:li>20e (Arrondissement de Ménilmontant)</rdf:li>
>      <rdf:li>E-410</rdf:li>
>      <rdf:li>Frankreich</rdf:li>
>      <rdf:li>Kamera</rdf:li>
>      <rdf:li>Land</rdf:li>
>      <rdf:li>Orte</rdf:li>
>      <rdf:li>Paris</rdf:li>
>      <rdf:li>Père-Lachaise</rdf:li>
>      <rdf:li>Staat</rdf:li>
>      <rdf:li>Stadt</rdf:li>
>      <rdf:li>Stadtteil</rdf:li>
>      <rdf:li>Vorort</rdf:li>
>      <rdf:li>Île-de-France</rdf:li>
>    </rdf:Seq>
> </dc:subject>
> 
> Is this intended behaviour? It turns out that Digikam now checks all the
> nodes in a tagging-tree-branch and not only the leaf-node.

Yes, that is the intended behaviour. There doesn't seem to be a real standard 
way of storing hierarchical keywords that is widely supported. Because of that 
Adobe created their own "hierarchicalSubject" field which we use, too. In order 
to stay compatible with other programs that don't support that field we also 
put keywords into the "subject" field and follow Adobe's lead of adding all the 
intermediate parts of the keyword, too. It seems that behaviour can be 
configured in (at least) Lightroom to only add the leaf nodes. Maybe we can add 
such an option.

When reading XMP files we ignore "subject" when "hierarchicalSubject" is also 
present. While that might lead to missing tags if the XMP was edited with a 
program that only supports "subject" it still seems like a better way than 
importing everything. Maybe Digikam should do the same?

> I'm on Darktable 2.2.5
> 
> Cheers
> Matthias

Tobias

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to