一个页面上可以有多个相同 Schema.org 类型的项目吗? [英] Is it OK to have multiple items of the same Schema.org type on a page?

查看:41
本文介绍了一个页面上可以有多个相同 Schema.org 类型的项目吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站,其中有三个地方我会使用 Schema.org 的组织 (itemtype="http://schema.org/Organization"):

I have a site which has three places where I would use Schema.org’s Organization (itemtype="http://schema.org/Organization"):

  • 联系人所属单位的联系信息
  • 网站徽标
  • 另一个组织的简介

搜索引擎将如何区分这三者?前两个指向同一个组织,但在不同的上下文中.最后一个根本不代表我们的网站,而是另一个组织的详细资料.搜索引擎会知道哪些引用了我们,哪些没有?

How will search engines tell these three apart? The first two point to the same organization, but in different contexts. The last one does not represent our site at all but is a detailed profile for another organization. Will search engines know which ones refer to us and which one doesn't?

推荐答案

如果是您描述的相同实体(在相同文档上),则不要使用多个项目.在这种情况下,您应该只使用一项.如果您的标记难以在此项目下嵌套所有属性,请使用 itemref 属性(参见示例).

If it’s the same entity (on the same document) you describe, then don’t use multiple items. You should only use one item in this case. If your markup makes it hard to nest all properties under this item, use the itemref attribute (see example).

如果这些是不同的实体,请使用多个/不同的项目:每个实体一个项目.

If these are different entities, use multiple/different items: one item per entity.

因此,在您的具体示例中,您应该将一项用于您的组织,另一项用于其他组织的个人资料.

So in your specific example, you should use one item for your organization, and one item for the other organization’s profile.

为了明确项目是关于同一个实体,Microdata 提供了 itemid 属性.但是,微数据要求词汇表必须明确支持项目的全局标识符",即目前不是 Schema.org 的情况.如果支持 itemid,您甚至可以在同一页面上拥有关于同一实体的多个项目.在这成为可能之前,此外,您还可以使用其他属性来暗示项目大致相同,例如 url.

To make clear that items are about the same entity, Microdata provides the itemid attribute. However, Microdata requires that vocabularies have to explicitly support "global identifiers for items", which is currently not the case for Schema.org. If itemid is supported, you could even have several items about the same entity on the same page. Until that is possible, and also in addition, you could use other properties that could serve as hint that items are about the same thing, for example url.

这篇关于一个页面上可以有多个相同 Schema.org 类型的项目吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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