You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Ben Burlingham cc87428e44 Events pane UI work. 10 years ago
Worldcup Bugfix: filtering squad goal counter to games in specific event. 10 years ago
css Events pane UI work. 10 years ago
js Events pane UI work. 10 years ago
res Experimenting with tourney pane. 10 years ago
.gitignore Installed webpack and CSS modules. 10 years ago
Datafile Combining 2014 data and historic data; rebuild and rescrape. 10 years ago
Gemfile Worldcup data pulled. Teams parsed. 10 years ago
Gemfile.lock First swipe at diagramming 2014 data. 10 years ago
index.html Events pane UI work. 10 years ago
package.json Installed webpack and CSS modules. 10 years ago
readme.md Implementing final data structures. 10 years ago
webpack.config.js Directory name change. 10 years ago
worldcup.db Combining 2014 data and historic data; rebuild and rescrape. 10 years ago
worldcup.hs Adding population to team meta. 10 years ago
worldcup.js Combining 2014 data and historic data; rebuild and rescrape. 10 years ago
worldcup.json Bugfix: filtering squad goal counter to games in specific event. 10 years ago

readme.md

Data structure

A single JSON file is downloaded to provide the data set. Its structure is as follows:

{   
    'teams': {
        teamId: teamCountryId,
        ...
    },
    'countries': {
        countryId: { countryContinentId, countryName }
        ...
    },
    'continents': {
        continentId: continentName,
        ...
    },
    'rounds': {
        roundId: roundName,
    },
    'tourneys': {
        eventName: {
            'games': [{ playAt, roundId, team1Id, team2Id, score1, score1et, score1p, score2, score2et, score2p }, ...],
            'teams': [teamId, ...]
        },
        ...    
    }
}

Building the SQLite DB

Run sportdb build in the directory that has Datafile.

Correspondence on the topic can be found at this google groups topic.

Troubleshooting: Using a Gemfile

Sportdb only builds with older versions of ActiveRecord. Use a Gemfile as outlined here to lock the correct version.