如何在 Schema.org 加价电价?
How to markup an electricity rate in Schema.org?
什么是正确的实体以及如何嵌套它们来为电力供应商申报电价?
示例:
Provider: John Doe Provider
Rate: John Doe’s Special Electricity Rate
Basefee: 9,90 EUR
Working Price: 0,27 EUR / kWh
Rating: 5 from 5 Stars
我同意 Andrew Morton 的建议,但是,我想澄清一些细节。要识别千瓦时,我建议您使用 UNECE 的国际标识符。例如:
"priceSpecification":{
"@type":"UnitPriceSpecification",
"price":"0.27",
"priceCurrency":"EUR",
"referenceQuantity": {
"@type":"QuantitativeValue",
"value":"1",
"unitCode":"KWH",
"sameAs":"http://www.unece.org/fileadmin/DAM/cefact/recommendations/bkup_htm/add3hk.htm"
}
}
在网页内容中,使用 HTML element abbr 表示千瓦时的缩写可能会有用
对 price 属性 使用以下建议:
Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a
decimal point. Avoid using these symbols as a readability separator.
2019-09-30更新JKB的以下问题:
... But how to extend this example to also declare „base fee“? And, in
addition, set the name of the supplier?
以下标记可能对您有所帮助:
{"@context": "http://schema.org/",
"@type":"Service",
"serviceType":"Supply of electricity",
"provider":{
"@type":"LocalBusiness",
"name":"John Doe Provider"
},
"offers":{
"@type":"Offer",
"name":"Base fee",
"price": "9.90",
"priceCurrency": "EUR",
"priceSpecification":{
"@type":"UnitPriceSpecification",
"name":"Working Price",
"price":"0.27",
"priceCurrency":"EUR",
"referenceQuantity": {
"@type":"QuantitativeValue",
"value":"1",
"unitCode":"KWH",
"sameAs":"http://www.unece.org/fileadmin/DAM/cefact/recommendations/bkup_htm/add3hk.htm"
}
}
}
}
我这里设置了顶层类型比如Service但是我不清楚这是不是一个服务或产品。因此,您需要明确判断供电是服务还是无形产品。如果这是产品,则针对产品类型调整此标记。
什么是正确的实体以及如何嵌套它们来为电力供应商申报电价?
示例:
Provider: John Doe Provider
Rate: John Doe’s Special Electricity Rate
Basefee: 9,90 EUR
Working Price: 0,27 EUR / kWh
Rating: 5 from 5 Stars
我同意 Andrew Morton 的建议,但是,我想澄清一些细节。要识别千瓦时,我建议您使用 UNECE 的国际标识符。例如:
"priceSpecification":{
"@type":"UnitPriceSpecification",
"price":"0.27",
"priceCurrency":"EUR",
"referenceQuantity": {
"@type":"QuantitativeValue",
"value":"1",
"unitCode":"KWH",
"sameAs":"http://www.unece.org/fileadmin/DAM/cefact/recommendations/bkup_htm/add3hk.htm"
}
}
在网页内容中,使用 HTML element abbr 表示千瓦时的缩写可能会有用
对 price 属性 使用以下建议:
Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.
2019-09-30更新JKB的以下问题:
... But how to extend this example to also declare „base fee“? And, in addition, set the name of the supplier?
以下标记可能对您有所帮助:
{"@context": "http://schema.org/",
"@type":"Service",
"serviceType":"Supply of electricity",
"provider":{
"@type":"LocalBusiness",
"name":"John Doe Provider"
},
"offers":{
"@type":"Offer",
"name":"Base fee",
"price": "9.90",
"priceCurrency": "EUR",
"priceSpecification":{
"@type":"UnitPriceSpecification",
"name":"Working Price",
"price":"0.27",
"priceCurrency":"EUR",
"referenceQuantity": {
"@type":"QuantitativeValue",
"value":"1",
"unitCode":"KWH",
"sameAs":"http://www.unece.org/fileadmin/DAM/cefact/recommendations/bkup_htm/add3hk.htm"
}
}
}
}
我这里设置了顶层类型比如Service但是我不清楚这是不是一个服务或产品。因此,您需要明确判断供电是服务还是无形产品。如果这是产品,则针对产品类型调整此标记。