Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classfinder #113

Closed
nickevansuk opened this issue Mar 20, 2018 · 0 comments
Closed

Classfinder #113

nickevansuk opened this issue Mar 20, 2018 · 0 comments
Labels
example Example JSON from an implementation

Comments

@nickevansuk
Copy link
Contributor

nickevansuk commented Mar 20, 2018

Have included comments below to highlight feedback

{
  "items":[
    {
      "state":"updated",
      "kind":"event", /* should be event */
      "id":"eNortjKzUko2MzWyNFayBlwwFyoDCQ~~",
      "modified":1521218426,
      "data":{
        "@context":[
          "https://www.openactive.io/ns/oa.jsonld",
          "https://www.openactive.io/ns-beta/oa.jsonld"
        ],
        "type":"Event",
        "identifier":"eventType-eNortjKzUko2MzWyNFayBlwwFyoDCQ~~",
        "name":"Basic Pilates",
        "description":"A simple introduction to pilates",
        "activity": /* should be activity instead of categories  */
        {
          "id": "http://openactive.io/activity-list/#3a6b1c08-7aa6-48d4-9690-dca9e0133057", /* use ID as part of this string */
          "type": "Concept",
          "prefLabel": "Zumba", /* name of activity */
          "inScheme": "https://www.openactive.io/activity-list/activity-list.jsonld"
        },
        "eventSchedule":{
          "type":"Schedule",
          "startDate":"2018-03-16",
          "endDate":"2018-06-16", /* include endDate - schedule currently allows for infinite recurrence. We'd advise against this as data users will likely ignore the schedule after a certain period of time (e.g. it's unlikely that an infinitely occurring session set up 24 months ago is still happening now, with all the same details). Suggest placing a limit on the recurrence, or only allowing recurrence when the spaces are bookable (and so are more likely to be live). */ 
          "frequency":"weekly",
          "byDay":[
            "http://schema.org/Friday"
          ],
          "startTime":"18:00Z", /* time in UTC with timezone marker 'Z' */
          "endTime":"19:00Z" /* time in UTC with timezone marker 'Z' */
        },
        "organizer":{
          "type":"Organization",
          "identifier":"organization-eNortjK1Usq0NDY0VLIGXDAUJALT",
          "name":"John Smith",
          "url":"",
          "telephone":"01323123412"
        },
        "leader":[
          {
            "type":"Person",
            "name":"John Smith",
            "email":"john.smith@realnet.co.uk",
            "telephone":"01323123412",
            "url":"",
            "gender": "http://schema.org/Male", /* use enum URI instead of just "Male" */
          }
        ],
        "location":{
          "type":"Place",
          "identifier":"location-eNortjKzUiozMjA1N1OyBlwwF5gDFw~~",
          "name":"Realnet Ltd",
          "address":{
            "type":"PostalAddress",
            "streetAddress":"The Studio, High Green, Great Shelford",
            "addressLocality":"Cambridge",
            "addressRegion":"Cambridgeshire", /* should be addressRegion instead of region */
            "postalCode":"CB22 5EG"
            "addressCountry": "GB", /* always GB for UK */
          },
          "geo":{
            "type":"GeoCoordinates",
            "latitude":52.1512333,
            "longitude":0.1361495
          },
          "amenityFeature":[
            {
              "name":"Changing Facilities",
              "value":true,
              "type":"ChangingFacilities"
            },
            {
              "name":"Showers",
              "value":false,
              "type":"Showers"
            },
            {
              "name":"Lockers",
              "value":true,
              "type":"Lockers"
            },
            {
              "name":"Towels",
              "value":false,
              "type":"Towels"
            },
            {
              "name":"Creche",
              "value":false,
              "type":"Creche"
            },
            {
              "name":"Parking",
              "value":true,
              "type":"Parking"
            }
          ]
        },
        "level":"beginner",
        "ageRange": { 
           "type": "QuantifiedValue", /* should include a type as per https://github.com/openactive/modelling-opportunity-data/issues/68 */
           "minValue": 16, /* should be 'minValue', and min <= max */
           "maxValue": 99 /* should be 'maxValue' */
        },
        "maximumAttendeeCapacity":10,
        "beta:specialRequirements": ["Back Care", "Chair Based", "Men's Only"], /* this should be an array of values, as they are filterable */
        "accessibilitySupport": ["Visual impairment", "Hearing impairment", "Physical impairment"], /* this should be an array of values, as they are filterable */
        "accessibilityInformation":"",
        "beta:accessibilityWheelchairAccess": false, /* should be boolean */
        "genderRestriction": "http://openactive.io/ns#Male", /* or "http://openactive.io/ns#Female" or "http://openactive.io/ns#None", note these are specific for genderRestriction, so different from leader gender */
        "attendeeInstructions": "" /* should combine clothing and equipment, see spreadsheet */

        "offers":[
          {
            "name":"Single session",
            "price":"10.00",
            "priceCurrency":"GBP",
            "acceptedPaymentMethod":"Cash",  /* This should be a string from http://schema.org/PaymentMethod such as "http://purl.org/goodrelations/v1#Cash" or "http://purl.org/goodrelations/v1#PaymentMethodCreditCard" not just "Cash" */
            "eligibleCustomerType": "http://openactive.io/ns#Member", /* use instead of beta:membershipRequirement */
          }
        ]
      }
    }
  ],
  "license":"https://creativecommons.org/licenses/by/4.0/",
  "next":"http://classfinder.realnet2000.co.uk/api/private/classes?afterId=eNortjKzUko2MzWyNFayBlwwFyoDCQ~~&afterTimestamp=1521218426"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
example Example JSON from an implementation
Projects
None yet
Development

No branches or pull requests

1 participant