扩展html5微数据事件模式
我已经将html5微数据添加到了我的在线简历中,并且读到了可以扩展现有模式的内容 我一直在尝试扩展事件来描述具有以下标记的作业:扩展html5微数据事件模式,html,markup,semantic-markup,microdata,Html,Markup,Semantic Markup,Microdata,我已经将html5微数据添加到了我的在线简历中,并且读到了可以扩展现有模式的内容 我一直在尝试扩展事件来描述具有以下标记的作业: <div class="job" itemscope itemtype="http://schema.org/Event/Job"> <h2 itemprop="name">Web Developer</h2> <div itemprop="organizer"
<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>
你知道怎么了吗?应该如何做
非常感谢 我认为您的新模式规范需要托管在某个地方。显示错误可能是因为
http://schema.org/Event/Job
不存在
您可以尝试使用另一个词汇表中的属性来扩充schema.org
事件。谷歌的工具在错误方面是错误的,可能是因为它们没有处理schema.org扩展的情况(这是词汇表的有效使用)
但请注意,无论如何,这种扩展机制都被认为是“过时的”,请参阅。它打算很快在扩展页上显示此消息:
历史(“基于斜线的”)扩展机制(2011-2013)
状态说明:我们保留此文本以记录我们最初的可扩展性方法。我们目前不提倡使用基于“/”的扩展名,尽管使用这些扩展名应该是无害的。其他机制,包括RDFa、JSON-LD、角色
类型和附加类型
属性,现在也可以用于不同的扩展场景
[……]
(顺便说一下,您的startDate
和endDate
值无效:您需要使用日期格式。)现在有一个用于创建简历/就业历史记录的方法。过去的工作并不是真正的“事件”,最好使用包含employeeof和组织的Person模式。该模式给出了开始/结束日期和作业描述,因此也可以使用
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".