Schema.org将多个startdates链接到一个事件 [英] Schema.org linking multiple startdates to one event

查看:104
本文介绍了Schema.org将多个startdates链接到一个事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新增丰富网页摘要和schema.org标记。我想在一个站点上实现它,但布局很奇怪:


  1. startDate;

  2. 位置;
  3. 3类价格; li>
  4. 描述。

这个事实可能是包含标记的障碍吗?



此外,我试图找出如何为多个startDates创建schema.org定义的示例,但似乎没有这方面的规范。你知道我该怎么做?我测试了一些东西,但不知道它是否正确...



以下是我如何实现架构:

 < div itemscope itemtype =http://schema.org/Event> 
< div class =context>
< h5>< time itemprop =startDatedatetime =2013-03-01> 01.03.2013 Fri< / time>< / h5>

< form method =postaction =some action>
< label>位置< / label>
< p itemprop =location> Gran Teatre del Liceu< / p>< br />
< div itemprop =offersitemscope itemtype =http://www.schema.org/Offer>
< label itemprop =name> Ticket Categories< / label>
< p>< span itemprop =price> I,& euro; 98< / span>< br />
< span itemprop =price> II,& euro; 87< / span>< br />
< span itemprop =price> III,& euro; 68< / span>< br />
< / p>
< / div>

< ul>
< li class =on>< a title =Order ticketshref =#>< time itemprop =startDatedatetime =2013-03-01> 01.03 .2013 Fri< / time>< / a>< / li>
< li>< a title =Order ticketshref =#>< time itemprop =startDatedatetime =2013-03-02> 02.03.2013 Sat< / time> ;< / A>< /锂>
< li>< a title =Order ticketshref =#>< time itemprop =startDatedatetime =2013-03-04> 04.03.2013 Mon< / time> ;< / A>< /锂>
< li>< a title =Order ticketshref =#>< time itemprop =startDatedatetime =2013-03-05> 05.03.2013 Tue< / time> ;< / A>< /锂>
< / ul>< br />

< input type =submitvalue =Order ticketsclass =btn/>
< / form>
< / div>

< div class =ttl>
< h2 title =Street Scene,Opera by Kurt Weillitemprop =name> Street Scene,Opera by Kurt Weill< / h2>
< / div>
< div class =text>
< p itemprop =description>歌剧和音乐剧之间


< / div>

< / div>


解决方案

最好为每个startDate分别定义与



嵌套在同一个块中。查询数据变得更容易(如果事件在议程中定义了多个主题,这将会很有帮助)。与递归事件一样。

b。为所有可能的例外提供结构是不可能的,例如这次见面会发生在每个星期六。

c。模拟不规则病例非常困难或不可能,例如如果一场音乐会开始20分钟迟到或被取消,或者演讲者发生变化。

I am new to rich snippets and schema.org markup. I would like to implement it on one site but the layout is strange:

  1. startDate;
  2. location;
  3. 3 categories of Prices;
  4. multiple startDates;
  5. name of the event;
  6. description.

Could this fact be an obstacle for including the markup?

Moreover I am trying to find out examples how to create schema.org definition for one and the same event with multiple startDates but seems there is no spec for this. Do you know how can I do it? I have tested something but don't know if it's right...

Here is how I implemented the schema:

<div itemscope itemtype="http://schema.org/Event">
<div class="context">
<h5><time itemprop="startDate" datetime="2013-03-01">01.03.2013 Fri</time></h5>

  <form method="post" action="some action">
    <label>Location</label>
    <p itemprop="location">Gran Teatre del Liceu</p><br />
    <div itemprop="offers" itemscope itemtype="http://www.schema.org/Offer">
      <label itemprop="name">Ticket Categories</label>
      <p><span itemprop="price">I, &euro; 98</span><br />
      <span itemprop="price">II, &euro; 87</span><br />
      <span itemprop="price">III, &euro; 68</span><br />
      </p>
    </div>

    <ul>
      <li class="on"><a title="Order tickets" href="#"><time itemprop="startDate" datetime="2013-03-01">01.03.2013 Fri</time></a></li>
      <li><a title="Order tickets" href="#"><time itemprop="startDate" datetime="2013-03-02">02.03.2013 Sat</time></a></li>
      <li><a title="Order tickets" href="#"><time itemprop="startDate" datetime="2013-03-04">04.03.2013 Mon</time></a></li>
      <li><a title="Order tickets" href="#"><time itemprop="startDate" datetime="2013-03-05">05.03.2013 Tue</time></a></li>
    </ul><br />

    <input type="submit" value="Order tickets" class="btn" />
   </form>
</div>

   <div class="ttl">
    <h2 title="Street Scene, Opera by Kurt Weill" itemprop="name">Street Scene, Opera by Kurt Weill</h2>
   </div>
   <div class="text">
    <p itemprop="description">Midway between opera and musical</p>
   </div>

</div>

解决方案

It's better to have it defined for each startDate separately than having nested in the same block as

a. It gets much easier to query data (would be helpful if an event has multiple topics to be defined in the agenda). Same goes with recursive events.

b. It is impossible to provide constructs for all possible exceptions, e.g. "this meetup happens every Saturday".

c. It is very difficult or impossible to model irregular cases, e.g. if a single concert starts 20 minutes late or is cancelled, or if there has been speaker change.

这篇关于Schema.org将多个startdates链接到一个事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆