这是Schema.org Product
的JSON-LD示例:
<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中没有这些属性。
我必须离开吗?或者有没有办法使用它们?
答案 0 :(得分:0)
有关产品的内容(如视频,图库,文章等),您可以使用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"
}
}
}