seo,semantic-web,schema.org,microdata,google-rich-snippets , Child properties of Schema.org property


Child properties of Schema.org property

Question:

Tag: seo,semantic-web,schema.org,microdata,google-rich-snippets

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


Answer:

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:


Related:


Canonical url for google to prevent duplicate meta?


seo,meta-tags,google-webmaster-tools
Today i went to Google Webmaster Tools to check for duplicate meta description. On almost all my news pages, this is true cause my rss feeds links to the news piece with a parameter (?rs=rss) so i can track my traffic from rss feeds. I thought the following snippet would...

Schema.org mandatory fields and the time needed until Google shows changes


seo,schema.org,google-rich-snippets
I have implemented Schema.org (using Microdata) inside my product pages and when I check Google Webmaster Tools it is crawled by Googlebot and interpreted successfully. The point is I have not implemented some properties inside Product type like brand. I need to know whether there is some subset of all...

How Google “distinguishes” website articles from news? [closed]


html,seo,google-search
When I search keywords from Google, it shows all articles related to these words and It has separate tab called "News", where Google shows related news. How Goolge "Knows" that article from site is about News? I have opened source codes of multiple news websites and they has "itemprops" in...

Best JSON-LD practices: using multiple