【发布时间】:2022-01-02 14:23:49
【问题描述】:
我使用了几种 JSON-LD 格式化工具(Example 1、Example 2、Example 3),但没有一个比列出架构类型 Report 及其属性 reportNumber 更具体。架构类型记录在 here,但没有示例。
This page 是一个有用的参考,但我仍然不确定。
所以我想知道下面的语法是否正确,如果不正确应该怎么改:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Report",
"reportNumber": "1234",
"headline": "Report Headline",
"description": "Report Description",
"image": "img.jpg",
"author": {
"@type": "Organization",
"name": "Org. Name",
"url": "example.com"
},
"publisher": {
"@type": "Organization",
"name": "Org. Name",
"logo": {
"@type": "ImageObject",
"url": "logo.svg"
}
},
"datePublished": "2021-11-24",
"dateModified": "2021-11-24"
}
</script>
我刚刚将类型 Article 换成了 Report。在我看来Report 是Article 类型的子集,使headline 和description 等属性仍然有效,但此外,使reportNumber 属性有效。我是 JSON-LD 的新手。
【问题讨论】:
标签: seo semantic-web json-ld