The below illustrates a Dataset Site pointing to feeds consisting of ScheduledSessions
, SessionSeries
, and Events
. As the presence of the webAPI
attribute indicates, data items from these feeds are bookable.
<script type="application/ld+json`/">
{
"@context":[
"https://schema.org/",
"https://openactive.io/",
"https://openactive.io/ns-beta"
],
"@type":"Dataset",
"@id":"https://data.example.com/",
"name":"Example Sessions and Events",
"description":"Near real-time availability and rich descriptions relating to sessions and events available from Example.com",
"url":"https://data.example.com/",
"dateModified":"2019-08-25T11:23:27+00:00",
"keywords":[
"Courses",
"Sessions",
"Events",
"Activities",
"Sports",
"Physical Activity",
"OpenActive"
],
"schemaVersion":"https://www.openactive.io/modelling-opportunity-data/2.0/",
"license":"https://creativecommons.org/licenses/by/4.0/",
"publisher":{
"@type":"Organization",
"name":"Example.com",
"description":"Example.com makes it easy to get active!",
"url":"https://example.com/home",
"legalName":"Example Ltd",
"logo":{
"@type":"ImageObject",
"url":"https://cdn.example.com/assets/logo.png"
},
"email":"support@example.com"
},
"discussionUrl":"https://github.com/example/repo/issues",
"datePublished":"2019-07-11T00:00:00+00:00",
"inLanguage":[
"en-GB"
],
"distribution":[
{
"@type":"DataDownload",
"name":"ScheduledSession",
"additionalType":"https://openactive.io/ScheduledSession",
"encodingFormat":"application/vnd.openactive.rpde+json; version=1",
"contentUrl":"https://example.com/api/openactive/scheduledsessions",
"totalItems": 1852
},
{
"@type":"DataDownload",
"name":"SessionSeries",
"additionalType":"https://openactive.io/SessionSeries",
"encodingFormat":"application/vnd.openactive.rpde+json; version=1",
"contentUrl":"https://example.com/api/openactive/sessionseries",
"totalItems": 361
},
{
"@type":"DataDownload",
"name":"Event",
"additionalType":"https://schema.org/Event",
"encodingFormat":"application/vnd.openactive.rpde+json; version=1",
"contentUrl":"https://example.com/api/openactive/events",
"totalItems": 1906
}
],
"backgroundImage":{
"@type":"ImageObject",
"url":"https://cdn.example.com/images/background.jpg"
},
"documentation":"https://developer.openactive.io/",
"accessService":{
"@type":"WebAPI",
"name":"Open Booking API",
"description":"The Open Booking API lets you to book OpenActive Opportunities. The API uses standard schema.org types and is compliant with the JSON-LD specification.",
"documentation":"https://openactive.io/open-booking-api/EditorsDraft",
"termsOfService":"https://example.com/api/booking/documentation/terms-of-service",
"provider": {
"@type": "Organization",
"name":"examplebooking.com",
"description":"examplebooking.com makes it easy to get booking!",
"url":"https://examplebooking.com/home",
"email":"support@examplebooking.com"
},
"endpointUrl":"https://example.com/api/booking/",
"conformsTo":[
"https://www.openactive.io/open-booking-api/2.0/"
],
"endpointDescription":"https://www.openactive.io/open-booking-api/2.0/swagger.json",
"bookingService": {
"@type": "SoftwareApplication",
"name": "nyExampleBookingPlatform",
"softwareVersion": "1.2",
"url": "https://www.example.com/myExampleBookingPlatform",
"featureList": "https://www.example.com"
}
}
}
</script>