【问题标题】:What should be inside URL?URL里面应该是什么?
【发布时间】:2021-01-17 08:27:03
【问题描述】:

我有一个页面上的组织列表。 我为他们创建了一个JSON-LD 块。 您可以在邮件末尾找到它。 用验证器检查后,我得到了一个错误。 All values provided for itemListElement.item.url must point to the same page.

目前组织 URL 指向公司简介。 根据https://schema.org/Organization,应该是URL of the item. 是否所有组织 URL 都应指向带有列表的当前页面? 但那有什么意义呢?

另外,我想在最后的搜索中获得rating widget。 但谷歌忽略了这个列表。 我究竟做错了什么? 我应该每页只有一个评分吗?

任何建议将不胜感激。谢谢。

{
  "@context": "https://schema.org",
  "@type": "ItemList",
  "name": "service pros",
  "itemListOrder": "Unordered",
  "numberOfItems": 3711,
  "itemListElement": [
      {
          "@type": "ListItem",
          "position": 1,
          "item": {
              "@context": "https://schema.org",
              "@type": "Organization",
              "url": "https://example.com/profiel/barotech",
              "name": "Barotech",
              "areaServed": {
                  "@type": "Place",
                  "address": {
                      "@type": "PostalAddress",
                      "addressLocality": "Rotterdam"
                  }
              },
              "aggregateRating": {
                  "@type": "AggregateRating",
                  "ratingValue": 9.6,
                  "reviewCount": 226,
                  "bestRating": 10,
                  "worstRating": 0
              }
          }
      },
      {
        "@type": "ListItem",
        "position": 2,
        "item": {
            "@context": "https://schema.org",
            "@type": "Organization",
            "url": "https://example.com/profiel/felix-montage-service",
            "name": "Felix montage & service",
            "logo": "https://www.example.com/images/sp/thumbnail_small/546ccf07-de13-41bf-9f5c-27f3205ea8f8.jpeg",
            "areaServed": {
                "@type": "Place",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Den Haag"
                }
            },
            "aggregateRating": {
                "@type": "AggregateRating",
                "ratingValue": 7.9,
                "reviewCount": 28,
                "bestRating": 10,
                "worstRating": 0
            }
        }
    }
  ]
}

【问题讨论】:

标签: schema.org json-ld structured-data microformats


【解决方案1】:

要获得 Google 富媒体搜索结果意味着您必须遵守他们的准则。

您已将您置于轮播指南之下的事物列表中进行了标记,并指出了您的列表存在的错误:

为 itemListElement.item.url 提供的所有值必须指向同一页面。 https://developers.google.com/search/docs/data-types/carousel

如果您要标记列表中的完整实体,它们必须是在页面上完全定义的实体,而不是在不同的页面上(因此有 url 限制)。它们还必须是它们声明的有限类型之一,而组织不是。如果您的列表是其他 url 上的实体,那么您应该只列出 url。

但您想要查看丰富的 sn-ps。

https://developers.google.com/search/docs/data-types/review-snippet

Google 确实支持对组织的评论,但在“也”部分中提到了它,我相信它的支持更有限。他们的措辞表明他们支持评论,但不支持评级(星级)。

该页面上的指南还为基于组织的评论提供了额外的限制。

此外,拥有有效的结构化数据并不能保证获得丰富的结果。在授予具有特殊 sn-ps 的页面之前,Google 还会进行其他质量和有效性检查。

我怀疑在您的情况下,问题在于您的页面没有专注于对某件事的评论。该组织将您置于更具限制性的类别中。旨在获得针对每个组织的页面的评论。

【讨论】:

  • 很好的解释
猜你喜欢
  • 2012-06-17
  • 1970-01-01
  • 2012-10-02
  • 2021-04-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-03-14
  • 2017-07-26
相关资源
最近更新 更多