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 40eeaa0504 Folder structure updates. 9 years ago
haskell_modules Folder structure updates. 9 years ago
.gitignore Figuring out sportdb. 9 years ago
Datafile Combining 2014 data and historic data; rebuild and rescrape. 9 years ago
Gemfile Worldcup data pulled. Teams parsed. 9 years ago
Gemfile.lock First swipe at diagramming 2014 data. 9 years ago
games.json Figuring out sportdb. 9 years ago
index.html Refining chord matrices. 9 years ago
package.json Figuring out sportdb. 9 years ago
readme.md Folder structure updates. 9 years ago
rounds.json Figuring out sportdb. 9 years ago
teams.json Re-working teams parsing for updated design. 9 years ago
worldcup.db Combining 2014 data and historic data; rebuild and rescrape. 9 years ago
worldcup.hs Folder structure updates. 9 years ago
worldcup.js Combining 2014 data and historic data; rebuild and rescrape. 9 years ago

readme.md

Data structure

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

    'teams': {
        "67": "Uruguay",
        ...
    },
    'continents': {
        "4": "South America",
        ...
    },
    'events': {
        'world.1930': {
            'games': [...],
            'teams': [...],
            'rounds': {
                "2": "Round of 16",
            },
        },
        ...
}

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.