Index of every page on this site: llms.txt
TypeScript
Schema

Music Group Schema

Schema.org MusicGroup

Type: defineMusicGroup<T extends Record<string, any>>(input?: MusicGroup & T)

Describes a band or musical group.

Required properties

  • name string
    The name of the band/musical group.
  • member NodeRelations<Person | string>
    An array of band members, resolved as Person nodes.
  • genre string | string[]
    The genre(s) of music the group performs.
  • album NodeRelations<string>
    Names or URLs of albums by the group. This field is currently passed through without a MusicAlbum resolver.

Defaults

  • @type: MusicGroup
  • @id: ${canonicalHost}#/schema/music-group/{n}
  • url: canonicalHost

Examples

Minimal

defineMusicGroup({
  name: 'The Beatles',
})

Detailed example

defineMusicGroup({
  name: 'The Beatles',
  description: 'English rock band formed in Liverpool in 1960',
  url: 'https://example.com/artists/the-beatles',
  genre: ['Rock', 'Pop'],
  member: [
    { name: 'John Lennon' },
    { name: 'Paul McCartney' },
    { name: 'George Harrison' },
    { name: 'Ringo Starr' },
  ],
  foundingDate: new Date(1960, 7, 1),
  dissolutionDate: new Date(1970, 3, 10),
  album: [
    'Abbey Road',
    'Sgt. Pepper\'s Lonely Hearts Club Band',
  ],
  image: 'https://example.com/artists/the-beatles.jpg',
  sameAs: [
    'https://www.facebook.com/thebeatles',
    'https://twitter.com/thebeatles',
  ],
})

Types

export interface MusicGroupSimple extends Thing {
  name: string
  description?: string
  url?: string
  genre?: string | string[]
  member?: NodeRelations<Person | string>
  foundingDate?: ResolvableDate
  dissolutionDate?: ResolvableDate
  album?: NodeRelations<string>
  track?: NodeRelations<string>
  image?: NodeRelations<string | ImageObject>
  sameAs?: Arrayable<string>
}
Did this page help you?