我可以使用 http://schema.org/Organization 的多个实例吗?

Can I use multiple instances of http://schema.org/Organization?

我有一个列出多家公司的网站,我的标记是这样的:

<h2>Checkout those cool companies</h2>
<div itemscope="itemscope" itemtype="https://schema.org/Organization">
  <img itemprop="logo" src="logo1.jpg" alt="">
  <h3 itemprop="name">Company1</h3>
  <p itemprop="description">It's a great company</p>
  <span itemprop="url">http://company1.com</span>
</div>

<div itemscope="itemscope" itemtype="https://schema.org/Organization">
  <img itemprop="logo" src="logo2.jpg" alt="">
  <h3 itemprop="name">Company2</h3>
  <p itemprop="description">It's a great company as well</p>
  <span itemprop="url">http://company2.com</span>
</div>

<div itemscope="itemscope" itemtype="https://schema.org/Organization">
  <img itemprop="logo" src="logo3.jpg" alt="">
  <h3 itemprop="name">Company3</h3>
  <p itemprop="description">It's a amazing company</p>
  <span itemprop="url">http://company3.com</span>
</div>

为了帮助抓取工具更好地识别内容,我使用了 itemtype="https://schema.org/Organization 多次。

  1. 这样使用 https://schema.org/Organization 合适吗?
  2. 如何使我自己的 https://schema.org/Organization 与我列出的公司标记不冲突?

是的,为此目的使用多个 Organization 项是正确的。

要明确表示您自己的 Organization 不在此列表中,您可以

  • 将其作为 author/publisher(属于 WebPage)的值提供,并且
  • 为其他组织的列表提供 ItemList

如果此组织列表是该页面的主要内容,您可以使用 mainEntity(对于 ItemList)并使用 CollectionPage 而不是 WebPage :

<body itemscope itemtype="http://schema.org/CollectionPage">

  <div itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
  </div>

  <section itemprop="mainEntity" itemscope itemtype="http://schema.org/ItemList">
    <h2>Checkout those <span itemprop="name">cool companies</span></h2>
    <article itemprop="itemListElement" itemscope itemtype="http://schema.org/Organization"></article>
    <article itemprop="itemListElement" itemscope itemtype="http://schema.org/Organization"></article>
    <article itemprop="itemListElement" itemscope itemtype="http://schema.org/Organization"></article>
  </section>

</body>