我想用schema.org标记标记网页。我可以在文档中找到可以使用标记指定一种业务:BusinessFunction和GoodRelations中的标记。 问题是我找不到它的例子。因为网页是关于软件开发人员的,所以我将使用标记:http://purl.org/goodrelations/v1#ProvideService。
有人可以举个例子吗?
答案 0 :(得分:3)
首先:有关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>