产品和产品类型的架构标记 json-ld

问题描述 投票:0回答:1

下面的代码包含两个还是一个结构化数据?我可以使用架构类型“产品组”和“hasVariant”编写代码吗,因为“SS钢丝绳”、“PVC涂层钢丝绳”和其他都是钢丝绳类型。我的代码是对还是错?可以应用在网页上吗

<script type="application/ld+json">
{
    "@context": "https://schema.org",
    "@type": "Product",
    "name": "Wire Rope"
},
{
    "@context": "https://schema.org",
    "@type": "ItemList",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "item": {
                "@type": "Product",
                "name": "Stainless Steel SS wire rope",
                "image": "https://sviboindustries.in/wp-content/uploads/2023/06/ss-wire-rope.jpg",
                "description": "The SS wire rope is a strong and flexible cable made of stainless steel wires twisted together, commonly used for various applications such as lifting, rigging, and suspension due to its durability and resistance to corrosion.",
                "aggregateRating": {
                    "@type": "AggregateRating",
                    "ratingValue": "4.9",
                    "reviewCount": "16"
                },
                "review": [
                    {
                        "@type": "Review",
                        "author": "Parth Parmar",
                        "datePublished": "2021-05-08",
                        "reviewBody": "The Stainless Steel SS wire ropes are strong and durable. Will recommend to others",
                        "name": "Will Recommend",
                        "reviewRating": {
                            "@type": "Rating",
                            "bestRating": "5",
                            "ratingValue": "4",
                            "worstRating": "1"
                        }
                    },
                    {
                        "@type": "Review",
                        "author": "Prashant Naik",
                        "datePublished": "2022-09-01",
                        "reviewBody": "Great Product from Svibo Industries, almost perfect! 4.5 stars.",
                        "name": "Good Service",
                        "reviewRating": {
                            "@type": "Rating",
                            "bestRating": "5",
                            "ratingValue": "4.5",
                            "worstRating": "1"
                        }
                    }
                ]
            }
        },
        {
            "@type": "ListItem",
            "position": 2,
            "item": {
                "@type": "Product",
                "name": "PVC Coated wire rope",
                "image": "https://sviboindustries.in/wp-content/uploads/2023/05/pr-203.png",
                "description": "PVC coated wire rope is a type of cable consisting of stainless steel wires encased in a protective PVC (polyvinyl chloride) coating. This coating provides additional resistance to corrosion, abrasion, and weathering, making it suitable for outdoor and marine applications.",
                "aggregateRating": {
                    "@type": "AggregateRating",
                    "ratingValue": "4.7",
                    "reviewCount": "21"
                },
                "review": [
                    {
                        "@type": "Review",
                        "author": "Durgesh Kulkarni",
                        "datePublished": "2023-09-18",
                        "reviewBody": "The plastic used is of top quality.",
                        "name": "High quality plastic",
                        "reviewRating": {
                            "@type": "Rating",
                            "bestRating": "5",
                            "ratingValue": "4.9",
                            "worstRating": "1"
                        }
                    },
                    {
                        "@type": "Review",
                        "author": "Saurabh Sinha",
                        "datePublished": "2022-05-17",
                        "reviewBody": "You can forget corrosion",
                        "name": "Prevents corrosion well",
                        "reviewRating": {
                            "@type": "Rating",
                            "bestRating": "5",
                            "ratingValue": "4.6",
                            "worstRating": "1"
                        }
                    }
                ]
            }
        },
        {
            "@type": "ListItem",
            "position": 3,
            "item": {
                "@type": "Product",
                "name": "Galvanized wire rope",
                "image": "https://sviboindustries.in/wp-content/uploads/2023/05/galvanized-wire-rope-500x500-1.png",
                "description": "Galvanized wire rope is a cable made of steel wires that are coated with a layer of zinc through the process of galvanization.",
                "aggregateRating": {
                    "@type": "AggregateRating",
                    "ratingValue": "4.7",
                    "reviewCount": "8"
                },
                "review": [
                    {
                        "@type": "Review",
                        "author": "Roshan Karkera",
                        "datePublished": "2018-06-12",
                        "reviewBody": "Gets the job done.",
                        "name": "Gets the job done",
                        "reviewRating": {
                            "@type": "Rating",
                            "bestRating": "5",
                            "ratingValue": "4.6",
                            "worstRating": "1"
                        }
                    },
                    {
                        "@type": "Review",
                        "author": "Gaurav Tiwari",
                        "datePublished": "2021-02-18",
                        "reviewBody": "Nice product",
                        "name": "Nice",
                        "reviewRating": {
                            "@type": "Rating",
                            "bestRating": "5",
                            "ratingValue": "4.8",
                            "worstRating": "1"
                        }
                    }
                ]
            }
        },
        {
            "@type": "ListItem",
            "position": 4,
            "item": {
                "@type": "Product",
                "name": "Ungalvanized wire rope ",
                "image": "https://sviboindustries.in/wp-content/uploads/2023/05/black-steel-wire-rope-500x500-1.jpg",
                "description": "Ungalvanized wire rope is a cable made of steel wires without a protective zinc coating.",
                "aggregateRating": {
                    "@type": "AggregateRating",
                    "ratingValue": "4.9",
                    "reviewCount": "15"
                },
                "review": [
                    {
                        "@type": "Review",
                        "author": "Asif Khan",
                        "datePublished": "2018-04-16",
                        "reviewBody": "Used it for my construction company",
                        "name": "Great for indoor use",
                        "reviewRating": {
                            "@type": "Rating",
                            "bestRating": "5",
                            "ratingValue": "4.9",
                            "worstRating": "1"
                        }
                    },
                    {
                        "@type": "Review",
                        "author": "Saurabh Sinha",
                        "datePublished": "2022-01-27",
                        "reviewBody": "Great!",
                        "name": "Great product",
                        "reviewRating": {
                            "@type": "Rating",
                            "bestRating": "5",
                            "ratingValue": "4.8",
                            "worstRating": "1"
                        }
                    }
                ]
            }
        }
    ]
}
</script>

我正在尝试为产品“钢丝绳”编写 JSON-LD 格式的模式标记。不锈钢钢丝绳、镀锌钢丝绳和未镀锌钢丝绳是钢丝绳的类型

html json schema jsonschema json-ld
1个回答
0
投票

我不知道有任何结构化数据消费者正式支持产品变体的想法。

Google 和 Schema.org 一直在讨论如何最好地支持它,但目前还没有任何实质性进展。

Schema.org github 存储库中有一个关于它的长对话:

https://github.com/schemaorg/schemaorg/issues/1797

如果我们将您当前的代码放入 Google Rich Result Tester 中,您会发现 Google 忽略了除您的第一个产品之外的所有产品。

此时,我建议您每页只添加一个产品,因为这是 Google 等消费者目前支持的。

© www.soinside.com 2019 - 2024. All rights reserved.