[英]Which HTML5 microdata do I use for a job (vacancy)?
我正在嘗試用微數據標記一個空缺/工作項目,但我想知道我是否以正確的方式做這件事,因為我的項目屬性(如“標題”和“日期”)與我的項目類型“組織”結合起來沒有意義'。 如何更好地利用微數據重寫以下代碼塊?
<li itemscope itemtype='http://data-vocabulary.org/Organization'>
<a href='Web_developer.html'>
<span itemprop='title'>Web developer</span>
<span itemprop='name'>Company Name</span>,
<span itemprop='locality'>City</span>
</a>
<p itemprop='summary'>Lorem ipsum dolores amet ...</p>
<p>Published at <span itemprop='date'>28 Jan 2011</span>,
<span itemprop='views'>75</span> views</p>
</li>
或者我可以自己創建/建議 itemtype='job' 嗎? 如果是這樣,怎么做?
JobPosting微格式背后似乎有很大的動力。 它是 schema.org 的一部分。
這是宣布它的博客文章。 http://blog.schema.org/2011/11/schemaorg-support-for-job-postings.html
事后很久才回答,但現在在schema.org上有一個 Eric 引用的“JobPosting”模式。 有了這個,你的代碼看起來像 -
<li itemscope itemtype='http://schema.org/JobPosting'>
<a href='Web_developer.html'>
<span itemprop='title'>Web developer</span>
<span itemprop='hiringOrganization' itemscope itemtype='http://schema.org/Organization'>
<span itemprop='name'>Company Name</span>
</span>,
<span itemprop='jobLocation'>City</span>
</a>
<p itemprop='description'>Lorem ipsum dolores amet ...</p>
<p>Published at <time itemprop='datePosted' datetime='2011-01-28'>28 Jan 2011<time>,
<span>75</span> views</p>
</li>
我找不到包含 Views 屬性的架構。
我通常從這個網站https://issemantic.net/rdf-converter獲取模式
<div itemtype="http://schema.org/JobPosting" itemscope>
<div itemprop="baseSalary" itemtype="http://schema.org/MonetaryAmount" itemscope>
<div itemprop="value" itemtype="http://schema.org/QuantitativeValue" itemscope>
<meta itemprop="unitText" content="HOUR" />
<meta itemprop="value" content="40" />
</div>
<meta itemprop="currency" content="USD" />
</div>
<meta itemprop="jobLocationType" content="TELECOMMUTE" />
<meta itemprop="validThrough" content="2017-03-18T00:00" />
<meta itemprop="description" content="<p>Google aspires to be an organization that reflects the globally diverse audience that our products and technology serve. We believe that in addition to hiring the best talent, a diversity of perspectives, ideas and cultures leads to the creation of better products and services.</p>" />
<div itemprop="hiringOrganization" itemtype="http://schema.org/Organization" itemscope>
<link itemprop="sameAs" href="http://www.google.com/" />
<link itemprop="logo" href="http://www.example.com/images/logo.png" />
<meta itemprop="name" content="Google" />
</div>
<meta itemprop="datePosted" content="2017-01-18" />
<meta itemprop="title" content="Software Engineer" />
<div itemprop="applicantLocationRequirements" itemtype="http://schema.org/Country" itemscope>
<meta itemprop="name" content="USA" />
</div>
<div itemprop="identifier" itemtype="http://schema.org/PropertyValue" itemscope>
<meta itemprop="value" content="1234567" />
<meta itemprop="name" content="Google" />
</div>
<div itemprop="experienceRequirements" itemtype="http://schema.org/OccupationalExperienceRequirements" itemscope>
<meta itemprop="monthsOfExperience" content="36" />
</div>
<meta itemprop="employmentType" content="FULL_TIME" />
<div itemprop="educationRequirements" itemtype="http://schema.org/EducationalOccupationalCredential" itemscope>
<meta itemprop="credentialCategory" content="bachelor degree" />
</div>
</div>
享受 ! 😉
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.