0

I've been trying to figure out this riddle from a day now. Lets say that we have a TV Episode as following,

<main itemscope itemtype="https://schema.org/TVEpisode">
    <h1>
      <a itemprop="url" href="self.html">
          Pokemon - <span itemprop="episodeNumber">88</span>
      </a>
    </h1>
    <h2 itemprop="name">In the Pink</h2>
    <p>Source: <span itemprop="partOfSeries">Pokemon</span>
               <span itemprop="partOfSeason">Orange Islands</span>
    </p>
</main>

Now the problem here is that I'm unable to add the 'sameAs' property of 'partOfSeries' here. If I add an anchor with 'sameAs' property inside 'partOfSeries', Google Structured-data Testing Tool says it cant find the sameAs property. And I don't know anyway else to do it. The same is correct for 'seasonNumber' which is a child of 'partOfSeason'. If you could help out with the 'potentialAction' property too, that would be awesome. Thank you

Raees Iqbal
  • 2,160
  • 1
  • 18
  • 15

1 Answers1

1

The partOfSeason property expects a value of the Season type.
The partOfSeries property expects a value of the Series type.
You are giving a text value in both cases.

This is not wrong (just not recommended), but with a text value it’s not possible to give additional data about the season/series.

In the Microdata syntax, you’d have to create a new item with the itemscope attribute and give its type with the itemtype attribute:

<span itemprop="partOfSeries" itemscope itemtype="http://schema.org/Series">
  <span itemprop="name">Pokemon</span>
</span>

<span itemprop="partOfSeason" itemscope itemtype="http://schema.org/Season">
  <span itemprop="name">Orange Islands</span>
</span>

(Because simple text inside of an item is not considered to be a Microdata value, you have to use a property for everything you want to associate with the item, i.e, Schema.org’s name in this case.)

Now you can add additional properties that only apply to their parents (Series/Season), not to the TVEpisode:

<span itemprop="partOfSeries" itemscope itemtype="http://schema.org/Series">
  <span itemprop="name">Pokemon</span>
  <link itemprop="sameAs" href="http://en.wikipedia.org/wiki/Pok%C3%A9mon_%28anime%29"/>
</span>

<span itemprop="partOfSeason" itemscope itemtype="http://schema.org/Season">
  <span itemprop="name">Orange Islands</span>
  <link itemprop="sameAs" href="http://en.wikipedia.org/wiki/List_of_Pok%C3%A9mon:_Adventures_on_the_Orange_Islands_episodes"/>
</span>

Side notes about your example:

Community
  • 1
  • 1
unor
  • 92,415
  • 26
  • 211
  • 360