Utilities and visualizations for CDLI accounting corpora. Included are an API for retrieving information about numerals and counted objects, and a web interface which allows for exploratory visualization of this data.
By default, this project runs as part of the CDLI framework. See the next section for standalone installation instructions.
inscriptions
and artifact_languages
tables.framework/dev/config.json.dist
:
"commodity-viz": {
"is_default" : false,
"enabled": true, /* set this to true */
"scale" : 1
},
"commodity-api": {
"is_default" : false,
"enabled": true, /* set this to true */
"scale" : 1
}
cdlidev.py
. If this is the first time you are running the project, this should build two docker containers.
cd framework/dev
./cdlidev.py up
If the containers do not (re)build automatically, force them with
./cdlidev up --build
(Optional)
commodity-api
image already contains a static copy of all of the commodity data extracted from the CDLI's Sumerian corpora. To manually update this data, launch the container and run
python3 generate.py
Ensure that the framework's mariadb
container is running at the same time, as this script requires database access.
docker-compose build
docker run --publish 8087:8088 --detach cdli-accounting-viz_viz-api
docker run --publish 4001:80 --detach cdli-accounting-viz_viz-site
Available here.
When the application is running, access the documentation at http://127.0.0.1:8087/docs/