schema.org - 产品中的评论还是评论中的产品?
问题描述
我正在尝试将结构化数据添加到第三方产品的评论中。例如,想想典型的小博主正在查看她刚买的相机。
所以这篇文章是对一种广泛使用的产品的评论,只有作者提供了一个评级。
我不明白 mainitemType
是否应该是Product
or Review
,而其他元素嵌套在里面(分别使用属性review
或itemReviewed
)。
我想说主要类型应该是Review
作者不是产品制造商,但谷歌这样说:
通过将评论嵌套在另一个 schema.org 类型的标记中,清楚地引用特定的产品或服务
我很困惑......如果有人能解释一下,我非常感谢!
解决方案
在产品页面 X -
评论作家 - 某人
Long Article is the
reviewBody
(reviewBody is aReview
Property)reviewRating
= 4 个,共 5 个
<script type="application/ld+json">
{
"@type":"Product",
"name":"Asus ROG Strix GL 10CS gaming desktop review",
"image":"https://cdn.mos.cms.futurecdn.net/EbueaZpQR6PQFFHqVPfWJD.jpg",
"brand":"asus",
"mainEntityOfPage":{
"@type":"WebPage",
"@id":"https://www.techradar.com/in/reviews/asus-rog-strix-gl-10cs-gaming-desktop"
},
"url":"https://www.techradar.com/in/reviews/asus-rog-strix-gl-10cs-gaming-desktop",
"review":{
"@type":"Review",
"name":"Asus ROG Strix GL 10CS gaming desktop review",
"reviewBody":"Asus ROG Strix GL 10CS is an entry-level gaming desktop by the Taiwanese electronics maker. Made for enthusiasts, the GL 10CS is the first full tower CPU in the Strix series of products with a capacity of 27 liters. The gaming desktop packs in the latest 9th generation Intel processor coupled with NVIDIA’s RTX goodness for a great gaming experience at a budget. It’s upgradable and has illuminating RGB lighting spread across the front that gives the desktop a cosmetic touch. We spent some…",
"headline":"Asus ROG Strix GL 10CS gaming desktop review",
"alternativeHeadline":"Great gaming experience on a budget!",
"datePublished":"2019-08-30T12:22:47Z",
"keywords":[
"Asus ROG gaming desktop",
"newstrack",
"review",
"newstrack",
"review"
],
"thumbnailUrl":"https://cdn.mos.cms.futurecdn.net/EbueaZpQR6PQFFHqVPfWJD-320-80.jpg",
"creator":{
"@type":"Person",
"name":"Siddharth Chauhan"
},
"publisher":{
"@type":"Organization",
"name":"TechRadar",
"url":"https://www.techradar.com",
"logo":{
"@type":"ImageObject",
"url":"https://vanilla.futurecdn.net/techradar/media/img/techradar_logo.png",
"caption":"TechRadar logo"
}
},
"author":{
"@type":"Person",
"name":"Siddharth Chauhan"
},
"reviewRating":{
"@type":"Rating",
"ratingValue":"4",
"bestRating":"5"
}
},
"description":"Great gaming experience on a budget!",
"@context":"http://schema.org"
}
</script>
推荐阅读
- firebase - 是否可以获得 Google Firebase(或 Google Cloud Platform)项目的源代码?
- php - 通过具有不同输出格式的自定义路由扩展 ApiResource
- python - ModuleNotFoundError 即使使用 __init__.py
- kotlin - 我们如何在 Android Studio 中录制内部音频
- arrays - 如何使用结构搜索点之间的最短距离?
- php - 警告:在第126行的C:\xampp\htdocs\bab2\index.php中遇到非数字值
- php - PHP:致命错误:未捕获的 PDOException:SQLSTATE [HY000]
- node.js - 如何使用 NodeJs 检测连接到我的计算机的 4G 加密狗
- python - 扩展python函数以返回更多值
- r - 将 R 中的符号绘制为权重饼图