{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "schema:MusicComposition",
  "title": "MusicComposition",
  "description": "A musical composition.",
  "type": "object",
  "allOf": [
    {
      "description": "The most generic kind of creative work, including books, movies, photographs, software programs, etc.",
      "$ref": "schema:CreativeWork"
    }
  ],
  "properties": {
    "composer": {
      "description": "The person or organization who wrote a composition, or who is the composer of a work performed at some event.",
      "anyOf": [{ "$ref": "schema:Organization" }, { "$ref": "schema:Person" }]
    },
    "firstPerformance": {
      "description": "The date and place the work was first performed.",
      "$ref": "schema:Event"
    },
    "includedComposition": {
      "description": "Smaller compositions included in this work (e.g. a movement in a symphony).",
      "oneOf": [
        { "$ref": "schema:MusicComposition" },
        { "type": "array", "items": { "$ref": "schema:MusicComposition" } }
      ]
    },
    "iswcCode": {
      "description": "The International Standard Musical Work Code for the composition.",
      "type": "string"
    },
    "lyricist": {
      "description": "The person who wrote the words.",
      "$ref": "schema:Person"
    },
    "lyrics": {
      "description": "The words in the song.",
      "$ref": "schema:CreativeWork"
    },
    "musicArrangement": {
      "description": "An arrangement derived from the composition.",
      "oneOf": [
        { "$ref": "schema:MusicComposition" },
        { "type": "array", "items": { "$ref": "schema:MusicComposition" } }
      ]
    },
    "musicCompositionForm": {
      "description": "The type of composition (e.g. overture, sonata, symphony, etc.).",
      "type": "string"
    },
    "musicalKey": {
      "description": "The key, mode, or scale this composition uses.",
      "type": "string"
    },
    "recordedAs": {
      "description": "An audio recording of the work.",
      "oneOf": [
        { "$ref": "schema:MusicRecording" },
        { "type": "array", "items": { "$ref": "schema:MusicRecording" } }
      ]
    }
  }
}
