如果您想将手表描述为产品,使用 schema.org/Product 是一个完美的选择。我会解释的。
正如您从schema.org/Product类结构中看到的那样,它不包含任何描述销售或购买的属性。它具有评论、品牌和其他产品特定属性。为了描述优惠/优惠,它有特殊的项目——好吧,类型为schema.org/Offer的优惠。相反,这种类型恰好是关于使用属性price、acceptedPaymentMethod等进行销售/购买的东西。
考虑来自 schema.org/Product 页面的示例:
<div itemscope itemtype="http://schema.org/Product">
<span itemprop="name">Kenmore White 17" Microwave</span>
<img src="kenmore-microwave-17in.jpg" alt='Kenmore 17" Microwave' />
<div itemprop="aggregateRating"
itemscope itemtype="http://schema.org/AggregateRating">
Rated <span itemprop="ratingValue">3.5</span>/5
based on <span itemprop="reviewCount">11</span> customer reviews
</div>
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<span itemprop="price">$55.00</span>
<link itemprop="availability" href="http://schema.org/InStock" />In stock
</div>
Product description:
<span itemprop="description">0.7 cubic feet countertop microwave.
Has six preset cooking categories and convenience features like
Add-A-Minute and Child Lock.</span>
Customer reviews:
<div itemprop="review" itemscope itemtype="http://schema.org/Review">
<span itemprop="name">Not a happy camper</span> -
by <span itemprop="author">Ellie</span>,
<meta itemprop="datePublished" content="2011-04-01">April 1, 2011
<div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
<meta itemprop="worstRating" content = "1">
<span itemprop="ratingValue">1</span>/
<span itemprop="bestRating">5</span>stars
</div>
<span itemprop="description">The lamp burned out and now I have to replace
it. </span>
</div>
<div itemprop="review" itemscope itemtype="http://schema.org/Review">
<span itemprop="name">Value purchase</span> -
by <span itemprop="author">Lucas</span>,
<meta itemprop="datePublished" content="2011-03-25">March 25, 2011
<div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
<meta itemprop="worstRating" content = "1"/>
<span itemprop="ratingValue">4</span>/
<span itemprop="bestRating">5</span>stars
</div>
<span itemprop="description">Great microwave for the price. It is small and
fits in my apartment.</span>
</div>
...
</div>
如您所见,所有产品特定属性都插入到产品实体中。对于更广泛的研究,您可以查看Google 标记的产品,这些产品当然会影响 schema.org 处理事物的方式。
关联 Dataset 和 DataCatalog 类型 - 它们不适用于此类用途。相反,它们提供了描述一些数据集(例如,纽约天气数据集)的方式。有关此类型的更多详细信息,您可以查看: