Summary and Setup
In the late 1920s and early 1930s, William Dyer, Frank Pabodie, and Valentina Roerich led expeditions to the Pole of Inaccessibility in the South Pacific, and then onward to Antarctica. Two years ago, their expeditions were found in a storage locker at Miskatonic University. We have scanned and OCR the data they contain, and we now want to store that information in a way that will make search and analysis easy.
Three common options for storage are text files, spreadsheets, and databases. Text files are easiest to create, and work well with version control, but then we would have to build search and analysis tools ourselves. Spreadsheets are good for doing simple analyses, but they don’t handle large or complex data sets well. Databases, however, include powerful tools for search and analysis, and can handle large, complex data sets. These lessons will show how to use a database to explore the expeditions’ data.
Prerequisites
- This lesson requires the Unix shell, plus SQLite3 or DB Browser for SQLite.
- Please download the database we will use: survey.db
Software
For this course you will need the UNIX shell (described in the UNIX Shell lesson), plus SQLite3 or DB Browser for SQLite.
If you are running macOS you should already have
SQLite installed. You can run sqlite3 --version
in a
terminal to confirm that it is available. You can also download DB
Browser for SQLite from their
website
If you are running Linux, you may already have
SQLite3 installed, please use the command which sqlite3
to
see the path of the program, otherwise you should be able to get it from
your package manager (on Debian/Ubuntu, you can use the command
apt install sqlite3
).
If you are running Windows, download installers and
run them as administrator. Make sure you select the right installer
version for your system. If the installer asks to add the path to the
environment variables, check yes, otherwise you have to manually add the
path of the executable to the PATH
environmental variables.
This path informs the system where to find the executable program.
If installing SQLite3 using Anaconda, refer to the anaconda sqlite docs.
After the installation and the setting of the paths, close the terminal and reopen a new terminal. This enables paths and configurations to be loaded.
Files
Please download the database we’ll be using: survey.db