【问题标题】:Is there a Microformat for the Hours a Business is open?企业营业时间是否有微格式?
【发布时间】:2009-07-25 12:57:02
【问题描述】:

我想知道是否还有用于企业营业时间的微格式。

如果没有,我应该向谁提交标准?

【问题讨论】:

  • 我不知道有一个,但我知道这个会有什么用处。 microformats.org 提供有关如何在 microformats.org/discuss 提交新格式的信息

标签: microformats


【解决方案1】:

在向 Microformats 邮件列表提交相同的问题后,我收到了一个名叫 Martin Hepp 的人的回复,他显然已经为此提出了规范。

他为我提供了以下链接:

GoodRelations 词汇表提供 工作时间的标准方式 操作,见:

http://www.ebusiness-unibw.org/wiki/Rdfa4google

http://www.ebusiness-unibw.org/wiki/GoodRelations_and_Yahoo_SearchMonkey

#

完整的规格和其他材料在

http://www.ebusiness-unibw.org/wiki/GoodRelations

这用于例如by Bestbuy 曝光他们 1000k 的营业时间 美国的商店。

最好的

马丁

【讨论】:

    【解决方案2】:

    网络上使用最广泛的营业时间标记是GoodRelations

    这是一个例子:

    <div xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
         xmlns="http://www.w3.org/1999/xhtml"
         xmlns:foaf="http://xmlns.com/foaf/0.1/"
         xmlns:gr="http://purl.org/goodrelations/v1#" 
         xmlns:vcard="http://www.w3.org/2006/vcard/ns#"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
    
      <div about="#store" typeof="gr:LocationOfSalesOrServiceProvisioning">
        <div property="rdfs:label" content="Pizzeria La Mamma"></div>
        <div rel="vcard:adr">
          <div typeof="vcard:Address">
            <div property="vcard:country-name" content="Germany"></div>
            <div property="vcard:locality" content="Munich"></div>
            <div property="vcard:postal-code" content="85577"></div>
            <div property="vcard:street-address" content="1234 Main Street"></div>
          </div>
        </div>
        <div property="vcard:tel" content="+33 408 970-6104"></div>
        <div rel="foaf:depiction" resource="http://www.pizza-la-mamma.com/image_or_logo.png"></div>
        <div rel="vcard:geo">
          <div>
            <div property="vcard:latitude" content="48.08" datatype="xsd:float"></div>
            <div property="vcard:longitude" content="11.64" datatype="xsd:float"></div>
          </div>
        </div>
        <div rel="gr:hasOpeningHoursSpecification">
          <div about="#mon_fri" typeof="gr:OpeningHoursSpecification">
            <div property="gr:opens" content="08:00:00" datatype="xsd:time"></div>
            <div property="gr:closes" content="18:00:00" datatype="xsd:time"></div>
            <div rel="gr:hasOpeningHoursDayOfWeek" resource="http://purl.org/goodrelations/v1#Friday"></div>
            <div rel="gr:hasOpeningHoursDayOfWeek" resource="http://purl.org/goodrelations/v1#Thursday"></div>
            <div rel="gr:hasOpeningHoursDayOfWeek" resource="http://purl.org/goodrelations/v1#Wednesday"></div>
            <div rel="gr:hasOpeningHoursDayOfWeek" resource="http://purl.org/goodrelations/v1#Tuesday"></div>
            <div rel="gr:hasOpeningHoursDayOfWeek" resource="http://purl.org/goodrelations/v1#Monday"></div>
          </div>
        </div>
        <div rel="gr:hasOpeningHoursSpecification">
          <div about="#sat" typeof="gr:OpeningHoursSpecification">
            <div property="gr:opens" content="08:30:00" datatype="xsd:time"></div>
            <div property="gr:closes" content="14:00:00" datatype="xsd:time"></div>
            <div rel="gr:hasOpeningHoursDayOfWeek" resource="http://purl.org/goodrelations/v1#Saturday"></div>
          </div>
        </div>
        <div rel="foaf:page" resource=""></div>
      </div>
    </div>
    

    请注意,来自 Ton 的 Microformats 建议并没有真正模拟这是一个开放时间,因此客户不能做很多事情。许多大公司都支持 GoodRelations 标记。例如,BestBuy 在其所有 1000 多个商店页面上使用 GoodRelations 来指示营业时间。

    【讨论】:

      【解决方案3】:

      HTML 微格式可能如下所示:

      <ol class="business_hours">
      <li class="monday">Maandag <span class="dtstart" title="08:00:00+01">9.00</span> - <span class="dtend" title="17:00:00+01">18.00</span> uur</li>
      <li class="tuesday">Dinsdag <span class="dtstart" title="08:00:00+01">9.00</span> - <span class="dtend" title="17:00:00+01">18.00</span> uur</li>
      <li class="wednesday">Woensdag <span class="dtstart" title="08:00:00+01">9.00</span> - <span class="dtend" title="17:00:00+01">18.00</span> uur</li>
      <li class="thursday">Donderdag <span class="dtstart" title="08:00:00+01">9.00</span> - <span class="dtend" title="17:00:00+01">18.00</span> uur</li>
      <li class="friday">Vrijdag <span class="dtstart" title="08:00:00+01">9.00</span> - <span class="dtend" title="17:00:00+01">18.00</span> uur</li>
      <li class="saturday">Zaterdag <span class="dtstart" title="08:00:00+01">9.00</span> - <span class="dtend" title="15:00:00+1">16.00</span> uur</li>
      <li>Zondag Gesloten</li>
      </ol>
      

      请原谅我的荷兰语:)

      我的 2 美分。

      【讨论】:

        【解决方案4】:

        Microformat 更新了他们的 wiki,提供了一种基于 hCalendar 实施工作时间的建议方法。

        http://microformats.org/wiki/operating-hours

        【讨论】:

          【解决方案5】:

          https://schema.org/openingHours

          Schema.org 是 Bing、Google 和 Yahoo 于 2011 年 6 月 2 日发起的一项倡议。

          一个例子:

          <strong>Openning Hours:</strong>
          <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">
              Tuesdays and Thursdays 4-8pm
          </time>
          

          【讨论】:

            【解决方案6】:

            也许http://microformats.org/ 可能有用...

            【讨论】:

            • 我会投票给你,但你的分数(正好是 10K)是一个整数。
            • 赞成什么,究竟是什么?这不是一个详细的答案。
            • 确实如此。也许赞成票是为了我的高速谷歌搜索......也许 OP 的 G 键被删掉了
            【解决方案7】:

            如果仍然有用,您应该使用他们的 wiki:microformats.org 提交给微格式社区。​​p>

            在这个link 中,您拥有提出新微格式规范的所有现有流程。

            希望对您有所帮助。

            【讨论】:

              猜你喜欢
              • 2010-10-20
              • 1970-01-01
              • 2020-03-24
              • 1970-01-01
              • 1970-01-01
              • 1970-01-01
              • 2018-01-21
              • 1970-01-01
              • 2016-07-09
              相关资源
              最近更新 更多