Skip to content

Migrants-and-The-State/extracted-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Migrants and the State:
Extracted Data

Here you'll find (meta)data extracted from the M&TS A Files corpus along with useful files and scripts for managing that (meta)data.

E.g.,

Getting started

Prerequisites

You'll need Python, Git, and poetry installed to use the data and run the scripts available in /lib. On mac, we recommend using Homebrew and asdf.

If you already have Homebrew installed:

1. Install asdf:

brew install coreutils curl git gh
brew install asdf

Then follow the instructions for your system to add asdf to your shell's PATH. If you're using ZSH, for example, you'll run:

echo -e "\n. $(brew --prefix asdf)/libexec/asdf.sh" >> ${ZDOTDIR:-~}/.zshrc
source ~/.zshrc

2. Install python via asdf

asdf plugin-add python
asdf plugin-add direnv
asdf direnv setup --shell zsh --version latest # if using ZSH! can replace with bash

3. Install pipx and poetry

brew install pipx
pipx ensurepath 
source ~/.zshrc # if using ZSH! can replace with ~/.bashrc

Using this repo

1. Clone the project repo and set up local python

gh repo clone Migrants-and-The-State/extracted-data && cd extracted-data
adsf install python
poetry install

2. Run the scipts (so far just schema validation!)

poetry run python lib/validate_json_to_schema.py

About

(meta)data extracted from the m&ts a-files corpus

Resources

Stars

Watchers

Forks

Languages