价格列表 /服务列表的结构化数据(schema.org)



我正在为当地美容院建立一个网站。他们提供按摩和各种美容疗法等服务。在1个概述页面(价格列表)

上都可见

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

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

拳头问题,我可以忽略诸如可用性和条件之类的领域吗?

第二,我应该在Offer内列出该产品为ItemOffered吗?还是这不是正确的方式?

示例:

{
"@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
                }
            }
        ]
    }
}

拳头问题,我可以忽略诸如可用性和条件之类的领域吗?

schema.org永远不需要属性。像Google这样的消费者可能需要属性才能获得其功能之一。

对于Google的产品功能,

  • availability建议用于Google搜索中的丰富结果,而Google Images中的"相关项目"和
  • itemCondition既不建议也不需要。

但是,它们的功能仅适用于单个产品的页面。因此,您的页面不符合Google的产品丰富结果。

第二,我应该将此产品列为内部报价的项目吗?还是这不是正确的方式?

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

关于您的示例:

  • 无需使用WebPageElement;通常不是相关的信息,即页面上包含要约的某个html元素,只有是一个要约。

  • 您有一个由两种产品组成的报价,两种由一种由一种产品组成的报价(与第一个报价相同)。您可能不想有第一个要约(除非确实有两种产品结合了两种产品)。

我会推荐以下内容:

  • 使用OfferCatalog作为报价列表。
  • 每个列表项目都是Offer
  • 每个Offer指向其Product/Service,带有itemOffered

最新更新