What Schema.org properties for video search results?

不羁岁月 提交于 2019-12-12 01:52:12

问题


I'm making a website where you can search videos on. Every search returns about 50 links to a video player incl. thumbnail, name, duration, rating, actors, company that made it and a text saying "Video Results For {{QUERY}}" on the top.

I've looked at the hierarchy of Schema.org but I've no idea what properties to use as well as how to define so much information.


回答1:


You could use the SearchResultsPage type for the webpage, the ItemList type for the result list, and the VideoObject type for each result.

To relate the ItemList to the SearchResultsPage, you could use the mainEntity property, and to relate the VideoObject items to the ItemList, the itemListElement property.

In RDFa, this could look like:

<body typeof="schema:SearchResultsPage">
  <section property="schema:mainEntity" typeof="schema:ItemList">
    <article property="schema:itemListElement" typeof="schema:VideoObject"></article>
    <article property="schema:itemListElement" typeof="schema:VideoObject"></article>
    <article property="schema:itemListElement" typeof="schema:VideoObject"></article>
  </section>
</body>

If the search results are ordered/ranked, you might want to use ListItem and give its position:

<body typeof="schema:SearchResultsPage">
  <section property="schema:mainEntity" typeof="schema:ItemList">
    <article property="schema:itemListElement" typeof="schema:ListItem">
      <meta property="schema:position" content="1">
      <div property="schema:item" typeof="schema:VideoObject"></div>
    </article>
    <article property="schema:itemListElement" typeof="schema:ListItem">
      <meta property="schema:position" content="2">
      <div property="schema:item" typeof="schema:VideoObject"></div>
    </article>
    <article property="schema:itemListElement" typeof="schema:ListItem">
      <meta property="schema:position" content="3">
      <div property="schema:item" typeof="schema:VideoObject"></div>
    </article>
  </section>
</body>



回答2:


According to Google's recommendation which you can see in the follow link: https://developers.google.com/webmasters/videosearch/schema

The best practice for videos is using the VideoObject itemtype. As you can see - there are indeed properties like actor, creator (Inherits from CreativeWork), Rating (aggregateRating), thumbnail and many many more.

I love the using of microdata tags it improves your site's SEO dramatically.

UPDATE: After author clarification - for search result - also for videos (see an example in vimeo search result) - you should use the ItemList Item type. Good luck!



来源:https://stackoverflow.com/questions/30523942/what-schema-org-properties-for-video-search-results

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!