schema.org - schema.org: aggregateRating 不同的符号
问题描述
我在互联网上发现了不同的聚合评分符号。
有人可以解释以下两者之间的区别吗?
符号 1
<span itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">
符号 2
<span property="aggregateRating" typeof="AggregateRating">
解决方案
Notation 1 使用 Microdata 格式,而 Notation 2 使用 RDFa Lite。您应该为要标记的任何实体选择一种格式。JSON-LD 是另一种格式选项。
您标记的内容(如 aggregateRating)是您使用的词汇表的一部分。在这种情况下来自 schema.org。