【发布时间】:2014-11-27 19:59:39
【问题描述】:
一直在我的在线简历中添加 html5 微数据,并在http://www.schema.org/docs/extension.html 中看到您可以扩展现有架构。
我一直在尝试扩展 Event 以使用以下标记来描述 Job:
<div class="job" itemscope itemtype="http://schema.org/Event/Job">
<h2 itemprop="name">Web Developer</h2>
<div itemprop="organizer" itemscope itemtype="http://schema.org/Organization">
<span itemprop="name">Company Name 2</span>
<span itemprop="location">London</span>
</div>
<span itemprop="startDate">January 2000</span>
<span itemprop="endDate">February 2009</span>
<p itemprop="description">Lorem ipsum dolor sit amet, consectetuer adipiscing elit...</p>
</div>
当我使用 Google 结构化数据测试工具时,它会出现以下错误:
Item
type: http://schema.org/event/job
property:
name: Web Developer
organizer: Item 4
start date: January 2000
enddate: February 2009
description: Lorem ipsum dolor sit amet, consectetuer adipiscing elit...
Error: Page contains property "name" which is not part of the schema.
Error: Page contains property "organizer" which is not part of the schema.
Error: Page contains property "startdate" which is not part of the schema.
Error: Page contains property "enddate" which is not part of the schema.
Error: Page contains property "description" which is not part of the schema.
Error: Missing required field "dtstart".
Error: Missing required field "name".
任何想法有什么问题吗?应该怎么做?
非常感谢!
【问题讨论】:
-
现在有一个open issue 用于创建简历/工作历史。过去的工作并不是真正的“事件”,使用 Person 模式以及其中的 employeeof 和 Organization 可能会更好。 schema.org/Role 模式提供了开始/结束日期和工作描述,因此也可以使用
标签: html markup semantic-markup microdata