视频搜索结果的 Schema.org 属性是什么? [英] What Schema.org properties for video search results?

查看:39
本文介绍了视频搜索结果的 Schema.org 属性是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个网站,您可以在其中搜索视频.每次搜索都会返回大约 50 个指向视频播放器的链接.缩略图、名称、持续时间、评级、演员、制作公司以及顶部的文字{{QUERY}} 的视频结果".

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.

我查看了 Schema.org 的层次结构,但我不知道要使用哪些属性以及如何定义这么多信息.

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.

推荐答案

您可以使用 SearchResultsPage为网页输入,为结果列表输入ItemList 类型,以及每个结果的 VideoObject 类型.

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

要将 ItemListSearchResultsPage 相关联,您可以使用 mainEntity 属性,并将 VideoObject 项与 ItemList 相关联,itemListElement 属性.

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.

在 RDFa 中,这可能如下所示:

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>

如果搜索结果已排序/排名,您可能需要使用 ListItem并给出它的 position:

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>

这篇关于视频搜索结果的 Schema.org 属性是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆