【发布时间】:2018-12-15 11:51:08
【问题描述】:
使用 JSON-LD 语法和 Schema.org 词汇,根据 Schema.org's Occupation example 4,以下应该是有效的,但不是。
{
"@context": "http://schema.org",
"@type": "Person",
"name": "Jane Smith",
"sameAs": "http://en.wikipedia.org/wiki/Jane_Smith",
"worksFor": {
"@type": "Organization",
"name": "McKinsey & Company",
"url" : "http://www.mckinsey.com"
},
"hasOccupation": [ {
"@type": "Role",
"hasOccupation": {
"name": "Management Consultant"
},
"startDate": "2016-04-21"
}, {
"@type": "Role",
"hasOccupation": {
"name": "Chief Strategic Officer"
},
"startDate": "2013-11-14",
"endDate": "2016-03-22"
}, {
"@type": "Role",
"hasOccupation": {
"name": "Vice President of Sales"
},
"startDate": "2009-09-20",
"endDate": "2013-10-14"
}
]
}
通过 Google 的Structured Data Testing Tool:
hasOccupation不是hasOccupation属性的已知有效目标类型。
【问题讨论】:
标签: schema.org json-ld