Schema.org的“类别”页面

Pyt*_*ist 8 categories schema.org json-ld

背景:我正在一家电子商务商店中,我们有一个类别页面,显示产品的缩略图,价格,名称和简短描述。无法从此页面购买,需要首先进入产品详细信息页面。

我对类别页面上schema.org的用法感到非常困惑。

提出了几种解决方案,但不能说出最好的(最好是最后一个)

  1. ItemListListItemshttps://developers.google.com/search/docs/guides/mark-up-listings上所建议的那样带有内部 (不支持产品,但是它显示了在网站上放置多个项目的想法)

    {
    "@context": "http://schema.org",
    "@type": "ItemList",
    "name": "T-Shirt",
    "url": "/category/t-shirt/",
    "description": "Deserunt quibusdam ipsa illo ex nam ea illo qui. Itaque maiores doloribus accusamus ratione. Aperiam ipsa veritatis quas nisi.",
    "itemListOrder": "Unordered",
    "numberOfItems": 2,
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "url": "/products/lopez-smith-25/?color=yellow&size=XXL",
            "name": "Yellow Lopez-Smith",
            "image": {
                "@context": "http://schema.org",
                "@type": "ImageObject",
                "contentUrl": "/media/__sized__/products/yellow_n2QjKzn-thumbnail-640x640-70.jpg",
                "description": "Lopez-Smith",
                "width": 640,
                "height": 640
            }
        },
        {
            "@type": "ListItem",
            "position": 2,
            "url": "/products/lopez-smith-25/?color=blue&size=37",
            "name": "Blue Lopez-Smith",
            "image": {
                "@context": "http://schema.org",
                "@type": "ImageObject",
                "contentUrl": "/media/__sized__/products/blue_FZ3yJjG-thumbnail-640x640-70.jpg",
                "description": "Lopez-Smith",
                "width": 640,
                "height": 640
            }
        }
    ]
    }
    
    Run Code Online (Sandbox Code Playgroud)
    1. 推荐上几款产品作为https://developers.google.com/search/docs/guides/sd-policies 结合在一起使用@graph

一个类别页面,列出了几种不同的产品(或食谱,视频或任何其他类型)。每个实体都应使用相关的schema.org类型进行标记,例如产品类别页面的schema.org/Product。但是,如果标记了一项,则应标记所有项。另外,除非这是轮播页面,否则标记的项目不应链接到单独的详细信息页面。

{
    "@context": "http://schema.org",
    "@graph": [
        {
            "@type": "Product",
            "@id": "/category/t-shirt/p-1",
            "description": "Nobis vel fugiat e",
            "name": "Yellow Lopez-Smith",
            "offers": {
                "@type": "Offer",
                "availability": "http://schema.org/InStock",
                "price": "18.28",
                "priceCurrency": "GBP",
                "itemCondition": "http://schema.org/NewCondition",
                "description": "Nobis vel fugiat e",
                "name": "Yellow Lopez-Smith",
                "gtin13": "68614",
                "category": "T-Shirt",
                "image": {
                    "@context": "http://schema.org",
                    "@type": "ImageObject",
                    "contentUrl": "/media/__sized__/products/yellow_n2QjKzn-thumbnail-640x640-70.jpg",
                    "description": "Lopez-Smith",
                    "width": 640,
                    "height": 640
                }
            }
        },
        {
            "@type": "Product",
            "@id": "/category/t-shirt/p-2",
            "description": "Nobis vel fugiat e",
            "name": "Blue Lopez-Smith",
            "offers": {
                "@type": "Offer",
                "availability": "http://schema.org/InStock",
                "price": "22.64",
                "priceCurrency": "GBP",
                "itemCondition": "http://schema.org/NewCondition",
                "description": "Nobis vel fugiat e",
                "name": "Blue Lopez-Smith",
                "gtin13": "73963",
                "category": "T-Shirt",
                "image": {
                    "@context": "http://schema.org",
                    "@type": "ImageObject",
                    "contentUrl": "/media/__sized__/products/blue_FZ3yJjG-thumbnail-640x640-70.jpg",
                    "description": "Lopez-Smith",
                    "width": 640,
                    "height": 640
                }
            }
        }
    ]
}
Run Code Online (Sandbox Code Playgroud)
  1. Products列为不同ItemOffered的内容Offer(基于Ebay)

    {
    "@context": "http://schema.org",
    "@type": "WebPageElement",
    "offers": {
        "@type": "Offer",
        "itemOffered": [
            {
                "@type": "Product",
                "@id": "/category/t-shirt/p-1",
                "description": "Nobis vel fugiat e",
                "name": "Yellow Lopez-Smith",
                "offers": {
                    "@type": "Offer",
                    "availability": "http://schema.org/InStock",
                    "price": "18.28",
                    "priceCurrency": "GBP",
                    "itemCondition": "http://schema.org/NewCondition",
                    "description": "Nobis vel fugiat e",
                    "name": "Yellow Lopez-Smith",
                    "gtin13": "68614",
                    "category": "T-Shirt",
                    "image": {
                        "@context": "http://schema.org",
                        "@type": "ImageObject",
                        "contentUrl": "/media/__sized__/products/yellow_n2QjKzn-thumbnail-640x640-70.jpg",
                        "description": "Lopez-Smith",
                        "width": 640,
                        "height": 640
                    }
                }
            },
            {
                "@type": "Product",
                "@id": "/category/t-shirt/p-2",
                "description": "Nobis vel fugiat e",
                "name": "Blue Lopez-Smith",
                "offers": {
                    "@type": "Offer",
                    "availability": "http://schema.org/InStock",
                    "price": "22.64",
                    "priceCurrency": "GBP",
                    "itemCondition": "http://schema.org/NewCondition",
                    "description": "Nobis vel fugiat e",
                    "name": "Blue Lopez-Smith",
                    "gtin13": "73963",
                    "category": "T-Shirt",
                    "image": {
                        "@context": "http://schema.org",
                        "@type": "ImageObject",
                        "contentUrl": "/media/__sized__/products/blue_FZ3yJjG-thumbnail-640x640-70.jpg",
                        "description": "Lopez-Smith",
                        "width": 640,
                        "height": 640
                    }
                }
                }
            ]
        }
    }
    
    Run Code Online (Sandbox Code Playgroud)

任何帮助,将不胜感激