可以在一页上使用两次相同的schema.org标记吗? [英] Is it okay to use same schema.org markup twice on one page?

查看:166
本文介绍了可以在一页上使用两次相同的schema.org标记吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在产品页面上,我在不同位置具有两种产品的汇总评分,这意味着它们包含相同的信息.由于用户体验的原因,我希望在该页面上将它们放置两次,但是我不确定是否可以每次都使用schema.org对其进行标记,或者这是否是无用的重复.

On a product page I have two aggregated ratings for one product at different places, which means they contain identical information. I want to have them twice on that page due to ux reasons, but I'm not sure if I can markup them with schema.org everytime or if this would be a useless duplication.

想知道是否有itemref解决方案,但我认为这对完成这项任务没有帮助.

Wondered if there is a solution with itemref but in my opinion it's not helpful for this task.

推荐答案

除非您使用itemid,否则消费者无法确定两个(或多个)项目是同一事物.这样他们就会知道您的Product项有两个 AggregateRating项.消费者可能试图推断两个项目应该相同(例如,通过比较url值),但是您最好不要依赖于此.

Unless you use itemid, consumers can’t be sure that two (or more) items are (about) the same thing. So they would learn that your Product item has two AggregateRating items. Consumers might try to deduce that both items should be the same (e.g., by comparing url values), but you would better not rely on this.

因此,您应该使用 itemid属性(Schema.org尚未声明支持该属性,而Microdata要求,但的使用指南问题,它打算在某个时候对其进行记录),并为您的两个AggregateRating项目提供相同的URI.

So you should use the itemid attribute (Schema.org does not yet claim to support it, which Microdata requires, but according to this issue, it’s intended to document it sometime), giving both of your AggregateRating items the same URI.

但是消费者不一定支持itemid,因此他们在猜测这些物品是同一件事上仍可能会遇到问题.

But consumers don’t necessarily support itemid, so they might still have problems guessing that these items are about the same thing.

因此,理想情况下:使用Schema.org标记一次(每个文档).

So ideally: markup only one occurence (per document) with Schema.org.

这篇关于可以在一页上使用两次相同的schema.org标记吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆