# Example Trust Profile for evaluating camera_credential.json
---
metadata:
  name: Experimental Camera Profile
  issuer: JPEG Trust Committee
  date: 2023-09-28T13:19:36.705Z
  version: 1.0.0
  language: en

profile_metadata:
  something: value

sample_common:
  description: This is a sample camera profile for testing purposes
  number: 1234567890

---
# Section 1

- id: generalInfo
  description: Section 1 - General Information
  title: General Information
  report_text: This section provides information about general stuff

- # See if the asset has been modified after creation
  id: declaration_only
  description: is there a declaration and no manifests present?
  expression: contains(keys(@), "declaration") && !contains(keys(@), "manifest")
  report_text:
    'true':
      en: No modifications took place after it was created
    'false':
      en: This media asset was modified after creation, but with full provenance

---
# Section 2 - GPS & Location information

- id: location
  description: Section 2 - Data and AI training information
  title: Data and AI training
  report_text: This section provides information about the asset's ai training configuration

- # check data mining
  id: data_mining
  description: Check the image doesn't allow data mining
  expression: >
    declaration.assertions.'cawg.data_mining'.'use' == "notAllowed"
  report_text:
    'true':
      en: The declaration shows that the image doesn't allow data mining
      fr: Translation in French
      zh: Translation in Simplified Chinese
    'false':
      en: The declaration shows that the image allows data mining

- # check ai training
  id: ai_training
  description: Check the image doesn't allow ai training
  expression: >
    declaration.assertions.'cawg.ai_training'.'use' == "notAllowed"
  report_text:
    'true':
      en: The declaration shows that the image doesn't allow ai training
      fr: Translation in French
      zh: Translation in Simplified Chinese
    'false':
      en: The declaration shows that the image allows ai training

- # check ai generative training
  id: ai_generative_training
  description: Check the image doesn't allow ai generative training
  expression: >
    declaration.assertions.'cawg.ai_generative_training'.'use' == "notAllowed"
  report_text:
    'true':
      en: The declaration shows that the image doesn't allow ai generative training
      fr: Translation in French
      zh: Translation in Simplified Chinese
    'false':
      en: The declaration shows that the image allows ai generative training

- # check ai inference
  id: ai_inference
  description: Check the image doesn't allow ai inference
  expression: >
    declaration.assertions.'cawg.ai_inference'.'use' == "notAllowed"
  report_text:
    'true':
      en: The declaration shows that the image doesn't allow ai inference
      fr: Translation in French
      zh: Translation in Simplified Chinese
    'false':
      en: The declaration shows that the image allows ai inference
