com.professorbutts.sports.play
Record key is '<game rkey>-<source play id>', e.g. 'nfl-401772936-401772936101', so a game's plays sit together in key order. Created once per source play and updated only to correct it or set status. A play the source drops keeps its record with a status, so posts that link to it keep resolving.
Details · record, key any
| Kind | record |
|---|---|
| Record key | any |
| Authority | sports.professorbutts.com |
| Commit rev | 3n2tjd4qui22j |
| Indexed |
Record
record · key anyProperties
abbreviation
stringScoring side's abbreviation, e.g. 'CIN'.
maxLength: 8
awayScore
integerAway score after the play.
minimum: 0
clock
stringGame clock or match minute as shown, e.g. '4:12' or "67'".
maxLength: 16
externalIds
arrayThe play's ID at the source, e.g. {scheme: 'espn', value: '401772936101'}.
maxLength: 4
The com.professorbutts.sports.game record.
homeScore
integerHome score after the play.
minimum: 0
What happened. Only scoring plays ('score') for now.
maxLength: 32knownValues: score
occurredAt
string · datetimeWall-clock time of the play, when the source gives it.
participants
arrayperiod
refPeriod of the play, as on the game record, e.g. {number: 5, label: 'OT'}, {number: 7, label: 'Top 7th'}.
points
integerPoints this play added, including a kick or conversion the source reports with it (7 for a touchdown plus kick).
minimum: 0
replacedBy
string · at-uriThe play record that replaces this one, when the source re-entered the play under a new ID.
scoreType
stringKind of score, e.g. 'touchdown', 'goal', 'home-run'. 'penalty-goal' covers soccer penalties and rugby penalty kicks.
maxLength: 64knownValues: touchdown | field-goal | safety | extra-point | two-point | defensive-two-point | goal | own-goal | penalty-goal | try | penalty-try | conversion | drop-goal | run | home-run
scoringSide
stringWhich side the points count for. Set it even when there's no team record.
maxLength: 8knownValues: home | away
sequence
integerSort order among this game's plays. Gaps are fine; not renumbered when a play is removed.
minimum: 0
source
stringWhere the data came from, e.g. 'espn'.
maxLength: 64
status
stringLeave out for a play that stands. 'overturned': reversed by the officials. 'removed': the source dropped or replaced it for another or unknown reason (see replacedBy). Readers treat any value, including ones they don't know, as a play that doesn't count.
maxLength: 32knownValues: overturned | removed
team
string · at-uricom.professorbutts.sports.team record of the side the points count for (for an own goal, the team that benefits).
text
stringThe play as the source describes it.
maxLength: 3000maxGraphemes: 300
updatedAt
string · datetime#participant
objectSimilar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
A single sporting event and its current state. One record per game, updated in place as the game progresses.
-
Shared types for com.professorbutts.sports records and the post-side scoreboard field.
-
One fan's prediction about one game or event, kept in their own repo: who wins, the final score, the combined total, the margin, the winner against a spread, or a finishing position (golf, racing). One record per subject per kind (finish: per person). Counts only if an indexer saw it before the subject starts; graded when final.
-
Reusable definitions for complete Rocket League matches observed by the Postmatch live collector.