Name Schema

Started by Przemek, July 02, 2013, 10:45:20 AM

Previous topic - Next topic

Przemek

In the similar way you can see EXIF Properties (http://ns.adobe.com/exif/1.0/) in the property tree is there a way to name new meta schema created with et. After adding new meta with the custom user tags I get Schema (http://mypage). I'd like to rename Schema to MyNewName. Thanks

Phil Harvey

I'm not sure exactly what you are asking, but there is an example of how to create your own custom XMP schema with ExifTool in the sample config file.  In this example, the schema name is 'xxx', but you can change this to whatever you want.

- 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 ($).

Przemek



I'd like to rename 'Schema' to something else if possible. Thanks Phil.

Phil Harvey

You'll have to ask in a forum for the software you are using to see if this is possible.  The schema names in your screen shot are generated by whatever software you were running.

- 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 ($).

Przemek

Schema was generated with exiftool using this example

%Image::ExifTool::UserDefined = (
   'Image::ExifTool::XMP::Main' => {
      myName => {
         SubDirectory => {
            Name => 'myName',
            TagTable => 'Image::ExifTool::UserDefined::myName',
         },
      },
   },
);

%Image::ExifTool::UserDefined::myName = (
   GROUPS => { 0 => 'XMP', 1 => 'XMP-myName', 2 => 'Image' },
   NAMESPACE => { 'myName' => 'http://ns.test.com/myName/1.0/' },
   WRITABLE => 'string',

   myNameInfo => {
      Struct => {
         NAMESPACE => { 'myNameInfo' => 'http://ns.test.com/myName/1.0/myNameInfo#' },
         STRUCT_NAME => 'myNameInfo',
         TestName => { },
         TestDisplayName => { },
         TestId => { },
      },
      List => 'Bag',
   },
   # shorten our flattened tag names
   myNameInfoTestName => {
      Name => 'TestName',
      Flat => 1,
   },
   myNameInfoTestDisplayName => {
      Name => 'TestDisplayName',
      Flat => 1,
   },
   myNameInfoTestId => {
      Name => 'TestId',
      Flat => 1,
   },
);

1; # end

exiftool -config config.cfg -xmp:TestName='taggger' ./1386075226_ipad.jpg

Phil Harvey

Right.  Notice that the word "Schema" doesn't exist anywhere in this config file.

- 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 ($).

Przemek

It's not in the config file but after running ...

exiftool -config config.cfg -xmp:TestName='taggger' ./1386075226_ipad.jpg

Schema is being added in. Can this be set, named via the config file? Thanks Phil.

Phil Harvey

You should look at the actual XMP that was added:

exiftool -xmp -b ./1386075226_ipad.jpg

- 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 ($).

Przemek

Based on

exiftool -xmp -b ./1386075226_ipad.jpg

<?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d'?>
<x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='Image::ExifTool 8.61'>
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>

<rdf:Description rdf:about=''
  xmlns:myName='http://ns.test.com/myName/1.0/'
  xmlns:myNameInfo='http://ns.test.com/myName/1.0/myNameInfo#'>
  <myName:myNameInfo>
   <rdf:Bag>
    <rdf:li rdf:parseType='Resource'>
     <myNameInfo:TestName>taggger</myNameInfo:TestName>
    </rdf:li>
   </rdf:Bag>
  </myName:myNameInfo>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>

The image represents the view in the Adobe Bridge. There is no Schema added in here either.

Thanks again Phil.

Phil Harvey

Exactly.  So all is good then?  You understand now that the schema description is something that the Adobe software is generating internally?

- 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 ($).

Przemek

Looks like it. I assumed that there must be a way to generate a name for the 'Schema'. My idea was to create a section of the xmp tags that would be grouped under a single name. Bucket of xmp data that would represent a specific company etc.

Thanks Phil.