代码之家  ›  专栏  ›  技术社区  ›  Bronek

schema.org商业功能-GoodRelations

  •  0
  • Bronek  · 技术社区  · 11 年前

    我想用schema.org标记网页。我可以在文档中发现,使用标签可以指定一种业务:BusinessFunction和GoodRelations的标签。 问题是我找不到它的例子。因为网页是关于软件开发人员的,所以我要使用标签: http://purl.org/goodrelations/v1#ProvideService .

    有人能给我举个例子吗?

    1 回复  |  直到 11 年前
        1
  •  3
  •   unor Daniel Garijo    11 年前

    首先:关于GoodRelations(以及schema.org)建模服务的相关但有点过时的资源如下: http://www.ebusiness-unibw.org/wiki/GoodRelationsService

    这解释了基本模式。请注意,一些GoodRelations元素在schema.org中的名称略有不同,如下所示: http://wiki.goodrelations-vocabulary.org/Cookbook/Schema.org#Naming_Differences

    我计划更新此页面并将其迁移到 the new GoodRelations Cookbook 。但这是一个悬而未决的问题,我需要一段时间。

    现在,针对您的具体问题:

    http://purl.org/goodrelations/v1#ProvideService
    

    如果你提供的商品是提供某种服务,那就好了。

    以下是一个完整的示例:

    <div itemscope itemtype="http://schema.org/Offer" itemid="#offer">
      <div itemprop="name">Web Development Services</div>
      <div itemprop="description">We build your Web site....</div>
      <link itemprop="businessFunction"
            href="http://purl.org/goodrelations/v1#ProvideService" />
    <!-- Unit price -->
      <div itemscope itemprop="priceSpecification"
           itemtype="http://schema.org/UnitPriceSpecification">Price:
        <meta itemprop="priceCurrency" content="USD">$
        <span itemprop="price">50.00</span> per
        <meta itemprop="unitCode" content="HUR"> hour
        <time itemprop="validThrough"
              datetime="2013-11-30T23:59:59Z"></time>
      </div>
    <!-- other offer properties follow here -->
    ...
    </div>