Events 使用Schema.org中的微数据为MusicEvent设置正确的格式

Events 使用Schema.org中的微数据为MusicEvent设置正确的格式,events,schema.org,Events,Schema.org,对于如何使用schema.org中的模式正确格式化MusicEvent,我有点困惑。事实上,我不是以英语为母语的人,这并不意味着理解文档也不容易 文档说我应该使用itemscope itemtype=”http://schema.org/Event“用于事件 但是schema.org上也有一个MusicEvent,请看这里 那么这是否意味着我应该使用itemscope itemtype=”http://schema.org/Event/MusicEvent“还是什么 提前谢谢 是的,你应该使用M

对于如何使用schema.org中的模式正确格式化MusicEvent,我有点困惑。事实上,我不是以英语为母语的人,这并不意味着理解文档也不容易

文档说我应该使用
itemscope itemtype=”http://schema.org/Event“
用于事件

但是schema.org上也有一个MusicEvent,请看这里

那么这是否意味着我应该使用
itemscope itemtype=”http://schema.org/Event/MusicEvent“
还是什么


提前谢谢

是的,你应该使用MusicEvent。在schema.org的MusicEvent页面顶部,您将看到一些面包屑,如下所示:

事物>事件>音乐事件


这意味着MusicEvent类型包括事件类型,事件类型包括Thing类型。该页面还列出了可以用于MusicEvent的Thing和Event的所有属性。目前没有只适用于MusicEvent的属性,因此它只是告诉搜索引擎它是什么类型的事件。

是的,您应该使用MusicEvent。在schema.org的MusicEvent页面顶部,您将看到一些面包屑,如下所示:

事物>事件>音乐事件


这意味着MusicEvent类型包括事件类型,事件类型包括Thing类型。该页面还列出了可以用于MusicEvent的Thing和Event的所有属性。目前没有只适用于MusicEvent的属性,因此它只是告诉搜索引擎它是什么类型的事件。

您应该使用MusicEvent,但语法有误

当一个更具体的类型可用于命名类型时,只需声明该itemtype,而不是该类型,而不是该itemtype和更一般的(“父”)itemtype

这是不正确的: itemscope itemtype=”http://schema.org/Event/MusicEvent"

这是正确的:
itemscope itemtype=”http://schema.org/MusicEvent“

您应该使用MusicEvent,但语法有误

当一个更具体的类型可用于命名类型时,只需声明该itemtype,而不是该类型,而不是该itemtype和更一般的(“父”)itemtype

这是不正确的: itemscope itemtype=”http://schema.org/Event/MusicEvent"

这是正确的: itemscope itemtype=”http://schema.org/MusicEvent"