Skip to content

open-oni/sample-data

Repository files navigation

Open ONI Sample Data

Small batches that can be used in development installations of Open ONI... and other miscellaneous files.

Note that batch_mnhi_german_ver01 now has emoji in the OCR XML of its first page, which requires ONI with UTF8 database fix: open-oni/open-oni#612

If one needs to test without emoji in the sample batches, check out the last commit before the emoji were added:

git checkout 67124a2

Loading a Batch

This repository is intended to be used with the Open ONI repository. The batches included in this repository are valid enough that they can be loaded into the software. However, they are neither complete nor polished batches.

Clone the repository. Then, copy or move batches to your Open ONI data/batches/ directory.

Follow these commands to load the sample data into Open ONI (assuming it lives in /opt/openoni for a non-Docker deployment):

cd /opt/openoni
. /ENV/bin/activate
./manage.py load_batch data/batches/batch_dlc_manyyears_ver01
./manage.py load_batch data/batches/batch_mnhi_german_ver01
./manage.py load_batch data/batches/batch_nbu_manyissues_ver01

For a Docker environment, run these commands:

docker compose up -d
docker compose exec web /load_batch.sh batch_dlc_manyyears_ver01
docker compose exec web /load_batch.sh batch_mnhi_german_ver01
docker compose exec web /load_batch.sh batch_nbu_manyissues_ver01

See the Docker Command Quick Reference for more help with Docker environment commands.

Batch Description

Name Description Language Source
dlc_manyyears 1 issue and page from 15 different years English dlc_leonberger and dlc_ixtl
mnhi_german 1 issue of 8 pages German mnhi_uhaul
nbu_manyissues 9 issues of 1 page English nbu_chadron

Docker Troubleshooting

If the Docker environment is giving you lots of trouble, you may want to erase your environment and start fresh

About

Sample data for use with Open ONI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published