我正在使用 json-ld 开发事件标记,以包含在确认电子邮件中。
我的一些事件会定期重复发生。但是,最新的 Schema.org 规范不支持重复事件,因此我遵循了此处提供的建议:http://lists.w3.org/Archives/Public/public-vocabs/2011Dec/0062.html http://lists.w3.org/Archives/Public/public-vocabs/2011Dec/0062.html并决定嵌入单个事件的 json 列表。
json-ld 通过了 google 提供的电子邮件标记测试器中的测试(https://www.google.com/webmasters/markup-tester/u/0/ https://www.google.com/webmasters/markup-tester/u/0/).
然而,当我通过向自己发送电子邮件来测试谷歌日历集成时,该系列中的 6 个事件中只有 1 个出现在我的日历中(奇怪的是,它既不是列表中的第一个事件,也不是最后一个事件)。
Gmail 标记是否支持同一封电子邮件中的多个事件?如果是这样,有更好的方法吗?
标记示例:
<script type="application/ld+json">
[
{
"reservationNumber": "7e15afb6b2485005e55481be58de4141b70f85006bd25823",
"reservationFor": {
"startDate": "2015-05-09T16:00:00-07:00",
"endDate": "2015-05-09T22:30:00-07:00",
"description": "regularly schedule XXXX",
"location": {
"address": {
"addressCountry": "US",
"addressLocality": "XXX",
"addressRegion": "XXX",
"streetAddress": "XXX",
"postalCode": "XXX",
"@type": "PostalAddress"
},
"@type": "Place",
"name": "XXX"
},
"@type": "Event",
"name": "XXX Every 2 Weeks"
},
"modifyReservationUrl": "https://example.com/XXX",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "XXX"
},
"@context": "http://schema.org",
"@type": "EventReservation"
},
...
{
"reservationNumber": "40553edbce52f0052e153919a4dad49ec32516c15433bf4a",
"reservationFor": {
"startDate": "2015-05-23T16:00:00-07:00",
"endDate": "2015-05-23T22:30:00-07:00",
"description": "regularly schedule XXX",
"location": {
"address": {
"addressCountry": "US",
"addressLocality": "XXX",
"addressRegion": "XXX",
"streetAddress": "XXX",
"postalCode": "XXX",
"@type": "PostalAddress"
},
"@type": "Place",
"name": "XXX"
},
"@type": "Event",
"name": "XXX Every 2 Weeks"
},
"modifyReservationUrl": "https://example.com/XXX",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "XXX"
},
"@context": "http://schema.org",
"@type": "EventReservation"
},
]
</script>