{ "$schema":                  "https://json-schema.org/draft/2020-12/schema",
  "$id":                      "https://schemas.mpai.community/MMC/V2.5/data/Emotion.json",
  "title":                    "Emotion V2.5",
  "description":              "Emotion labels per MPAI-MMC: categories with general and specific adjectival labels.",
  "type":                     "object",
  "required":                 ["Header", "EmotionCategory"],
  "additionalProperties":     false,
  "properties":               {

    "Header":                 { "type": "string", "const": "MMC-EEM-V2.5" },
    "MInstanceID":            { "type": "string" },
    "UEnvironmentID":         { "type": "string" },
    "EmotionID":              { "type": "string" },
    "EmotionTime":            { "$ref": "https://schemas.mpai.community/OSD/V1.5/data/SimpleTime.json" },

    "EmotionCategory":        { "type": "object", "additionalProperties": false, "properties": {

      "ANGER":                { "type": "object", "additionalProperties": false, "properties": {
        "GeneralAdjectival":  { "type": "object", "additionalProperties": false, "properties": {
          "angry":            { "type": "string", "enum": ["furious", "irritated", "frustrated"] } } } } },

      "CALMNESS":             { "type": "object", "additionalProperties": false, "properties": {
        "GeneralAdjectival":  { "type": "object", "additionalProperties": false, "properties": {
          "calm":             { "type": "string", "enum": ["peaceful/serene", "resigned"] } } } } },

      "DISGUST":              { "type": "object", "additionalProperties": false, "properties": {
        "GeneralAdjectival":  { "type": "object", "additionalProperties": false, "properties": {
          "disgusted":        { "type": "string", "enum": ["repulsed"] } } } } },

      "FEAR":                 { "type": "object", "additionalProperties": false, "properties": {
        "GeneralAdjectival":  { "type": "object", "additionalProperties": false, "properties": {
          "fearful/scared":   { "type": "string", "enum": ["terrified", "anxious/uneasy"] } } } } },

      "HAPPINESS":            { "type": "object", "additionalProperties": false, "properties": {
        "GeneralAdjectival":  { "type": "object", "additionalProperties": false, "properties": {
          "happy":            { "type": "string", "enum": ["joyful", "content", "delighted", "amused"] } } } } },

      "HURT":                 { "type": "object", "additionalProperties": false, "properties": {
        "GeneralAdjectival":  { "type": "object", "additionalProperties": false, "properties": {
          "hurt":             { "type": "string", "enum": ["jealous", "insulted/offended", "resentful/disgruntled", "bitter"] } } } } },

      "PRIDE/SHAME":          { "type": "object", "additionalProperties": false, "properties": {
        "GeneralAdjectival":  { "type": "object", "additionalProperties": false, "properties": {
          "proud":            { "type": "string", "enum": ["ashamed", "guilty/remorseful/sorry", "embarrassed"] } } } } },

      "RETROSPECTION":        { "type": "object", "additionalProperties": false, "properties": {
        "GeneralAdjectival":  { "type": "object", "additionalProperties": false, "properties": {
          "nostalgic":        { "type": "string", "enum": ["homesick"] } } } } },

      "SADNESS":              { "type": "object", "additionalProperties": false, "properties": {
        "GeneralAdjectival":  { "type": "object", "additionalProperties": false, "properties": {
          "sad":              { "type": "string", "enum": ["lonely", "grief-stricken", "depressed/gloomy", "disappointed"] } } } } } } },

    "DataXMData":             { "$ref": "https://schemas.mpai.community/PTF/V1.0/data/DataExchangeMetadata.json" },
    "DescrMetadata":          { "type": "string", "maxLength": 2048 } } }
