Profile: music-genre

Profile Schema

The music-genre profile indicates a document is a category by which documents pertaining to a genre of music can be aggregated. Some examples of genres are “Soul”, “Classical”, and “Rock”.

The music-genre profile is intended to be used as a “type” profile.

Structure

The music-genre profile requires that the document also list the aggregation profile in its profile list; the aggregation profile provides further validation constraints.

Example music-genre document

{
  "id": "12345",
  "profiles": [
    {
      "href": "/v1/profiles/music-genre",
      "rels": [
        "type"
      ]
    },
    {
      "href": "/v1/profiles/aggregation"
    },
    {
      "href": "/v1/profiles/document"
    }
  ],
  "items": []
}

© 2024 npr