Skip to content

dcsr-datumo/BulkImageImportTest

Repository files navigation

Bash script to test a massing bulk import of images into Knora

  1. Clone the project somewhere and move in:
git clone https://github.com/LaDHUL/BulkImageImportTest.git
cd BulkImageImportTest
  1. Have a running Knora stack (http://localhost:3333) containing the anything ontology

  2. Prepare a folder containing all image files

  3. Depending of the image format of your files, if necessary add to the mimetypes file the missing format (file extension:mimetypes)

  4. The test will launch:

  • one bulk import per accepted file (that is, mimetypes managed)
  • a full bulk import of all images

Launch the test:

  • full_path_to_image_folder: full path to the image folders
  • image_xml_path: image full path required in the xml file (depending on your Sipi installation)
./checkImageFolder.sh {full_path_to_image_folder} {image_xml_path} > log &
tail -f log

Print out only errors and warnings:

egrep "ERROR|WARN" log

About

Bash script to test a massing bulk import of images into Knora

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages