effisk
effisk

Reputation: 83

microdata: how to declare several performers in one event?

I am building a webpage detailing an event.

That event has several people performing, and I would like to list all of the performers using microdata.

Here's what I have:

<div itemtype="http://schema.org/Event" itemscope itemprop="events">
  <span itemprop="name description">EVENT NAME</span>
  <span itemscope itemprop="performer" itemtype="http://schema.org/Person">
    <span itemprop="name">PERFORMER 1</span>,
    <span itemprop="name">PERFORMER 2</span>
  </span>
</div>

Is this valid, or do I have to declare one itemprop="performer" for each performer as follows:

<div itemtype="http://schema.org/Event" itemscope itemprop="events">
  <span itemprop="name description">EVENT NAME</span>
  <span itemscope itemprop="performer" itemtype="http://schema.org/Person">
    <span itemprop="name">PERFORMER 1</span>
  </span>
  <span itemscope itemprop="performer" itemtype="http://schema.org/Person">
    <span itemprop="name">PERFORMER 2</span>
  </span>
</div>

Thank you

Upvotes: 3

Views: 1133

Answers (1)

unor
unor

Reputation: 96697

Each http://schema.org/Person represents exactly one person.

Your first example would give several names to this single person.

If several name values would represent different persons, it wouldn’t be clear to whom additional properties belong:

<div itemscope itemtype="http://schema.org/Person">
  <span itemprop="name">Alice</span>
  <span itemprop="name">Bob</span>
  <span itemprop="jobTitle">Smith</span>
</div>

Who’d be the smith here, Alice or Bob?

So you should use your second example.

Upvotes: 2

Related Questions