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
Kindrecord
Record keyany
Authoritysports.professorbutts.com
Commit rev3n2tjd4qui22j
Indexed

Record

record · key any

Properties

Scoring side's abbreviation, e.g. 'CIN'.

  • maxLength: 8

awayScore

integer

Away score after the play.

  • minimum: 0

clock

string

Game clock or match minute as shown, e.g. '4:12' or "67'".

  • maxLength: 16

createdAt

requiredstring · datetime

The play's ID at the source, e.g. {scheme: 'espn', value: '401772936101'}.

  • maxLength: 4

game

requiredstring · at-uri

The com.professorbutts.sports.game record.

homeScore

integer

Home score after the play.

  • minimum: 0

kind

requiredstring

What happened. Only scoring plays ('score') for now.

  • maxLength: 32
  • knownValues: score

occurredAt

string · datetime

Wall-clock time of the play, when the source gives it.

Players credited, scorer first.

  • maxLength: 6
itemsref
Reference

Period of the play, as on the game record, e.g. {number: 5, label: 'OT'}, {number: 7, label: 'Top 7th'}.

points

integer

Points this play added, including a kick or conversion the source reports with it (7 for a touchdown plus kick).

  • minimum: 0

replacedBy

string · at-uri

The play record that replaces this one, when the source re-entered the play under a new ID.

scoreType

string

Kind of score, e.g. 'touchdown', 'goal', 'home-run'. 'penalty-goal' covers soccer penalties and rugby penalty kicks.

  • maxLength: 64
  • knownValues: 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

Which side the points count for. Set it even when there's no team record.

  • maxLength: 8
  • knownValues: home | away

sequence

integer

Sort order among this game's plays. Gaps are fine; not renumbered when a play is removed.

  • minimum: 0

source

string

Where the data came from, e.g. 'espn'.

  • maxLength: 64

status

string

Leave 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: 32
  • knownValues: overturned | removed

team

string · at-uri

com.professorbutts.sports.team record of the side the points count for (for an own goal, the team that benefits).

text

string

The play as the source describes it.

  • maxLength: 3000
  • maxGraphemes: 300

updatedAt

string · datetime

#participant

object

Properties

name

requiredstring
  • maxLength: 128

personRef

string · at-uri

com.professorbutts.sports.person record.

role

string
  • maxLength: 32
  • knownValues: scorer | assist | passer | kicker

Similar lexicons

semantic match

Lexicons 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.