我目前正致力于在 / about-page 中添加 Web应用程序的结构化数据。我想在那里添加一个属性。在以下代码中,我使用name
和value
(正如我在 schema.org 中看到的那样)。
问:我必须在value
之后只使用name
,并将Modularity
设置为value
并删除说明?
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "product",
"name":"Product_name",
"additionalProperty":
{
"@type":"propertyValue",
"name":"Main features",
"value":
[
{
"@type":"propertyValue",
"name": "Detailed documentation",
"value": "description_of_the_documentation"
},
{
"@type":"propertyValue",
"name": "Fully responsive",
"value": "description_of_the_responsiveness"
}
],
"@type":"propertyValue",
"name":"Other features",
"value":
[
{
"@type":"propertyValue",
"name": "Modularity",
"value": "description_of_the_modularity"
},
{
"@type":"propertyValue",
"name": "Frequent updates",
"value": "description_of_the_updates"
}
]
}
}
</script>
答案 0 :(得分:3)
您可以为value
属性使用Boolean
值。
{
"@type": "PropertyValue",
"name": "Modularity",
"value": true
}
如果要描述该功能,请另外使用description
属性。