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

League proposal #4

Closed
philjackson opened this issue Mar 5, 2018 · 0 comments
Closed

League proposal #4

philjackson opened this issue Mar 5, 2018 · 0 comments

Comments

@philjackson
Copy link

philjackson commented Mar 5, 2018

I've put together a quick proposal for representation of a season/league. This will eventually also encapsulate the next event (fixture?) within the league.

Here's the original feed.

Some notes:

  • Not sure about LeagueClass or LeagueType - made beta for now.
  • Deposit - created a beta field as I can't find a close enough equivalent in the current schemas.
  • LeagueTeamCount = beta:maximumTeamCapacity
  • LeagueTeamsRegistered = beta:remainingTeamCapacity
  • I've removed beta:leagueType as it's possibly superflous? Please let me know if I'm wrong!
  • VersionId deleted for now, not sure what exactly is being versioned.
  • FriendlyStartDate removed as it's derivable from startDate.
  • The booleans "AllowIndividualRegistration" and "AllowTeamRegistration" - can be represented through the ommitance of their respective offers.
{
  "next": "https://reports.gomammoth.co.uk/api/OpenData/Leagues?afterTimestamp=3651500828&afterId=NNN",
  "items": [
    {
      "state": "updated",
      "kind": "league",
      "identifier": "40_102",
      "modified": 3447138212,

      "data": {
        "@context": "https://www.openactive.io/ns/oa.jsonld",
        "identifier": 40,
        "type": "EventSeries",

        "superEvent": {
          "type": "Event",
          "identifier": 102,
          "name": "Summer Season 2017",
          "startDate":  "2017-06-27T00:00:00Z",
          "endDate": "2017-08-29T00:00:00Z"
        },

        "eventSchedule": {
          "type": "Schedule",
          "startDate":  "2017-06-27T00:00:00Z",
          "frequency": "weekly",
          "byDay": "http://schema.org/Tuesday",
          "startTime": "19:00",
          "endTime": "21:00"
        },

        "name": "Netball - Ladies (Battersea Park - Tues - Rec)",
        "level": "Recreational (Rec)",

        "offers": [
          {
            "type": "Offer",
            "name": "Individual registration",
            "url": "https://www.gomammoth.co.uk/individual-checkout/?leagueid=40",
            "description": "Single class.",
            "price": "65",
            "priceCurrency": "GBP",
            "beta:deposit": {
              "type": "MonetaryAmount",
              "amount": "0",
              "currency": "GBP"
            }
          },
          {
            "type": "Offer",
            "name": "Team registration",
            "url": "https://www.gomammoth.co.uk/teams-checkout/?leagueid=40",
            "description": "Full team registration.",
            "price": "450",
            "priceCurrency": "GBP",
            "beta:deposit": {
              "type": "MonetaryAmount",
              "amount": "0",
              "currency": "GBP"
            }
          }
        ],

        "beta:maximumTeamCapacity": 14,
        "beta:remainingTeamCapacity": 6,

        "description": "Tuesday - Ladies - Recreational",
        "genderRestriction": "http://schema.org/Female",

        "gomammoth:isClinic": false,

        "location": {
          "type": "Place",
          "identifier": 18,
          "name": "Battersea Park",
          "description": "A more detailed description of the location.",
          "hasMap":  "https://www.google.co.uk/maps/place/Millennium+Arena/@51.4810847,-0.1515177,21z/data=!4m2!3m1!1s0x4876050595ea62f3:0x30b0ae2a271b6275",
          "address": {
            "type": "PostalAddress",
            "streetAddress": "Battersea Park Millenium Arena, Albert Bridge Rd ",
            "addressRegion": "London",
            "postalCode": "SW114NJ",
            "descrition": "Exit Battersea Park or Queens Road...",
            "image": "https://www.gomammoth.co.uk/wp-content/uploads/venue-images/netball/battersea-park/gomammoth-netball-battersea-park.jpg",
          },
          "geo": {
            "type": "GeoCoordinates",
            "identifier": 4326,
            "latitude": 51.4810847,
            "longitude": -0.1515177
          }
        },

        "activity": {
          "id": "https://www.openactive.io/activity-list/#fbdc35a8-3dd0-40ee-a7ca-6ff40b3e5f90",
          "type": "Concept",
          "notation": 1,
          "prefLabel": "Netball"
        }
      }
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}
@philjackson philjackson changed the title League proposal (sans substitute) League proposal Mar 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant