问题
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