使用Schema.org中的微数据进行MusicEvent的正确格式



我有点困惑,不知道如何使用schema.org中的模式正确格式化MusicEvent。事实上,我不是一个以英语为母语的人,这并不能让理解文档变得更容易。。。

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

但schema.org上也有一个MusicEvent,请参阅此处http://schema.org/MusicEvent

这是否意味着,我应该使用itemscope itemtype="http://schema.org/Event/MusicEvent"或什么?

提前感谢!

是的,您应该使用MusicEvent。在schema.org上MusicEvent页面的顶部,你会看到一些面包屑,看起来像这样:

Thing>Event>MusicEvent

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

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

当一个更具体的类型可用于命名类型时,只需声明该项类型,而不是类型,而非该项类型和更通用的("父")项类型。

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

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

最新更新