我怎么能代表电影、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.)
更多推荐
演员/女演员人物的架构
发布评论