Open nickevansuk opened 5 years ago
The below JSON-LD snippet is an example of the output from the current "early release" OpenActive tooling, for reference:
{ "@context": [ "https://schema.org/", "https://openactive.io/" ], "@type": "Dataset", "@id": "https://example.bookingsystem.com/openactive/", "name": "Better Sessions and Facilities", "description": "Near real-time availability and rich descriptions relating to the sessions and facilities available from Better", "accessService": { "@type": "WebAPI", "name": "Open Booking API", "description": "API that allows for seamless booking experiences to be created for sessions and facilities available from Better", "conformsTo": [ "https://www.openactive.io/open-booking-api/EditorsDraft/" ], "documentation": "https://developer.openactive.io/go/open-booking-api", "endpointDescription": "https://www.openactive.io/open-booking-api/EditorsDraft/swagger.json", "endpointUrl": "https://example.bookingsystem.com/api/openbooking/", "url": "https://exampleforms.com/get-me-an-api-access-key", "termsOfService": "https://example.bookingsystem.com/terms" }, "backgroundImage": { "@type": "ImageObject", "url": "https://data.better.org.uk/images/bg.jpg" }, "bookingService": { "@type": "BookingService", "name": "AcmeBooker", "softwareVersion": "2.0", "url": "https://acmebooker.example.com/", "hasCredential": "https://openactive.io/openactive-test-suite/example-output/controlled/certification/" }, "dateModified": "2020-04-23T14:48:13+01:00", "datePublished": "2019-01-14T00:00:00+00:00", "discussionUrl": "https://github.com/gll-better/opendata", "distribution": [ { "@type": "DataDownload", "name": "ScheduledSession", "additionalType": "https://openactive.io/ScheduledSession", "contentUrl": "https://example.bookingsystem.com/feeds/scheduled-sessions", "encodingFormat": "application/vnd.openactive.rpde+json; version=1", "identifier": "ScheduledSession" }, { "@type": "DataDownload", "name": "SessionSeries", "additionalType": "https://openactive.io/SessionSeries", "contentUrl": "https://example.bookingsystem.com/feeds/session-series", "encodingFormat": "application/vnd.openactive.rpde+json; version=1", "identifier": "SessionSeries" }, { "@type": "DataDownload", "name": "FacilityUse", "additionalType": "https://openactive.io/FacilityUse", "contentUrl": "https://example.bookingsystem.com/feeds/facility-uses", "encodingFormat": "application/vnd.openactive.rpde+json; version=1", "identifier": "FacilityUse" }, { "@type": "DataDownload", "name": "Slot for FacilityUse", "additionalType": "https://openactive.io/Slot", "contentUrl": "https://example.bookingsystem.com/feeds/facility-use-slots", "encodingFormat": "application/vnd.openactive.rpde+json; version=1", "identifier": "FacilityUseSlot" } ], "documentation": "https://docs.acmebooker.example.com/", "inLanguage": [ "en-GB" ], "keywords": [ "Sessions", "Facilities", "Activities", "Sports", "Physical Activity", "OpenActive" ], "license": "https://creativecommons.org/licenses/by/4.0/", "publisher": { "@type": "Organization", "name": "Better", "description": "Established in 1993, GLL is the largest UK-based charitable social enterprise delivering leisure, health and community services. Under the consumer facing brand Better, we operate 258 public Sports and Leisure facilities, 88 libraries, 10 children’s centres and 5 adventure playgrounds in partnership with 50 local councils, public agencies and sporting organisations. Better leisure facilities enjoy 46 million visitors a year and have more than 650,000 members.", "email": "info@better.org.uk", "legalName": "GLL", "logo": { "@type": "ImageObject", "url": "http://data.better.org.uk/images/logo.png" }, "url": "https://www.better.org.uk/" }, "schemaVersion": "https://www.openactive.io/modelling-opportunity-data/2.0/", "url": "https://example.bookingsystem.com/openactive/" }
The below JSON-LD snippet is an example of the output from the current "early release" OpenActive tooling, for reference: