【问题标题】:Structured data (schema.org) for Price lists / service lists价格清单/服务清单的结构化数据 (schema.org)
【发布时间】:2019-03-11 10:17:15
【问题描述】:

我正在为当地的美容院建立一个网站。他们提供按摩和各种美容护理等服务。全部可见于 1 个概览页面(价目表)

我发现https://schema.org/Product 可以用于服务:

任何提供的产品或服务。例如:一双鞋;演唱会门票;租车;理发

第一个问题,我可以忽略可用性和条件等字段吗?

其次,我应该将这个产品列为ItemOfferedOffer 内吗?或者这不是正确的方法?

例子:

{
"@context": "http://schema.org",
"@type": "WebPageElement",
"offers": {
    "@type": "Offer",
    "itemOffered": [
        {
            "@type": "Product",
            "@id": "/beauty-treatment-a",
            "description": "Short description with details",
            "name": "Beauty Treatment A",
            "offers": {
                "@type": "Offer",
                "price": "18.28",
                "priceCurrency": "EUR",
                "description": "Same description",
                "name": "Same name",
                "image": {
                    "@context": "http://schema.org",
                    "@type": "ImageObject",
                    "contentUrl": "image-a.jpg",
                    "description": "Same name",
                    "width": 640,
                    "height": 640
                }
            }
        },
        {
            "@type": "Product",
            "@id": "/beauty-treatment-b",
            "description": "Short description with details",
            "name": "Beauty Treatment B",
            "offers": {
                "@type": "Offer",
                "price": "18.28",
                "priceCurrency": "EUR",
                "description": "Same description",
                "name": "Same name",
                "image": {
                    "@context": "http://schema.org",
                    "@type": "ImageObject",
                    "contentUrl": "image-b.jpg",
                    "description": "Same name",
                    "width": 640,
                    "height": 640
                }
            }
        ]
    }
}

【问题讨论】:

  • 当您使用 Google Rich Snippets 标签时,这是否意味着您只想提供数据以在 Google 搜索中获取 Product 丰富结果?或者您是否询问一般如何使用 Schema.org,无论哪个消费者可能会使用您的数据?
  • 是的,确实如此。我想为 Google 搜索提供数据。

标签: schema.org google-rich-snippets


【解决方案1】:

第一个问题,我可以忽略可用性和条件等字段吗?

Schema.org 从不需要属性。像谷歌这样的消费者可能需要他们的一项功能的属性。

对于Google’s Product feature

  • availability 推荐用于 Google 搜索中的富媒体搜索结果,并用于 Google 图片中的“相关项目”,并且
  • itemCondition 既不推荐也不要求。

但是,它们的功能仅适用于有关单个产品的页面。因此,您的网页不符合 Google 产品富媒体搜索结果的条件。

其次,我是否应该将此产品列为商品内的商品提供?或者这不是正确的方法?

您可以将Product 作为顶级项目(使用offers Offer),或将Offer 作为顶级项目(使用itemOffered Product)。

关于你的例子:

  • 不用WebPageElement;页面上的某个 HTML 元素包含优惠通常不是相关信息,只有存在 优惠才相关。

  • 您有一个包含两个产品的报价,以及两个包含一个产品的报价(与第一个报价相同)。您可能不希望获得第一个报价(除非确实有一个结合了这两种产品的报价)。

我会推荐以下内容:

  • 使用OfferCatalog 获取优惠列表。
  • 每个列表项都是一个Offer
  • 每个Offer 都指向它的Product/ServiceitemOffered

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-03-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-08
    • 1970-01-01
    相关资源
    最近更新 更多