Correct 'warranty' itemprop syntax

☆樱花仙子☆ 提交于 2019-12-08 06:42:59

问题


What syntax is correct for warranty itemprop in https://schema.org/Offer?

This one

<meta itemprop="warranty" content="2ANN" />

or …

<meta itemprop="warranty" content="2 ANN" />

or with hierarchy …

<span itemprop="warranty" itemscope itemtype="https://schema.org/WarrantyPromise">
  <span itemprop="durationOfWarranty" itemscope itemtype="https://schema.org/QuantitativeValue">
    <span itemprop="value">2</span> years
    <meta itemprop="unitCode" content="ANN" />
  </span>
</span>

回答1:


The warranty property expects a WarrantyPromise as value:

Values expected to be one of these types
WarrantyPromise

So your last example is in line with Schema.org’s model.

(That doesn’t necessarily mean that consumers (e.g., search engines) would not also understand your first examples, but if you don’t have strong reasons against it you should go with the recommended approach.)



来源:https://stackoverflow.com/questions/23019537/correct-warranty-itemprop-syntax

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!