# Generated from trust/mappings/valeria-metadata-1.0.yaml; do not edit manually.
---
profile_metadata:
  name: Valeria Consistency Trust Profile
  issuer: Valeria Authoring Services
  date: '2026-08-14'
  version: 0.1.0
  language: en
  mapping: 1.0.0
---
- id: valeria:compact
  title: Metadata consistency
  report_text: Comparison of conventional metadata, standardized C2PA assertions and embedded VMC.
- id: valeria:asset_identifier_consistent
  expression: '((metadata.''dc:identifier'') != null && (manifests[0].assertions.''gallery.valeria.vmc''.asset.identifier)
    != null && (metadata.''dc:identifier'') == (manifests[0].assertions.''gallery.valeria.vmc''.asset.identifier))
    &&

    (((manifests[0].assertions.''cawg.metadata''.entries[?name == "identifier"].value | [0])) != null && (manifests[0].assertions.''gallery.valeria.vmc''.asset.identifier)
    != null && ((manifests[0].assertions.''cawg.metadata''.entries[?name == "identifier"].value | [0])) == (manifests[0].assertions.''gallery.valeria.vmc''.asset.identifier))'
  report_text:
    'true':
      en: Asset identifier matches across all mapped metadata sources.
    'false':
      en: Asset identifier differs or is missing in one or more mapped metadata sources.
    'null':
      en: Asset identifier is absent from all mapped metadata sources and was not compared.
- id: valeria:image_title_consistent
  expression: 'if(((metadata.''dc:title:value'') == null &&

    ((manifests[0].assertions.''cawg.metadata''.entries[?name == "title"].value | [0])) == null &&

    (manifests[0].assertions.''gallery.valeria.vmc''.metadata.image.title) == null), null,

    (((metadata.''dc:title:value'') != null && (manifests[0].assertions.''gallery.valeria.vmc''.metadata.image.title)
    != null && (metadata.''dc:title:value'') == (manifests[0].assertions.''gallery.valeria.vmc''.metadata.image.title))
    &&

    (((manifests[0].assertions.''cawg.metadata''.entries[?name == "title"].value | [0])) != null && (manifests[0].assertions.''gallery.valeria.vmc''.metadata.image.title)
    != null && ((manifests[0].assertions.''cawg.metadata''.entries[?name == "title"].value | [0])) == (manifests[0].assertions.''gallery.valeria.vmc''.metadata.image.title))))'
  report_text:
    'true':
      en: Image title matches across all mapped metadata sources.
    'false':
      en: Image title differs or is missing in one or more mapped metadata sources.
    'null':
      en: Image title is absent from all mapped metadata sources and was not compared.
- id: valeria:creator_name_consistent
  expression: '((metadata.''dc:creator'') != null && (manifests[0].assertions.''gallery.valeria.vmc''.metadata.creator.name)
    != null && (metadata.''dc:creator'') == (manifests[0].assertions.''gallery.valeria.vmc''.metadata.creator.name))
    &&

    (((manifests[0].assertions.''cawg.metadata''.entries[?name == "creator"].value | [0])) != null && (manifests[0].assertions.''gallery.valeria.vmc''.metadata.creator.name)
    != null && ((manifests[0].assertions.''cawg.metadata''.entries[?name == "creator"].value | [0])) == (manifests[0].assertions.''gallery.valeria.vmc''.metadata.creator.name))
    &&

    ((manifests[0].assertions.''stds.schema-org.CreativeWork''.item.author[0].name) != null && (manifests[0].assertions.''gallery.valeria.vmc''.metadata.creator.name)
    != null && (manifests[0].assertions.''stds.schema-org.CreativeWork''.item.author[0].name) == (manifests[0].assertions.''gallery.valeria.vmc''.metadata.creator.name))'
  report_text:
    'true':
      en: Creator name matches across all mapped metadata sources.
    'false':
      en: Creator name differs or is missing in one or more mapped metadata sources.
    'null':
      en: Creator name is absent from all mapped metadata sources and was not compared.
- id: valeria:creator_organization_consistent
  expression: '((metadata.''photoshop:Credit'') != null && (manifests[0].assertions.''gallery.valeria.vmc''.metadata.creator.organization)
    != null && (metadata.''photoshop:Credit'') == (manifests[0].assertions.''gallery.valeria.vmc''.metadata.creator.organization))
    &&

    ((manifests[0].assertions.''stds.schema-org.CreativeWork''.item.author[0].affiliation.name) != null && (manifests[0].assertions.''gallery.valeria.vmc''.metadata.creator.organization)
    != null && (manifests[0].assertions.''stds.schema-org.CreativeWork''.item.author[0].affiliation.name) == (manifests[0].assertions.''gallery.valeria.vmc''.metadata.creator.organization))'
  report_text:
    'true':
      en: Creator organization matches across all mapped metadata sources.
    'false':
      en: Creator organization differs or is missing in one or more mapped metadata sources.
    'null':
      en: Creator organization is absent from all mapped metadata sources and was not compared.
- id: valeria:copyright_notice_consistent
  expression: '((metadata.''dc:rights:value'') != null && (manifests[0].assertions.''gallery.valeria.vmc''.metadata.rights.copyright_notice)
    != null && (metadata.''dc:rights:value'') == (manifests[0].assertions.''gallery.valeria.vmc''.metadata.rights.copyright_notice))
    &&

    ((manifests[0].assertions.''stds.schema-org.CreativeWork''.item.copyrightNotice) != null && (manifests[0].assertions.''gallery.valeria.vmc''.metadata.rights.copyright_notice)
    != null && (manifests[0].assertions.''stds.schema-org.CreativeWork''.item.copyrightNotice) == (manifests[0].assertions.''gallery.valeria.vmc''.metadata.rights.copyright_notice))'
  report_text:
    'true':
      en: Copyright notice matches across all mapped metadata sources.
    'false':
      en: Copyright notice differs or is missing in one or more mapped metadata sources.
    'null':
      en: Copyright notice is absent from all mapped metadata sources and was not compared.
- id: valeria:license_uri_consistent
  expression: '((metadata.''xmpRights:WebStatement'') != null && (manifests[0].assertions.''gallery.valeria.vmc''.metadata.rights.license.uri)
    != null && (metadata.''xmpRights:WebStatement'') == (manifests[0].assertions.''gallery.valeria.vmc''.metadata.rights.license.uri))
    &&

    ((manifests[0].assertions.''jpt.rights''.''dcterms:license'') != null && (manifests[0].assertions.''gallery.valeria.vmc''.metadata.rights.license.uri)
    != null && (manifests[0].assertions.''jpt.rights''.''dcterms:license'') == (manifests[0].assertions.''gallery.valeria.vmc''.metadata.rights.license.uri))
    &&

    ((manifests[0].assertions.''stds.schema-org.CreativeWork''.item.license) != null && (manifests[0].assertions.''gallery.valeria.vmc''.metadata.rights.license.uri)
    != null && (manifests[0].assertions.''stds.schema-org.CreativeWork''.item.license) == (manifests[0].assertions.''gallery.valeria.vmc''.metadata.rights.license.uri))'
  report_text:
    'true':
      en: Licence URI matches across all mapped metadata sources.
    'false':
      en: Licence URI differs or is missing in one or more mapped metadata sources.
    'null':
      en: Licence URI is absent from all mapped metadata sources and was not compared.
- id: valeria:rights_holder_identifier_consistent
  expression: '((metadata.''xmpRights:Owner'') != null && (manifests[0].assertions.''gallery.valeria.vmc''.metadata.rights.rights_holder.identifier)
    != null && (metadata.''xmpRights:Owner'') == (manifests[0].assertions.''gallery.valeria.vmc''.metadata.rights.rights_holder.identifier))
    &&

    ((manifests[0].assertions.''jpt.rights''.permission[0].assigner) != null && (manifests[0].assertions.''gallery.valeria.vmc''.metadata.rights.rights_holder.identifier)
    != null && (manifests[0].assertions.''jpt.rights''.permission[0].assigner) == (manifests[0].assertions.''gallery.valeria.vmc''.metadata.rights.rights_holder.identifier))
    &&

    ((manifests[0].assertions.''stds.schema-org.CreativeWork''.item.copyrightHolder.identifier) != null && (manifests[0].assertions.''gallery.valeria.vmc''.metadata.rights.rights_holder.identifier)
    != null && (manifests[0].assertions.''stds.schema-org.CreativeWork''.item.copyrightHolder.identifier) == (manifests[0].assertions.''gallery.valeria.vmc''.metadata.rights.rights_holder.identifier))'
  report_text:
    'true':
      en: Rights-holder identifier matches across all mapped metadata sources.
    'false':
      en: Rights-holder identifier differs or is missing in one or more mapped metadata sources.
    'null':
      en: Rights-holder identifier is absent from all mapped metadata sources and was not compared.
- id: valeria:digital_source_type_consistent
  expression: '((if(metadata.''Iptc4xmpExt:DigitalSourceType'' != null, metadata.''Iptc4xmpExt:DigitalSourceType'',
    metadata.''iptc4xmpExt:DigitalSourceType'')) != null && (manifests[0].assertions.''gallery.valeria.vmc''.metadata.source.digital_source_type.uri)
    != null && (if(metadata.''Iptc4xmpExt:DigitalSourceType'' != null, metadata.''Iptc4xmpExt:DigitalSourceType'',
    metadata.''iptc4xmpExt:DigitalSourceType'')) == (manifests[0].assertions.''gallery.valeria.vmc''.metadata.source.digital_source_type.uri))
    &&

    (((manifests[0].assertions.''cawg.metadata''.entries[?name == "DigitalSourceType"].value | [0])) != null &&
    (manifests[0].assertions.''gallery.valeria.vmc''.metadata.source.digital_source_type.uri) != null && ((manifests[0].assertions.''cawg.metadata''.entries[?name
    == "DigitalSourceType"].value | [0])) == (manifests[0].assertions.''gallery.valeria.vmc''.metadata.source.digital_source_type.uri))'
  report_text:
    'true':
      en: Digital Source Type matches across all mapped metadata sources.
    'false':
      en: Digital Source Type differs or is missing in one or more mapped metadata sources.
    'null':
      en: Digital Source Type is absent from all mapped metadata sources and was not compared.
- id: jpt:profile_compliance
  expression: '@.profile.''valeria:asset_identifier_consistent'' &&

    (@.profile.''valeria:image_title_consistent'' == null || @.profile.''valeria:image_title_consistent'') &&

    @.profile.''valeria:creator_name_consistent'' &&

    @.profile.''valeria:creator_organization_consistent'' &&

    @.profile.''valeria:copyright_notice_consistent'' &&

    @.profile.''valeria:license_uri_consistent'' &&

    @.profile.''valeria:rights_holder_identifier_consistent'' &&

    @.profile.''valeria:digital_source_type_consistent'''
  report_text:
    'true':
      en: All compared metadata fields match across conventional metadata, standardized C2PA assertions and embedded
        VMC.
    'false':
      en: One or more compared metadata fields differ or are missing across the evaluated sources.
- id: jpt:profile_score
  expression: '(if(@.profile.''valeria:asset_identifier_consistent'' == null, 0, if(@.profile.''valeria:asset_identifier_consistent'',
    1, 0)) +

    if(@.profile.''valeria:image_title_consistent'' == null, 0, if(@.profile.''valeria:image_title_consistent'',
    1, 0)) +

    if(@.profile.''valeria:creator_name_consistent'' == null, 0, if(@.profile.''valeria:creator_name_consistent'',
    1, 0)) +

    if(@.profile.''valeria:creator_organization_consistent'' == null, 0, if(@.profile.''valeria:creator_organization_consistent'',
    1, 0)) +

    if(@.profile.''valeria:copyright_notice_consistent'' == null, 0, if(@.profile.''valeria:copyright_notice_consistent'',
    1, 0)) +

    if(@.profile.''valeria:license_uri_consistent'' == null, 0, if(@.profile.''valeria:license_uri_consistent'',
    1, 0)) +

    if(@.profile.''valeria:rights_holder_identifier_consistent'' == null, 0, if(@.profile.''valeria:rights_holder_identifier_consistent'',
    1, 0)) +

    if(@.profile.''valeria:digital_source_type_consistent'' == null, 0, if(@.profile.''valeria:digital_source_type_consistent'',
    1, 0))) / (7 +

    if(@.profile.''valeria:image_title_consistent'' == null, 0, 1))'
  report_text: 'Metadata consistency score: {{profile.jpt:profile_score}}.'
- id: jpt:profile_summary
  expression: if(@.profile.'jpt:profile_compliance', "All compared metadata fields are consistent across conventional
    metadata, standardized C2PA assertions and embedded VMC.", "One or more compared metadata fields are inconsistent
    or unavailable; see the individual comparison statements.")
  report_text: Summary of the Valeria Consistency Trust Profile evaluation.
- id: valeria:profile_documentation
  expression: '"https://valeria.gallery/trust/profiles/valeria-consistency/0.1.0/"'
  report_text: Documentation for the profile used to generate this report is available from Valeria.
