LicensorTelephoneType1 and LicensorTelephoneType2 "Unknown" value

Started by Mammut, July 10, 2022, 11:05:46 AM

Previous topic - Next topic

Mammut

I used the new 12.43 version.

I don't know who I need to report this "bug". I think case sensitive mismatch might be the culprit.

It's the official sample image from iptc.org, it's big, so I just link it:
https://www.iptc.org/std/photometadata/examples/IPTC-PhotometadataRef-Std2021.1.jpg

In the plus documentation the LicensorTelephoneType1 and LicensorTelephoneType2 members' cv url values are with small letters:
http://ns.useplus.org/LDF/ldf-XMPSpecification#LicensorTelephoneType1


    http://ns.useplus.org/ldf/vocab/work (work)
    http://ns.useplus.org/ldf/vocab/cell (cell)
    http://ns.useplus.org/ldf/vocab/fax (fax)
    http://ns.useplus.org/ldf/vocab/home (home)
    http://ns.useplus.org/ldf/vocab/pager (pager)


But they are with capitalized words in the image's xmp:


<plus:Licensor>
   <rdf:Seq>
    <rdf:li rdf:parseType='Resource'>
     <plus:LicensorCity>Licensor City 1 (ref2021.1)</plus:LicensorCity>
     <plus:LicensorCountry>Licensor Country 1 (ref2021.1)</plus:LicensorCountry>
     <plus:LicensorEmail>Licensor Email 1 (ref2021.1)</plus:LicensorEmail>
     <plus:LicensorExtendedAddress>Licensor Ext Addr 1 (ref2021.1)</plus:LicensorExtendedAddress>
     <plus:LicensorID>Licensor ID 1 (ref2021.1)</plus:LicensorID>
     <plus:LicensorName>Licensor Name 1 (ref2021.1)</plus:LicensorName>
     <plus:LicensorPostalCode>Licensor Postcode 1 (ref2021.1)</plus:LicensorPostalCode>
     <plus:LicensorRegion>Licensor Region 1 (ref2021.1)</plus:LicensorRegion>
     <plus:LicensorStreetAddress>Licensor Street Addr 1 (ref2021.1)</plus:LicensorStreetAddress>
     <plus:LicensorTelephone1>Licensor Phone1 1 (ref2021.1)</plus:LicensorTelephone1>
     <plus:LicensorTelephone2>Licensor Phone2 1 (ref2021.1)</plus:LicensorTelephone2>
     <plus:LicensorTelephoneType1>http://ns.useplus.org/ldf/vocab/Work</plus:LicensorTelephoneType1>
     <plus:LicensorTelephoneType2>http://ns.useplus.org/ldf/vocab/Cell</plus:LicensorTelephoneType2>
     <plus:LicensorURL>https://example.com/LicensorURL_1_ref2021.1</plus:LicensorURL>
    </rdf:li>



So in exiftool's json these values will be "Unknown (Work)" and "Unknown (Cell)"


    "Licensor": {
      "id": "Licensor",
      "table": "PLUS::XMP",
      "val": [{
        "LicensorCity": "Licensor City 1 (ref2021.1)",
        "LicensorCountry": "Licensor Country 1 (ref2021.1)",
        "LicensorEmail": "Licensor Email 1 (ref2021.1)",
        "LicensorExtendedAddress": "Licensor Ext Addr 1 (ref2021.1)",
        "LicensorID": "Licensor ID 1 (ref2021.1)",
        "LicensorName": "Licensor Name 1 (ref2021.1)",
        "LicensorPostalCode": "Licensor Postcode 1 (ref2021.1)",
        "LicensorRegion": "Licensor Region 1 (ref2021.1)",
        "LicensorStreetAddress": "Licensor Street Addr 1 (ref2021.1)",
        "LicensorTelephone1": "Licensor Phone1 1 (ref2021.1)",
        "LicensorTelephone2": "Licensor Phone2 1 (ref2021.1)",
        "LicensorTelephoneType1": "Unknown (Work)",
        "LicensorTelephoneType2": "Unknown (Cell)",
        "LicensorURL": "https://example.com/LicensorURL_1_ref2021.1"


Of cource the error is in the image, it's clearly not the same as the specification. But I thought I'd mention it here because I don't know if you usually patch such cases in exiftool or not. Thanks.


edit: I corrected and imported the xmp and the json has good values now (with capitalized words :) ).


    "Licensor": {
      "id": "Licensor",
      "table": "PLUS::XMP",
      "val": [{
        "LicensorCity": "Licensor City 1 (ref2021.1)",
        "LicensorCountry": "Licensor Country 1 (ref2021.1)",
        "LicensorEmail": "Licensor Email 1 (ref2021.1)",
        "LicensorExtendedAddress": "Licensor Ext Addr 1 (ref2021.1)",
        "LicensorID": "Licensor ID 1 (ref2021.1)",
        "LicensorName": "Licensor Name 1 (ref2021.1)",
        "LicensorPostalCode": "Licensor Postcode 1 (ref2021.1)",
        "LicensorRegion": "Licensor Region 1 (ref2021.1)",
        "LicensorStreetAddress": "Licensor Street Addr 1 (ref2021.1)",
        "LicensorTelephone1": "Licensor Phone1 1 (ref2021.1)",
        "LicensorTelephone2": "Licensor Phone2 1 (ref2021.1)",
        "LicensorTelephoneType1": "Work",
        "LicensorTelephoneType2": "Cell",
        "LicensorURL": "https://example.com/LicensorURL_1_ref2021.1"

Phil Harvey

Your analysis is correct.  I have reported this to Michael Steidl at IPTC.

I don't know how this happened because IPTC uses ExifTool to prepare the sample files.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Phil Harvey

The reason that this was written incorrectly was because the IPTC was bypassing the restricted vocabulary as implemented by ExifTool by using the -n option.  They have now updated a fixed version of the sample file on their web site.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).