-
Notifications
You must be signed in to change notification settings - Fork 915
Expand file tree
/
Copy pathissue-1457-examples.txt
More file actions
191 lines (146 loc) · 3.9 KB
/
issue-1457-examples.txt
File metadata and controls
191 lines (146 loc) · 3.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
TYPES: #eg-0240 Event, Schedule, eventSchedule
PRE-MARKUP:
A Tai-Chi class runs throughout 2017. The class occurs weekly, every Wednesday at 7pm.
MICRODATA:
Example is JSON-LD only.
RDFA:
Example is JSON-LD only.
JSON:
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Event",
"url": "http://www.example.org/events/1",
"name": "Tai chi Class",
"description": "A weekly Tai-Chi class",
"duration": "PT60M",
"eventSchedule": {
"@type": "Schedule",
"startDate": "2017-01-01",
"endDate": "2017-12-31",
"repeatFrequency": "P1W",
"byDay": "https://schema.org/Wednesday",
"startTime": "19:00:00",
"endTime": "20:00:00",
"scheduleTimezone": "Europe/London"
}
}
</script>
TYPES: #eg-0241 Event, Schedule, eventSchedule
PRE-MARKUP:
A Meetup takes place on the 1st and 15th of every month between 9-10am
MICRODATA:
Example is JSON-LD only.
RDFA:
Example is JSON-LD only.
JSON:
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Event",
"name": "Example Meetup",
"eventSchedule": {
"@type": "Schedule",
"repeatFrequency": "P1M",
"byMonthDay": [1,15],
"startTime": "09:00:00",
"endTime": "10:00:00",
"scheduleTimezone": "America/Glace_Bay"
}
}
</script>
TYPES: #eg-0242 Event, Schedule, eventSchedule
PRE-MARKUP:
Starting from 2th December an Event will run daily between 9-10am for 10 occurences.
MICRODATA:
Example is JSON-LD only.
RDFA:
Example is JSON-LD only.
JSON:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Event",
"name": "Count Example",
"eventSchedule":
{
"@type": "Schedule",
"startDate": "2016-12-24",
"repeatFrequency": "P1D",
"repeatCount": 10,
"startTime": "09:00:00",
"endTime": "10:00:00",
"scheduleTimezone": "Europe/London"
}
}
</script>
TYPES: #eg-0243 Event, Schedule, eventSchedule
PRE-MARKUP:
An Event runs twice a day, at 9am-10am and 2pm-3pm but only Monday to Friday
MICRODATA:
Example is JSON-LD only.
RDFA:
Example is JSON-LD only.
JSON:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Event",
"name": "Example",
"eventSchedule": [
{
"@type": "Schedule",
"repeatFrequency": "P1D",
"byDay": [
"https://schema.org/Monday",
"https://schema.org/Tuesday",
"https://schema.org/Wednesday",
"https://schema.org/Thursday",
"https://schema.org/Friday"
],
"startTime": "09:00:00",
"endTime": "10:00:00",
"scheduleTimezone": "America/Glace_Bay"
},
{
"@type": "Schedule",
"repeatFrequency": "P1D",
"byDay": [
"https://schema.org/Monday",
"https://schema.org/Tuesday",
"https://schema.org/Wednesday",
"https://schema.org/Thursday",
"https://schema.org/Friday"
],
"startTime": "14:00:00",
"endTime": "15:00:00",
"scheduleTimezone": "America/Glace_Bay"
}
]
}
</script>
TYPES: #eg-0244 Event, Schedule, eventSchedule
PRE-MARKUP:
An Event runs on the second Monday of every month, from 6pm-7:30pm. Because this kind of recurrence goes beyond that expressible using <a href="https://schema.org/DayOfWeek">https://schema.org/DayOfWeek</a>, it is specified instead using iCal's <a href="https://icalendar.org/iCalendar-RFC-5545/3-8-5-3-recurrence-rule.html">syntax for byDay recurrence rules</a>.
MICRODATA:
Example is JSON-LD only.
RDFA:
Example is JSON-LD only.
JSON:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Event",
"name": "Example",
"eventSchedule": [
{
"@type": "Schedule",
"repeatFrequency": "P1M",
"byDay": "2MO",
"startTime": "18:00:00",
"endTime": "19:30:00",
"scheduleTimezone": "Asia/Shanghai"
}
]
}
</script>