演员/女演员人物的架构

编程入门 行业动态 更新时间:2024-10-27 19:16:14
本文介绍了演员/女演员人物的架构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我怎么能代表电影、TVSeries 或任何其他 CreativeWork 项目 Person 行动或参与?

How could I represent the Movie, TVSeries or any other CreativeWork items a Person acted or participated in?

我的意思是:

{ "@context": "schema/", "@type": "schema/Person", "name": "John Doe", "performerIn" : [ { "@type": "schema/Movie", "name": "A Movie" }, { "@type": "schema/Movie", "name": "Another Movie" } ] }

遗憾的是,performerIn 仅适用于 Event 项.

Unfortunately, performerIn works only for Event items.

推荐答案

对于Movie/TVSeries/etc. 中的演员,您可以使用actor 属性.

For an actor in a Movie/TVSeries/etc., you can use the actor property.

由于 Schema 没有为 actor 定义反向属性,您可以使用 JSON-LD 的 @reverse:

As Schema defines no inverse property for actor, you can use JSON-LD’s @reverse:

{ "@context": "schema/", "@type": "Person", "name": "John Doe", "@reverse": {"actor": [ { "@type": "Movie", "name": "A Movie" }, { "@type": "Movie", "name": "Another Movie" } ]} }

对于参与",这取决于它的确切含义.有像 contributor、editor 等(Schema 不提供一个人在创造性工作中可能拥有的所有角色的属性,但如果它是一个常见的/important 角色,如果您要求,它可能会被添加.)

For "participated in", it depends on what this means exactly. There are properties like contributor, editor, etc. (Schema doesn’t offer properties for all roles a person could have in a creative work, but if it’s a common/important role, it might get added if you request it.)

更多推荐

演员/女演员人物的架构

本文发布于:2023-11-25 03:48:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1628199.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:女演员   架构   演员   人物

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!