com.professorbutts.sports.prediction

Recommended key: '<subject rkey>-<kind>' (finish: '<subject rkey>-finish-<person rkey>'), so a fan has one prediction per subject and kind. Any key is accepted; if several exist, the newest counts.

Details · record, key any
Kindrecord
Record keyany
Authoritysports.professorbutts.com
Commit rev3n2tjdh65jc2j
Indexed

Record

record · key any

Properties

awayScore

integer

score kind.

  • minimum: 0
  • maximum: 999

confidence

integer

Rank within a confidence contest.

  • minimum: 1
  • maximum: 64

contest

string · at-uri

Optional com.professorbutts.sports.contest this counts toward. Without it, the prediction still counts on open leaderboards.

createdAt

requiredstring · datetime

homeScore

integer

score kind.

  • minimum: 0
  • maximum: 999

kind

requiredstring
  • maxLength: 128
  • knownValues: com.professorbutts.sports.prediction#winner | com.professorbutts.sports.prediction#score | com.professorbutts.sports.prediction#total | com.professorbutts.sports.prediction#margin | com.professorbutts.sports.prediction#spread | com.professorbutts.sports.prediction#finish

line

string

The spread or total line predicted against, as a decimal string, e.g. '-3.5' or '47.5'. Integers only in lexicons, so strings carry halves.

  • maxLength: 16

margin

integer

margin kind: winning margin in points, with team as the winner.

  • minimum: 0
  • maximum: 999

overUnder

string

total or spread kind, when predicting against a line instead of an exact number.

  • maxLength: 16
  • knownValues: over | under

person

string · at-uri

com.professorbutts.sports.person record (finish kind, or winner of an individual event).

position

integer

finish kind: predicted finishing position of person. 1 = wins.

  • minimum: 1
  • maximum: 999

subject

requiredstring · at-uri

The com.professorbutts.sports.game or com.professorbutts.sports.leaderboard record.

subjectCid

string · cid

Optional CID of the subject version the fan saw. Game records are rewritten in place, so graders use the uri; this is for display and audit only.

team

string · at-uri

com.professorbutts.sports.team record predicted to win (winner), or to cover (spread).

total

integer

total kind: combined points. Paired with over/under when a line is given.

  • minimum: 0
  • maximum: 1998

updatedAt

string · datetime

#finish

token

Where a person finishes in an event (golf, racing).

#margin

token

Winning team and margin of victory.

#score

token

Exact final score of both teams.

#spread

token

Which team covers a point spread.

#total

token

Combined points, exact or over/under a line.

#winner

token

Which team wins.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • A prediction contest run by an organizer: a bowl pool (predict each listed game) or a tournament bracket. Updated in place as games are set and decided. Players answer with com.professorbutts.sports.prediction records (games format) or one com.professorbutts.sports.bracket record (bracket format) in their own repos.

  • One player's whole bracket for a bracket-format com.professorbutts.sports.contest, kept in the player's own repo: a predicted winner for every slot, later rounds included. Updated in place; a slot's pick only counts if an indexer saw it before that slot locked.

  • A fan's rating of a finished game or event, kept in the fan's own repo. One per fan per event: the record key is the subject's record key, so rating again replaces it. Older records may use a TID key. Together they make a Letterboxd-style game log.

  • A fan saying they're watching (or went to) a game or event, kept in the fan's own repo. One per fan per event: the record key is the subject's record key, so writing again replaces it (update in place to change who they're rooting for). Older records may use a TID key.

  • A single sporting event and its current state. One record per game, updated in place as the game progresses.