我正在尝试使用JSON-LD创建一个包含多个评论的产品片段。当我只包含一个评论时,下面的代码可以正常工作(请复制并粘贴代码段到以下URL的控制台进行测试:https://search.google.com/structured-data/testing-tool)。然而,我不清楚如何添加多个评论。经过一段时间的努力,我仍无法让它正常工作,并且很难找到一个示例。
假设我有一个来自"John"的评论,他给产品评分为"3.0",另一个来自"Sarah"的评论,她给产品评分为"5.0"。如何在下面的代码中加入Sarah的评论?
假设我有一个来自"John"的评论,他给产品评分为"3.0",另一个来自"Sarah"的评论,她给产品评分为"5.0"。如何在下面的代码中加入Sarah的评论?
{
"@context": "http://schema.org/",
"@type": "Product",
"name": "Samsung Galaxy S",
"description": "A great product",
"brand": {
"@type": "Thing",
"name": "Samsung"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.0",
"reviewCount": "103"
},
"offers": {
"@type": "Offer",
"priceCurrency": "EUR",
"price": "18",
"itemCondition": "http://schema.org/NewCondition",
"availability": "http://schema.org/InStock",
"seller": {
"@type": "Organization",
"name": "Samsung"
}
}
,"review": {
"@type": "Review",
"author": "John",
"datePublished": " 7 December 2016",
"description": "I love this product so much",
"name": "Amazing",
"reviewRating": {
"@type": "Rating",
"bestRating": "5",
"ratingValue": "3.0",
"worstRating": "1"
}
}
}