-
Notifications
You must be signed in to change notification settings - Fork 0
Normalised Output: CourseInstance with EventSchedule
thill-odi edited this page Jul 9, 2020
·
5 revisions
This is similar to ScheduledSession with EventSchedule
: a CourseInstance
is associated with an eventSchedule
, which is then expanded out to create bookable children - here, CourseInstanceSubEvent
s.
Note that schedule expansions are performed only two weeks ahead of querytime.
"items": [{
"state": "updated",
"kind": "Course",
"id": 311870,
"modified": 1593083366,
"data": {
"@context": "https://openactive.io/",
"@type": "CourseInstance",
"@id": "http://api.cotech.no/api/v1/oa/1325/courses/311870",
"eventSchedule": [{
"@type": "Schedule",
"byDay": [
"https://schema.org/Friday"
],
"duration": "PT30M",
"endTime": "15:00",
"repeatCount": 19,
"scheduledEventType": "Event",
"scheduleTimezone": "Europe/London",
"startDate": "2020-05-01",
"endDate": "2020-09-04",
"startTime": "14:30"
}],
"identifier": 311870,
"name": "S4K TV - Dance",
"description": "We are delighted to welcome you and the family to the Sport4Kids Club! This is where the excitement really begins!We are live every Fridayfrom 13:30 -14:00. Watch our Facebook and Instagram pages for updates. You can access all of our classes on our S4KTV Youtube page: https://www.youtube.com/channel/UCaShqm-i1tIdz0-VphqRDFg",
"activity": [{
"@type": "Concept",
"@id": "https://openactive.io/activity-list#6ca15167-51da-4d91-a1ae-8a45dc47b0ea",
"inScheme": "https://openactive.io/activity-list",
"prefLabel": "Dance"
}],
"duration": "P126D",
"eventAttendanceMode": "https://schema.org/OnlineEventAttendanceMode",
"offers": [{
"@type": "Offer",
"name": "Sign Up",
"price": 0,
"priceCurrency": "GBP",
"url": "https://booking.sport4kids.biz/s4k_tv_-_dance01_01052020"
}],
"organizer": {
"@type": "Organization",
"@id": "http://api.cotech.no//organizers/12334",
"name": "Sport4Kids UK Ltd.",
"email": "[email protected]",
"telephone": "0300 303 3866"
},
"startDate": "2020-05-01",
"endDate": "2020-09-04",
"url": "https://booking.sport4kids.biz/s4k_tv_-_dance01_01052020"
}
}]
"items": [{
"state": "updated",
"kind": "CourseInstanceSubEvent",
"id": 3118701,
"modified": 1593083366,
"data": {
"@context": [
"https://openactive.io/",
"https://openactive.io/ns-beta"
],
"@type": "Event",
"@id": "http://api.cotech.no/api/v1/oa/1325/courses/311870/1",
"duration": "PT30M",
"endTime": "15:00",
"scheduledEventType": "Event",
"startDate": "2020-05-01T14:30:00Z",
"endDate": "2020-05-01T15:00:00Z",
"identifier": 311870,
"name": "S4K TV - Dance",
"description": "We are delighted to welcome you and the family to the Sport4Kids Club! This is where the excitement really begins!We are live every Fridayfrom 13:30 -14:00. Watch our Facebook and Instagram pages for updates. You can access all of our classes on our S4KTV Youtube page: https://www.youtube.com/channel/UCaShqm-i1tIdz0-VphqRDFg",
"activity": [{
"@type": "Concept",
"@id": "https://openactive.io/activity-list#6ca15167-51da-4d91-a1ae-8a45dc47b0ea",
"inScheme": "https://openactive.io/activity-list",
"prefLabel": "Dance"
}],
"provenanceInformation": {
"feedUrl": ["https://someservice.org/api/openactive/courses"],
"publisherName": "SomeService",
"parentId": ["http://api.cotech.no/api/v1/oa/1325/courses/311870"]
},
"eventAttendanceMode": "https://schema.org/OnlineEventAttendanceMode",
"offers": [{
"@type": "Offer",
"name": "Sign Up",
"price": 0,
"priceCurrency": "GBP",
"url": "https://booking.sport4kids.biz/s4k_tv_-_dance01_01052020"
}],
"organizer": {
"@type": "Organization",
"@id": "http://api.cotech.no//organizers/12334",
"name": "Sport4Kids UK Ltd.",
"email": "[email protected]",
"telephone": "0300 303 3866"
},
"url": "https://booking.sport4kids.biz/s4k_tv_-_dance01_01052020"
}
}, {
"state": "updated",
"kind": "CourseInstanceSubEvent",
"id": 3118702,
"modified": 1593083366,
"data": {
"@context": [
"https://openactive.io/",
"https://openactive.io/ns-beta"
],
"@type": "Event",
"@id": "http://api.cotech.no/api/v1/oa/1325/courses/311870/2",
"duration": "PT30M",
"endTime": "15:00",
"scheduledEventType": "Event",
"startDate": "2020-05-08T14:30:00Z",
"endDate": "2020-05-08T15:00:00Z",
"identifier": 3118702,
"name": "S4K TV - Dance",
"description": "We are delighted to welcome you and the family to the Sport4Kids Club! This is where the excitement really begins!We are live every Fridayfrom 13:30 -14:00. Watch our Facebook and Instagram pages for updates. You can access all of our classes on our S4KTV Youtube page: https://www.youtube.com/channel/UCaShqm-i1tIdz0-VphqRDFg",
"activity": [{
"@type": "Concept",
"@id": "https://openactive.io/activity-list#6ca15167-51da-4d91-a1ae-8a45dc47b0ea",
"inScheme": "https://openactive.io/activity-list",
"prefLabel": "Dance"
}],
"provenanceInformation": {
"feedUrl": ["https://someservice.org/api/openactive/courses"],
"publisherName": "SomeService",
"parentId": ["http://api.cotech.no/api/v1/oa/1325/courses/311870"]
},
"eventAttendanceMode": "https://schema.org/OnlineEventAttendanceMode",
"offers": [{
"@type": "Offer",
"name": "Sign Up",
"price": 0,
"priceCurrency": "GBP",
"url": "https://booking.sport4kids.biz/s4k_tv_-_dance01_01052020"
}],
"organizer": {
"@type": "Organization",
"@id": "http://api.cotech.no//organizers/12334",
"name": "Sport4Kids UK Ltd.",
"email": "[email protected]",
"telephone": "0300 303 3866"
},
"url": "https://booking.sport4kids.biz/s4k_tv_-_dance01_01052020"
}
}]