com.professorbutts.sports.league
Record key is the league code used as the first part of every slug, e.g. 'nfl', 'cfb', 'cfb-fcs', 'f1', 'nascar', 'epl'. Lowercase a-z, 0-9 and '-'. Never reused once minted.
Details · record, key any
| Kind | record |
|---|---|
| Record key | any |
| Authority | sports.professorbutts.com |
| Commit rev | 3n2tjcpjza22j |
| Indexed |
Showing version bafyreickyoadytjhsn6arqiv4wkv4kf6i5obz766xtqu3wckg2zu34flb4. Show the latest
Record
record · key anyProperties
ageGroup
stringSame values as team.ageGroup. Leave out for the senior game, e.g. 'under-20' for an under-20 World Cup.
maxLength: 32knownValues: senior | under-23 | under-21 | under-20 | under-19 | under-18
aliases
arrayOther names people use, e.g. 'Premier League', 'EPL'.
maxLength: 16
maxLength: 64
category
stringWhat kind of competition this is, using 2nd Screen's values: 'league' has a season table (a college division such as FCS is a league with a parent), 'tournament' is a single event like a World Cup, 'series' is a season of separate events with their own results (motorsport series, golf tours), 'fixture-group' is a loose set of games like international friendlies.
maxLength: 32knownValues: league | tournament | series | fixture-group
country
stringISO 3166-1 alpha-3, when the league is national.
maxLength: 3
discipline
stringSame values as team.discipline. Leave out for the standard game.
maxLength: 32knownValues: standard | wheelchair | intellectual-disability | physical-disability
externalIds
arraymaxLength: 16
gender
stringmaxLength: 16knownValues: men | women | mixed
level
stringmaxLength: 32knownValues: pro | college | international | minor | amateur
multiSport
booleanTrue exactly when sport is 'multi', e.g. the Olympics.
e.g. 'NCAA Division I FCS Football'.
maxLength: 128
parent
string · at-uriWider league this is part of, e.g. 'cfb-fcs' points at 'cfb'. Teams that move between divisions keep their slug under the parent code.
shortName
stringe.g. 'FCS'.
maxLength: 32
maxLength: 64knownValues: football | basketball | baseball | hockey | soccer | rugby | golf | motorsport | cricket | multi
teamPrefix
stringLeague code used in this league's team slugs, when it differs from the record key, e.g. 'cfb' for 'cfb-fcs'.
maxLength: 32
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
rkey is league-abbreviation lowercase, e.g. nfl-cin, cfb-cin, f1-mclaren
-
app.2ndscreen.league
recordA competition or fixture group with a permanent identity, independent of season editions or official accounts.
-
One entry in the shared slug map: an outside ID, an old slug or a readable slug, pointing at the canonical league, team, person, game or event record. Lets anyone resolve an ID with a single getRecord call, no index needed.
-
A single sporting event and its current state. One record per game, updated in place as the game progresses.