演员/女演员人物的架构 [英] Schema for an actor/actress Person
问题描述
我怎么能代表电影
、TVSeries
或任何其他 CreativeWork
项目 Person
行动或参与?
How could I represent the Movie
, TVSeries
or any other CreativeWork
items a Person
acted or participated in?
我的意思是:
{
"@context": "http://schema.org/",
"@type": "http://schema.org/Person",
"name": "John Doe",
"performerIn" : [
{
"@type": "http://schema.org/Movie",
"name": "A Movie"
},
{
"@type": "http://schema.org/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.org 没有为 actor
定义反向属性,您可以使用 JSON-LD 的 @reverse
:
As Schema.org defines no inverse property for actor
, you can use JSON-LD’s @reverse
:
{
"@context": "http://schema.org/",
"@type": "Person",
"name": "John Doe",
"@reverse": {"actor": [
{
"@type": "Movie",
"name": "A Movie"
},
{
"@type": "Movie",
"name": "Another Movie"
}
]}
}
对于参与",这取决于它的确切含义.有像 contributor
、editor
等(Schema.org 不提供一个人在创造性工作中可能拥有的所有角色的属性,但如果它是一个常见的/important 角色,如果您要求,它可能会被添加.)
For "participated in", it depends on what this means exactly. There are properties like contributor
, editor
, etc. (Schema.org 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.)
这篇关于演员/女演员人物的架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!