Last active
May 2, 2018 18:52
-
-
Save ldodds/a40e20442c9842254bc2327f01110c9a to your computer and use it in GitHub Desktop.
OpenActive opportunity model examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "@context": "https://www.openactive.io/ns/oa.jsonld", | |
| "type": "Event", | |
| "name": "Tai chi Class", | |
| "description": "A tutored beginner's class that will involve demonstrates and a set of warm-up activities. Everyone welcome", | |
| "id": "http://api.example.org/events/1", | |
| "url": "http://www.example.org/events/1", | |
| "startDate": "2017-03-22T20:00:00Z", | |
| "endDate": "2017-03-22T21:00:00Z", | |
| "duration": "PT60M", | |
| "activity": ["Tai Chi"], | |
| "location": { | |
| "type": "Place", | |
| "name": "ExampleCo Gym", | |
| "address": { | |
| "type": "PostalAddress", | |
| "streetAddress": "1 High Street", | |
| "addressLocality": "Bristol", | |
| "addressCountry": "GB", | |
| "postalCode": "BS1 4SD" | |
| }, | |
| "geo": { | |
| "type": "GeoCoordinates", | |
| "latitude": 51.3816123, | |
| "longitude": -2.3544367 | |
| }, | |
| "telephone": "+44 (0)1225 486905", | |
| "faxNumber": "+44 (0)1225 486906", | |
| "openingHoursSpecification": [ | |
| { | |
| "type": "OpeningHoursSpecification", | |
| "closes": "17:00:00", | |
| "dayOfWeek": "http://schema.org/Sunday", | |
| "opens": "09:00:00" | |
| }, | |
| { | |
| "type": "OpeningHoursSpecification", | |
| "closes": "17:00:00" , | |
| "dayOfWeek": "http://schema.org/Saturday", | |
| "opens": "09:00:00" | |
| }, | |
| { | |
| "type": "OpeningHoursSpecification", | |
| "closes": "17:00:00", | |
| "dayOfWeek": "http://schema.org/Thursday", | |
| "opens": "09:00:00" | |
| }, | |
| { | |
| "type": "OpeningHoursSpecification", | |
| "closes": "17:00:00", | |
| "dayOfWeek": "http://schema.org/Tuesday", | |
| "opens": "09:00:00" | |
| }, | |
| { | |
| "type": "OpeningHoursSpecification", | |
| "closes": "17:00:00", | |
| "dayOfWeek": "http://schema.org/Friday", | |
| "opens": "09:00:00" | |
| }, | |
| { | |
| "type": "OpeningHoursSpecification", | |
| "closes": "17:00:00", | |
| "dayOfWeek": "http://schema.org/Monday", | |
| "opens": "09:00:00" | |
| }, | |
| { | |
| "type": "OpeningHoursSpecification", | |
| "closes": "17:00:00", | |
| "dayOfWeek": "http://schema.org/Wednesday", | |
| "opens": "09:00:00" | |
| } | |
| ], | |
| "amenityFeature": [ | |
| { | |
| "type": "Lockers", | |
| "name": "Free Lockers", | |
| "description": "Lockers are freely available on a first come, first served basis", | |
| "value": true | |
| }, | |
| { | |
| "type": "ChangingRooms", | |
| "value": true | |
| }, | |
| { | |
| "type": "Parking", | |
| "description": "We have limited parking spaces", | |
| "value": true | |
| }, | |
| { | |
| "type": "Showers", | |
| "value": false | |
| } | |
| ], | |
| "containsPlace": { | |
| "type": "SportsActivityLocation", | |
| "url": "http://www.better.org.uk/leisure-centre/banes/bath-sports-and-leisure-centre/gym", | |
| "name": "Gym" | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "@context": "https://www.openactive.io/ns/oa.jsonld", | |
| "type": "Event", | |
| "name": "Tai chi Class", | |
| "description": "A tutored beginner's class that will involve demonstrates and a set of warm-up activities. Everyone welcome", | |
| "id": "http://api.example.org/events/1", | |
| "url": "http://www.example.org/events/1", | |
| "startDate": "2017-03-22T20:00:00Z", | |
| "endDate": "2017-03-22T21:00:00Z", | |
| "duration": "PT60M", | |
| "activity": ["Tai Chi", "Martial Arts"], | |
| "location": { | |
| "type": "Place", | |
| "name": "ExampleCo Gym", | |
| "address": { | |
| "type": "PostalAddress", | |
| "streetAddress": "1 High Street", | |
| "addressLocality": "Bristol", | |
| "addressCountry": "GB", | |
| "postalCode": "BS1 4SD" | |
| } | |
| }, | |
| "eventStatus": "http://schema.org/EventScheduled", | |
| "maximumAttendeeCapacity": 20, | |
| "remainingAttendeeCapacity": 4, | |
| "offer": [ | |
| { | |
| "type": "Offer", | |
| "name": "Single session", | |
| "price": "5.00", | |
| "priceCurrency": "GBP", | |
| "acceptedPaymentMethod": ["http://purl.org/goodrelations/v1#Cash"] | |
| } | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "@context": "https://www.openactive.io/ns/oa.jsonld", | |
| "type": "Event", | |
| "name": "Tai chi Class", | |
| "description": "A tutored beginner's class that will involve demonstrates and a set of warm-up activities. Everyone welcome", | |
| "id": "http://api.example.org/events/1", | |
| "url": "http://www.example.org/events/1", | |
| "startDate": "2017-03-22T20:00:00Z", | |
| "endDate": "2017-03-22T21:00:00Z", | |
| "duration": "PT60M", | |
| "activity": ["Tai Chi"], | |
| "location": { | |
| "type": "Place", | |
| "name": "ExampleCo Gym", | |
| "address": { | |
| "type": "PostalAddress", | |
| "streetAddress": "1 High Street", | |
| "addressLocality": "Bristol", | |
| "addressCountry": "GB", | |
| "postalCode": "BS1 4SD" | |
| } | |
| }, | |
| "organizer": { | |
| "type": "Organization", | |
| "url": "http://example.org/clubs/1", | |
| "name": "Bath Tai Chi Club" | |
| }, | |
| "isCoached": true, | |
| "leader": { | |
| "type": "Person", | |
| "name": "Jane Smith", | |
| "description": "Experienced Tai chi instructor with 12 years of experience" | |
| }, | |
| "contributor": { | |
| "type": "Person", | |
| "name": "John Smith", | |
| "description": "Experienced Tai chi instructor with 5 years of experience" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "@context": "https://www.openactive.io/ns/oa.jsonld", | |
| "type": "Event", | |
| "url": "http://www.example.org/events/1", | |
| "name": "Tai chi Class", | |
| "description": "A tai chi class intended for beginners", | |
| "duration": "PT60M", | |
| "eventSchedule": { | |
| "type": "Schedule", | |
| "startDate": "2017-01-01", | |
| "endDate": "2017-12-31", | |
| "repeatFrequency": "P1W", | |
| "byDay": "http://schema.org/Wednesday", | |
| "startTime": "19:00Z", | |
| "endTime": "20:00Z" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "@context": "https://www.openactive.io/ns/oa.jsonld", | |
| "type": "Event", | |
| "name": "Tai chi Class", | |
| "description": "A tutored beginner's class that will involve demonstrates and a set of warm-up activities. Everyone welcome", | |
| "id": "http://api.example.org/events/1", | |
| "url": "http://www.example.org/events/1", | |
| "image": ["https://example.org/images/tai-chi.jpg"], | |
| "startDate": "2017-03-22T20:00:00Z", | |
| "endDate": "2017-03-22T21:00:00Z", | |
| "duration": "PT60M", | |
| "activity": ["Tai Chi", "Martial Arts"], | |
| "location": { | |
| "type": "Place", | |
| "name": "ExampleCo Gym", | |
| "address": { | |
| "type": "PostalAddress", | |
| "streetAddress": "1 High Street", | |
| "addressLocality": "Bristol", | |
| "addressCountry": "GB", | |
| "postalCode": "BS1 4SD" | |
| } | |
| }, | |
| "category": ["Low intensity"], | |
| "ageRange": { | |
| "type": "QuantifiedValue", | |
| "minValue": 60 | |
| }, | |
| "genderRestriction": "https://www.openactive.io/ns#Mixed", | |
| "level": ["Beginner"], | |
| "accessibilitySupport": ["Hearing Impairment", "Visual Impairment"], | |
| "accessibilityInformation": "The location is fully accessible, please contact the organiser if you have questions", | |
| "attendeeInstructions": "Please remember to bring a water bottle or drink with you as we have no facilities on site", | |
| "meetingPoint": "We are in the sports hall to the right as you enter the Reception area" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment