multiple authors or contributors in schema.org

无人久伴 提交于 2020-01-24 11:16:16

问题


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.

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?


回答1:


You can add a property multiple times.

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>

Or a Person could have two names.



来源:https://stackoverflow.com/questions/30693716/multiple-authors-or-contributors-in-schema-org

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