我允许这样做,将Event
置于Article
内是否有意义?
或者将完整的Article
包装为Event
?
示例:
<div itemscope itemtype="http://schema.org/Article">
...
<div itemprop="articleBody">
<p>
Having largely succeeded in stopping a rout of
Libya's rebels, the inchoate coalition attacking
Col. Muammar el-Qaddafi's forces remains divided
over the ultimate goal — and exit strategy —
of what officials acknowledged Thursday would be
a military campaign that could last for weeks.
</p>
<div itemscope itemtype="http://schema.org/EducationEvent">
<meta itemprop="description" content="This is the Eventdescription">
<meta itemprop="startDate" content="2017-02-01T00:00">
<meta itemprop="endDate" content="2017-02-01T00:00">
<meta itemprop="duration" content="0000-00-00T08:00">
<link itemprop="url" content="http://www.google.com" rel="author"/>
<a itemprop="url" href="www.google.com"><span itemprop="name" style="display:block;"><strong>Meine Schulung</strong></span></a>
<div itemprop="location" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="name" style="display:block;"><strong>Schulung GmbH</strong></span>
<span itemprop="streetAddress" style="display:block;">myStreet</span>
<div>
<span itemprop="addressLocality" style="display:block;">Berlin</span>,
<span itemprop="addressRegion"style="display:block;">Berlin</span>
</div>
<span itemprop="postalCode"style="display:block;">1036723</span>
<span itemprop="addressCountry"style="display:block;">Germany</span>
</div>
</div>
</div>
答案 0 :(得分:2)
如果您不使用属性(在itemprop
中),嵌套微数据项的方式无关紧要。
由于您未使用某个媒体资源,因此Article
和您的EducationEvent
与您的Article
无关联/关联。
我不清楚他们与你的关系应该是什么关系。例如,如果您要撰写关于EducationEvent
的{{1}},则可以使用about
property:
<div itemscope itemtype="http://schema.org/Article">
<div itemprop="about" itemscope itemtype="http://schema.org/EducationEvent">
</div>
</div>