schema.org 中有多个作者或贡献者 [英] multiple authors or contributors in schema.org

查看:48
本文介绍了schema.org 中有多个作者或贡献者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果查看 schema.org 中的 Movie 类型,actoractors 属性是允许的(演员取代演员).但是 authorcontributor 属性没有等效项.在我看来,例如,一篇新闻文章通常可以有多个作者和/或贡献者.

If one looks at the Movie type in schema.org, both actor and actors properties are allowed (actor supersedes actors). But there is no equivalent for author and contributor properties. In my view, a News Article for example, can often can have multiple authors and/or contributors.

Order 中的 orderedItem 属性允许单个 OrderItem/Product,或订单项/产品的集合.我们可以对 authorcontributor 属性做同样的事情,即.在一个集合中保存多个实体?

The orderedItem property in Order allows for a single OrderItem/Product, or a collection of OrderItems/Products. Can we do the same with the author and contributor properties, ie. save multiple entities in a collection?

推荐答案

您可以多次添加属性.

例如,一个 Movie 可以有两个 actor:

For example, a Movie could have two actors:

<article typeof="schema:Movie">
  <ul>
    <li property="schema:actor" typeof="schema:Person">…</li>
    <li property="schema:actor" typeof="schema:Person">…</li>
  </ul>      
</article>

或者一个 Person 可以有两个 names.

Or a Person could have two names.

这篇关于schema.org 中有多个作者或贡献者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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