可能会出现两种price-property:
第一种是SoldOut 示例中所示的那种。第二种我在下面的例子中展示给你,基于SoldOuttoo
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Event",
"location": {
"@type": "Place",
"address": {
"@type": "PostalAddress",
"addressLocality": "Denver",
"addressRegion": "CO",
"postalCode": "80209",
"streetAddress": "7 S. Broadway"
},
"name": "The Hi-Dive"
},
"name": "SOLD OUT! Typhoon with Radiation City",
"offers": {
"@type": "Offer",
"availability": "http://schema.org/SoldOut",
"price": {
"@type": "PriceSpecification",
"price": "13.00",
"priceCurrency": "USD",
},
"url": "http://www.ticketfly.com/purchase/309433"
},
"startDate": "2013-09-14T21:30"
}
</script>
用文字来表达,您可以使用price 作为独立属性,或者也可以作为PriceSpecification 类型的一部分。这两种用法都可以,作为PriceSpecification 类型一部分的用法适用于您必须指定更多属性作为仅价格及其货币的情况,如https://schema.org/PriceSpecification 下所列。