在产品中使用图片库和主要文本
Use image gallery and main text in Product
这是 JSON-LD 的示例 Schema.org Product
:
<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "Product",
"name": "Executive Anvil",
"image": "http://www.example.com/anvil_executive.jpg",
"brand": {
"@type": "Thing",
"name": "ACME"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.4",
"ratingCount": "89"
},
"offers": {
"@type": "AggregateOffer",
"lowPrice": "119.99",
"highPrice": "199.99",
"priceCurrency": "USD"
}
}
</script>
但我的产品还有很多属性。
例如相关图库、相关视频、长正文。
产品中没有这些属性。
我必须离开他们吗?或者有什么方法可以使用它们吗?
对于有关产品的内容(如视频、图库、文章等),您可以使用 Product
项作为 about
property 的值:
{
"@context": "http://schema.org/",
"@type": "VideoObject",
"name": "Video about your product",
"about": {
"@type": "Product",
"name": "Your product"
}
}
对于 JSON-LD 的 @reverse
,您可以在 Product
项中指定这些,如果您愿意的话:
{
"@context": "http://schema.org/",
"@type": "Product",
"name": "Your product",
"@reverse": {
"about": {
"@type": "VideoObject",
"name": "Video about your product"
}
}
}
这是 JSON-LD 的示例 Schema.org Product
:
<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "Product",
"name": "Executive Anvil",
"image": "http://www.example.com/anvil_executive.jpg",
"brand": {
"@type": "Thing",
"name": "ACME"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.4",
"ratingCount": "89"
},
"offers": {
"@type": "AggregateOffer",
"lowPrice": "119.99",
"highPrice": "199.99",
"priceCurrency": "USD"
}
}
</script>
但我的产品还有很多属性。
例如相关图库、相关视频、长正文。 产品中没有这些属性。
我必须离开他们吗?或者有什么方法可以使用它们吗?
对于有关产品的内容(如视频、图库、文章等),您可以使用 Product
项作为 about
property 的值:
{
"@context": "http://schema.org/",
"@type": "VideoObject",
"name": "Video about your product",
"about": {
"@type": "Product",
"name": "Your product"
}
}
对于 JSON-LD 的 @reverse
,您可以在 Product
项中指定这些,如果您愿意的话:
{
"@context": "http://schema.org/",
"@type": "Product",
"name": "Your product",
"@reverse": {
"about": {
"@type": "VideoObject",
"name": "Video about your product"
}
}
}