重复微数据标记是错误的吗?

Is it a mistake to repeat Microdata markup?

如果我在 header 下方有一个方框,其中包含我的社交资料的微数据,并且在页脚中有另一个相同的方框,我可以在这个方框中重复标记:

<span itemscope itemtype="http://schema.org/Organization">   
 <link itemprop="url" href="http://www.your-company-site.com">
 <a itemprop="sameAs" href="http://www.facebook.com/your-company">FB</a>  
 <a itemprop="sameAs" href="http://www.twitter.com/YourCompany">Twitter</a>
</span>

还是说错了?还是只能添加一次?

不是禁止的,但是这样做没有意义,而且会导致问题。

对您的微数据感兴趣的消费者会解析您的 HTML 文档并提取微数据项。如果他们提取两个 Organization 项,第一个假设是这两个项代表 不同的 个组织(除非它们具有相同的 itemid 值)。

在你的情况下,这两个项目具有相同的属性+值,如果两个项目具有相同的 url 值,则它们很可能是同一件事,但这是消费者必须进行评估,这可能会导致错误。在没有使用通常具有 "unique" 值(如 urltelephone)的 属性 的情况下,要确定它们是否是是否相同(例如,两个不同的组织可能具有相同的 name)。

所以最好只标记 one occurrence per page. If you mark up the occurrence in the header, but the footer contains additional content which you want to add, you could use the itemref attribute