Skip to content

XQuery/XSL based utilities to create some static data for the voice-fe.

License

Notifications You must be signed in to change notification settings

acdh-oeaw/voice-xml-utilities-api

Repository files navigation

VOICE XML UTILITIES API

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

Set up a local instance

Prerequisites

  • 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)

Setup

  • unzip BaseX*.zip (for example in your home folder) <basexhome> is the directory containing BaseX.jar and the bin, lib and webapp 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 name voice-clariah-api
  • start a bash in <basexhome>/webapp/voice-clariah-api
  • run ./deployment/initial.sh

Dependencies

The following dependencies are installed for you using ./deployment/initial.sh