Schema.org 中的产品列表 [英] List of products in Schema.org
问题描述
我阅读了此 Google 文档.它说我们不使用列表中的产品.
I read this Google doc. It says we do not use the Product in list.
因此,对于产品列表(具有多页的类似产品的类别,例如鞋子"),建议使用哪种架构?
So for list of products (category of a similar products with multipage like 'shoes'), what kind of schema is recommended?
我用这个:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebPage","name": "page name",
"url": "http://www.example.com/shoes"
"mainEntity":{
"@type": "ItemList",
"itemListElement":[{
"@type": "BlogPosting"...
}]
}
.
.
.
但是产品的BlogPosting
似乎是错误的.
But BlogPosting
for products seems is wrong.
推荐答案
链接的文档适用于 Google 的 产品丰富结果.它说这个特定的富媒体搜索结果不支持包含不同产品的列表.但这不应阻止您标记此类列表.
The linked documentation is for Google’s Products rich result. It says that this specific rich result doesn’t support lists with different products. But this shouldn’t stop you from marking up such lists.
它反对 Google 指南 仅标记列表中选定的产品:
It is against Google’s guidelines to mark up only selected products in a list:
列出几种不同产品(或食谱、视频或任何其他类型)的类别页面.每个实体都应使用相关的 schema.org 类型进行标记,例如产品类别的 schema.org/Product页.从页面上列出的所有类别实体中仅标记一个类别实体违反了我们的准则.
A category page listing several different products (or recipes, videos, or any other type). Each entity should be marked up using the relevant schema.org type, such as schema.org/Product for product category pages. Marking up just one category entity from all listed on the page is against our guidelines.
您的 JSON-LD 示例是标记产品列表的合适方法(当然,将 BlogPosting
替换为 Product
).但是,您可能希望使用 CollectionPage
而不是 WebPage
.
Your JSON-LD example is a suitable way to mark up a list of products (replacing BlogPosting
with Product
, of course). But instead of WebPage
you might want to use CollectionPage
.
这篇关于Schema.org 中的产品列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!