Schema.org事件允许并且在文章中有意义吗?

时间:2017-02-01 11:06:24

标签: html5 schema.org microdata

我允许这样做,将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>

1 个答案:

答案 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>