An API that generates data in JSON format from the VOICE CLARIAH data repository. This is used in the VOICE 3.0 Online frontend to supply static data about the corpus. This is mostly used to recalculate XML tag counts and to generate th data stored in corpustree.json of the VOICE Frontend repository. Fetch corpustree.json from a running instance at http://localhost:8984/VOICE_CLARIAH/corpus/tree
- Java LTS (Oracle, Azul, or others) (11 at the moment)
- git (for Windows, shipped with other OSes)
- curl for downloading Saxon HE (10.3 at the moment, curl is included with git for windows)
- This git repository needs to be cloned inside a BaseX ZIP-file distribution (9.5 at the moment)
- unzip BaseX*.zip (for example in your home folder)
<basexhome>
is the directory containingBaseX.jar
and thebin
,lib
andwebapp
directory (basex
after unpacking the BaseX*.zip file, but you should probably rename it) - in
<basexhome>/webapp
git clone this repository, please do not change the namevoice-clariah-api
- start a bash in
<basexhome>/webapp/voice-clariah-api
- run
./deployment/initial.sh
The following dependencies are installed for you using ./deployment/initial.sh
- Saxon XSLT 2/3 HE processor
- openapi4restxq for BaseX
- voice data (privat! fix that!)