Asset Map, CPL and PKL Metadata Definitions (XML)

Example Metadata for an Asset Map

<?xml version="1.0" encoding="UTF-8"?>

<mio-objects>
    <mio-object>
        <id>12932</id>
        <name>imf_am_st0429_9_2007</name>
        <type>metadata-definition</type>
        <description><![CDATA[]]></description>
        <created>2018-07-03 19:10:21.0</created>
        <enabled>true</enabled>
        <approved>false</approved>
        <deleted>false</deleted>
        <owner>masteruser</owner>
        <account>Master Account</account>
        <visibility>Master Account</visibility>
        <metadata-definition>
            <metadata id="103929" name="root" display_name="IMP" commentable="false">
                <searchable>false</searchable>
                <editable>true</editable>
                <required>false</required>
                <children>
                    <string id="103930" name="id" display_name="Id" commentable="false">
                        <searchable>false</searchable>
                        <editable>true</editable>
                        <required>false</required>
                        <form-type>text</form-type>
                    </string>
                    <complex id="103931" name="annotation-text" display_name="Annotation Text" commentable="false">
                        <searchable>false</searchable>
                        <editable>false</editable>
                        <required>false</required>
                        <form-type></form-type>
                        <children>
                            <string id="103932" name="annotation-text-value" display_name="Annotation Text Value" commentable="false">
                                <searchable>false</searchable>
                                <editable>true</editable>
                                <required>false</required>
                                <form-type>text</form-type>
                            </string>
                            <string id="103933" name="annotation-text-language" display_name="Annotation Text Language" commentable="false">
                                <searchable>false</searchable>
                                <editable>true</editable>
                                <required>false</required>
                                <form-type>text</form-type>
                            </string>
                        </children>
                    </complex>
                    <complex id="103934" name="creator" display_name="Creator" commentable="false">
                        <searchable>false</searchable>
                        <editable>false</editable>
                        <required>false</required>
                        <form-type></form-type>
                        <children>
                            <string id="103935" name="creator-value" display_name="Creator Value" commentable="false">
                                <searchable>false</searchable>
                                <editable>true</editable>
                                <required>false</required>
                                <form-type>text</form-type>
                            </string>
                            <string id="103936" name="creator-language" display_name="Creator Language" commentable="false">
                                <searchable>false</searchable>
                                <editable>true</editable>
                                <required>false</required>
                                <form-type>text</form-type>
                            </string>
                        </children>
                    </complex>
                    <integer id="103937" name="volume-count" display_name="Volume Count" commentable="false">
                        <searchable>false</searchable>
                        <editable>true</editable>
                        <required>false</required>
                        <form-type>text</form-type>
                        <format>#</format>
                        <format-description>#</format-description>
                    </integer>
                    <time id="103938" name="issue-date" display_name="Issue Date" commentable="false">
                        <searchable>false</searchable>
                        <editable>true</editable>
                        <required>false</required>
                        <form-type>time</form-type>
                        <format>yyyy-MM-dd HH:mm:ss</format>
                        <format-description>yyyy-MM-dd HH:mm:ss</format-description>
                        <user-locale>en_GB</user-locale>
                        <user-timezone>UTC</user-timezone>
                    </time>
                    <complex id="103939" name="issuer" display_name="Issuer" commentable="false">
                        <searchable>false</searchable>
                        <editable>false</editable>
                        <required>false</required>
                        <form-type></form-type>
                        <children>
                            <string id="103940" name="issuer-value" display_name="Issuer Value" commentable="false">
                                <searchable>false</searchable>
                                <editable>true</editable>
                                <required>false</required>
                                <form-type>text</form-type>
                            </string>
                            <string id="103941" name="issuer-language" display_name="Issuer Language" commentable="false">
                                <searchable>false</searchable>
                                <editable>true</editable>
                                <required>false</required>
                                <form-type>text</form-type>
                            </string>
                        </children>
                    </complex>
                </children>
                <metadatadefinitionversion>1</metadatadefinitionversion>
                <rules>
                    <rule>
                        <source path="root:id[0]" expression="{true}"/>
                        <target path="root:annotation-text[1]:annotation-text-language[1]">
                            <set-visible value="false"/>
                        </target>
                        <target path="root:creator[2]:creator-language[1]">
                            <set-visible value="false"/>
                        </target>
                        <target path="root:issuer[5]:issuer-language[1]">
                            <set-visible value="false"/>
                        </target>
                    </rule>
                </rules>
            </metadata>
        </metadata-definition>
        <mio-entity classname="tv.nativ.mio.enterprise.object.metadata.MetadataDefinitionEntity">
            <id>12932</id>
        </mio-entity>
    </mio-object>
</mio-objects>

            
        

Example Metadata for a CPL

<?xml version="1.0" encoding="UTF-8"?>

<mio-objects>
    <mio-object>
        <id>11716</id>
        <name>imf_cpl_st2067_3_2016</name>
        <type>metadata-definition</type>
        <description><![CDATA[]]></description>
        <created>2018-06-29 15:31:36.0</created>
        <enabled>true</enabled>
        <approved>false</approved>
        <deleted>false</deleted>
        <owner>masteruser</owner>
        <account>Master Account</account>
        <visibility>Master Account</visibility>
        <metadata-definition>
            <metadata id="103325" name="root" display_name="CPL" commentable="false">
                <searchable>false</searchable>
                <editable>true</editable>
                <required>false</required>
                <children>
                    <string id="103326" name="id" display_name="Id" commentable="false">
                        <searchable>false</searchable>
                        <editable>true</editable>
                        <required>false</required>
                        <form-type>text</form-type>
                    </string>
                    <time id="103327" name="issue-date" display_name="Issue Date" commentable="false">
                        <searchable>false</searchable>
                        <editable>true</editable>
                        <required>false</required>
                        <form-type>time</form-type>
                        <format>yyyy-MM-dd HH:mm:ss</format>
                        <format-description>yyyy-MM-dd HH:mm:ss</format-description>
                        <user-locale>en_GB</user-locale>
                        <user-timezone>UTC</user-timezone>
                    </time>
                    <complex id="103328" name="content-title" display_name="Content Title" commentable="false">
                        <searchable>false</searchable>
                        <editable>false</editable>
                        <required>false</required>
                        <form-type></form-type>
                        <children>
                            <string id="103329" name="content-title-value" display_name="Content Title Value" commentable="false">
                                <searchable>false</searchable>
                                <editable>true</editable>
                                <required>false</required>
                                <form-type>text</form-type>
                            </string>
                            <string id="103330" name="content-title-language" display_name="Content Title Language" commentable="false">
                                <searchable>false</searchable>
                                <editable>true</editable>
                                <required>false</required>
                                <form-type>text</form-type>
                            </string>
                        </children>
                    </complex>
                    <complex id="103331" name="content-kind" display_name="Content Kind" commentable="false">
                        <searchable>false</searchable>
                        <editable>false</editable>
                        <required>false</required>
                        <form-type></form-type>
                        <children>
                            <string id="103332" name="content-kind-value" display_name="Content Kind Value" commentable="false">
                                <searchable>false</searchable>
                                <editable>true</editable>
                                <required>false</required>
                                <form-type>text</form-type>
                            </string>
                            <string id="103333" name="content-kind-scope" display_name="Content Kind Scope" commentable="false">
                                <searchable>false</searchable>
                                <editable>true</editable>
                                <required>false</required>
                                <form-type>text</form-type>
                            </string>
                        </children>
                    </complex>
                    <complex id="103334" name="content-originator" display_name="Content Originator" commentable="false">
                        <searchable>false</searchable>
                        <editable>false</editable>
                        <required>false</required>
                        <form-type></form-type>
                        <children>
                            <string id="103335" name="content-originator-value" display_name="Content Originator Value" commentable="false">
                                <searchable>false</searchable>
                                <editable>true</editable>
                                <required>false</required>
                                <form-type>text</form-type>
                            </string>
                            <string id="103336" name="content-originator-language" display_name="Content Originator Language" commentable="false">
                                <searchable>false</searchable>
                                <editable>true</editable>
                                <required>false</required>
                                <form-type>text</form-type>
                            </string>
                        </children>
                    </complex>
                    <complex id="103337" name="annotation" display_name="Annotation" commentable="false">
                        <searchable>false</searchable>
                        <editable>false</editable>
                        <required>false</required>
                        <form-type></form-type>
                        <children>
                            <string id="103338" name="annotation-value" display_name="Annotation Value" commentable="false">
                                <searchable>false</searchable>
                                <editable>true</editable>
                                <required>false</required>
                                <form-type>text</form-type>
                            </string>
                            <string id="103339" name="annotation-language" display_name="Annotation Language" commentable="false">
                                <searchable>false</searchable>
                                <editable>true</editable>
                                <required>false</required>
                                <form-type>text</form-type>
                            </string>
                        </children>
                    </complex>
                    <complex id="103340" name="creator" display_name="Creator" commentable="false">
                        <searchable>false</searchable>
                        <editable>false</editable>
                        <required>false</required>
                        <form-type></form-type>
                        <children>
                            <string id="103341" name="creator-value" display_name="Creator Value" commentable="false">
                                <searchable>false</searchable>
                                <editable>true</editable>
                                <required>false</required>
                                <form-type>text</form-type>
                            </string>
                            <string id="103342" name="creator-language" display_name="Creator Language" commentable="false">
                                <searchable>false</searchable>
                                <editable>true</editable>
                                <required>false</required>
                                <form-type>text</form-type>
                            </string>
                        </children>
                    </complex>
                    <complex id="103343" name="issuer" display_name="Issuer" commentable="false">
                        <searchable>false</searchable>
                        <editable>false</editable>
                        <required>false</required>
                        <form-type></form-type>
                        <children>
                            <string id="103344" name="issuer-value" display_name="Issuer Value" commentable="false">
                                <searchable>false</searchable>
                                <editable>true</editable>
                                <required>false</required>
                                <form-type>text</form-type>
                            </string>
                            <string id="103345" name="issuer-language" display_name="Issuer Language" commentable="false">
                                <searchable>false</searchable>
                                <editable>true</editable>
                                <required>false</required>
                                <form-type>text</form-type>
                            </string>
                        </children>
                    </complex>
                    <string id="103346" name="schema-version" display_name="Schema Version" commentable="false">
                        <searchable>false</searchable>
                        <editable>true</editable>
                        <required>false</required>
                        <form-type>text</form-type>
                    </string>
                    <long id="103347" name="edit-rate" display_name="Edit Rate" commentable="false" multiplicity="1..*">
                        <searchable>false</searchable>
                        <editable>true</editable>
                        <required>false</required>
                        <form-type>text</form-type>
                        <format>#,##0.###</format>
                        <format-description>#,##0.###</format-description>
                    </long>
                    <complex id="103348" name="content-version-list" display_name="Content Version List" commentable="false">
                        <searchable>false</searchable>
                        <editable>false</editable>
                        <required>false</required>
                        <form-type></form-type>
                        <children>
                            <complex id="103349" name="content-version" display_name="Content Version" commentable="false" multiplicity="1..*">
                                <searchable>false</searchable>
                                <editable>false</editable>
                                <required>false</required>
                                <form-type></form-type>
                                <children>
                                    <string id="103350" name="content-version-id" display_name="Content Version Id" commentable="false">
                                        <searchable>false</searchable>
                                        <editable>true</editable>
                                        <required>false</required>
                                        <form-type>text</form-type>
                                    </string>
                                    <complex id="103351" name="label-text" display_name="Label Text" commentable="false">
                                        <searchable>false</searchable>
                                        <editable>false</editable>
                                        <required>false</required>
                                        <form-type></form-type>
                                        <children>
                                            <string id="103352" name="label-text-value" display_name="Label Text Value" commentable="false">
                                                <searchable>false</searchable>
                                                <editable>true</editable>
                                                <required>false</required>
                                                <form-type>text</form-type>
                                            </string>
                                            <string id="103353" name="label-text-language" display_name="Label Text Language" commentable="false">
                                                <searchable>false</searchable>
                                                <editable>true</editable>
                                                <required>false</required>
                                                <form-type>text</form-type>
                                            </string>
                                        </children>
                                    </complex>
                                </children>
                            </complex>
                        </children>
                    </complex>
                    <complex id="103354" name="locale-list" display_name="Locale List" commentable="false">
                        <searchable>false</searchable>
                        <editable>false</editable>
                        <required>false</required>
                        <form-type></form-type>
                        <children>
                            <complex id="103355" name="locale" display_name="Locale" commentable="false" multiplicity="1..*">
                                <searchable>false</searchable>
                                <editable>false</editable>
                                <required>false</required>
                                <form-type></form-type>
                                <children>
                                    <complex id="103356" name="locale-annotation" display_name="Locale Annotation" commentable="false">
                                        <searchable>false</searchable>
                                        <editable>false</editable>
                                        <required>false</required>
                                        <form-type></form-type>
                                        <children>
                                            <string id="103357" name="locale-annotation-value" display_name="Locale Annotation Value" commentable="false">
                                                <searchable>false</searchable>
                                                <editable>true</editable>
                                                <required>false</required>
                                                <form-type>text</form-type>
                                            </string>
                                            <string id="103358" name="locale-annotation-language" display_name="Locale Annotation Language" commentable="false">
                                                <searchable>false</searchable>
                                                <editable>true</editable>
                                                <required>false</required>
                                                <form-type>text</form-type>
                                            </string>
                                        </children>
                                    </complex>
                                    <complex id="103359" name="content-maturity-list" display_name="Content Maturity List" commentable="false">
                                        <searchable>false</searchable>
                                        <editable>false</editable>
                                        <required>false</required>
                                        <form-type></form-type>
                                        <children>
                                            <complex id="103360" name="content-maturity" display_name="Content Maturity" commentable="false" multiplicity="1..*">
                                                <searchable>false</searchable>
                                                <editable>false</editable>
                                                <required>false</required>
                                                <form-type></form-type>
                                                <children>
                                                    <string id="103361" name="agency" display_name="Agency" commentable="false">
                                                        <searchable>false</searchable>
                                                        <editable>true</editable>
                                                        <required>false</required>
                                                        <form-type>text</form-type>
                                                    </string>
                                                    <string id="103362" name="rating" display_name="Rating" commentable="false">
                                                        <searchable>false</searchable>
                                                        <editable>true</editable>
                                                        <required>false</required>
                                                        <form-type>text</form-type>
                                                    </string>
                                                </children>
                                            </complex>
                                        </children>
                                    </complex>
                                    <string id="103363" name="language-list" display_name="Language List" commentable="false" multiplicity="1..*">
                                        <searchable>false</searchable>
                                        <editable>true</editable>
                                        <required>false</required>
                                        <form-type>text</form-type>
                                    </string>
                                    <string id="103364" name="region-list" display_name="Region List" commentable="false" multiplicity="1..*">
                                        <searchable>false</searchable>
                                        <editable>true</editable>
                                        <required>false</required>
                                        <form-type>text</form-type>
                                    </string>
                                </children>
                            </complex>
                        </children>
                    </complex>
                </children>
                <metadatadefinitionversion>1</metadatadefinitionversion>
                <rules>
                    <rule>
                        <source path="root:id[0]" expression="{true}"/>
                        <target path="root:content-title[2]:content-title-language[1]">
                            <set-visible value="false"/>
                        </target>
                        <target path="root:content-originator[4]:content-originator-language[1]">
                            <set-visible value="false"/>
                        </target>
                        <target path="root:annotation[5]:annotation-language[1]">
                            <set-visible value="false"/>
                        </target>
                        <target path="root:creator[6]:creator-language[1]">
                            <set-visible value="false"/>
                        </target>
                        <target path="root:issuer[7]:issuer-language[1]">
                            <set-visible value="false"/>
                        </target>
                        <target path="root:content-version-list[10]:content-version[0]:label-text[1]:label-text-language[1]">
                            <set-visible value="false"/>
                        </target>
                        <target path="root:locale-list[11]:locale[0]:locale-annotation[0]:locale-annotation-language[1]">
                            <set-visible value="false"/>
                        </target>
                    </rule>
                </rules>
            </metadata>
        </metadata-definition>
        <mio-entity classname="tv.nativ.mio.enterprise.object.metadata.MetadataDefinitionEntity">
            <id>11716</id>
        </mio-entity>
    </mio-object>
</mio-objects>

        

Example Metadata for a PKL

<?xml version="1.0" encoding="UTF-8"?>

<mio-objects>
    <mio-object>
        <id>12728</id>
        <name>imf_pkl_st2067_2_2016</name>
        <type>metadata-definition</type>
        <description><![CDATA[]]></description>
        <created>2018-07-03 14:47:55.0</created>
        <enabled>true</enabled>
        <approved>false</approved>
        <deleted>false</deleted>
        <owner>masteruser</owner>
        <account>Master Account</account>
        <visibility>Master Account</visibility>
        <metadata-definition>
            <metadata id="103828" name="root" display_name="PKL" commentable="false">
                <searchable>false</searchable>
                <editable>true</editable>
                <required>false</required>
                <children>
                    <string id="103829" name="id" display_name="Id" commentable="false">
                        <searchable>false</searchable>
                        <editable>true</editable>
                        <required>false</required>
                        <form-type>text</form-type>
                    </string>
                    <complex id="103830" name="annotation-text" display_name="Annotation Text" commentable="false">
                        <searchable>false</searchable>
                        <editable>false</editable>
                        <required>false</required>
                        <form-type></form-type>
                        <children>
                            <string id="103831" name="annotation-text-value" display_name="Annotation Text Value" commentable="false">
                                <searchable>false</searchable>
                                <editable>true</editable>
                                <required>false</required>
                                <form-type>text</form-type>
                            </string>
                            <string id="103832" name="annotation-text-language" display_name="Annotation Text Language" commentable="false">
                                <searchable>false</searchable>
                                <editable>true</editable>
                                <required>false</required>
                                <form-type>text</form-type>
                            </string>
                        </children>
                    </complex>
                    <string id="103833" name="icon-id" display_name="Icon Id" commentable="false">
                        <searchable>false</searchable>
                        <editable>true</editable>
                        <required>false</required>
                        <form-type>text</form-type>
                    </string>
                    <time id="103834" name="issue-date" display_name="Issue Date" commentable="false">
                        <searchable>false</searchable>
                        <editable>true</editable>
                        <required>false</required>
                        <form-type>time</form-type>
                        <format>yyyy-MM-dd HH:mm:ss</format>
                        <format-description>yyyy-MM-dd HH:mm:ss</format-description>
                        <user-locale>en_GB</user-locale>
                        <user-timezone>UTC</user-timezone>
                    </time>
                    <complex id="103835" name="issuer" display_name="Issuer" commentable="false">
                        <searchable>false</searchable>
                        <editable>false</editable>
                        <required>false</required>
                        <form-type></form-type>
                        <children>
                            <string id="103836" name="issuer-value" display_name="Issuer Value" commentable="false">
                                <searchable>false</searchable>
                                <editable>true</editable>
                                <required>false</required>
                                <form-type>text</form-type>
                            </string>
                            <string id="103837" name="issuer-language" display_name="Issuer Language" commentable="false">
                                <searchable>false</searchable>
                                <editable>true</editable>
                                <required>false</required>
                                <form-type>text</form-type>
                            </string>
                        </children>
                    </complex>
                    <complex id="103838" name="creator" display_name="Creator" commentable="false">
                        <searchable>false</searchable>
                        <editable>false</editable>
                        <required>false</required>
                        <form-type></form-type>
                        <children>
                            <string id="103839" name="creator-value" display_name="Creator Value" commentable="false">
                                <searchable>false</searchable>
                                <editable>true</editable>
                                <required>false</required>
                                <form-type>text</form-type>
                            </string>
                            <string id="103840" name="creator-language" display_name="Creator Language" commentable="false">
                                <searchable>false</searchable>
                                <editable>true</editable>
                                <required>false</required>
                                <form-type>text</form-type>
                            </string>
                        </children>
                    </complex>
                    <string id="103841" name="group-id" display_name="Group Id" commentable="false">
                        <searchable>false</searchable>
                        <editable>true</editable>
                        <required>false</required>
                        <form-type>text</form-type>
                    </string>
                </children>
                <metadatadefinitionversion>1</metadatadefinitionversion>
                <rules>
                    <rule>
                        <source path="root:id[0]" expression="{true}"/>
                        <target path="root:annotation-text[1]:annotation-text-language[1]">
                            <set-visible value="false"/>
                        </target>
                        <target path="root:issuer[4]:issuer-language[1]">
                            <set-visible value="false"/>
                        </target>
                        <target path="root:creator[5]:creator-language[1]">
                            <set-visible value="false"/>
                        </target>
                    </rule>
                </rules>
            </metadata>
        </metadata-definition>
        <mio-entity classname="tv.nativ.mio.enterprise.object.metadata.MetadataDefinitionEntity">
            <id>12728</id>
        </mio-entity>
    </mio-object>
</mio-objects>     
https://help.ooyala.com/sites/all/libraries/dita/en/media-logistics/flex/user/70/imp_appendix_metadata_definition_xml.html

Was this article helpful?