This is the eXist-db application for presenting the Thesaurus Linguae Sinicae (TLS) -an Historical and Comparative Encyclopaedia of Chinese Conceptual Schemes on the Web.
Editors:
- General: Christoph Harbsmeier 何莫邪
- Associate: Jiang Shaoyu 蔣紹愚
- exist-db version:
3.6.1
or greater - [tls-data] version:
0.8.0
- [tls-texts] version:
0.7.0
- ant version:
1.10.5
(for building from source)
Note: The data repositories are currently private. We plan to make them public in due time.
-
Download, fork or clone this GitHub repository, e.g:
git clone https://github.com/tls-kr/tls-data.git
-
Navigate to the repository you just cloned, and call
ant
:cd tls-app ant
You should see
BUILD SUCCESSFUL
, and two.xar
files inside thebuild/
folder.- There are two default build targets in
build.xml
:dev
includes all files, and unoptmized frontend dependencies. For development work.prod
is the official release. It only contains optimized files for the production server.
- There are two default build targets in
-
Open the dashboard of your exist-db instance and click on
package manager
.- Click on the
add package
symbol in the upper left corner and select one of the two.xar
files you just created.
- Click on the
As noted under requirements above. The full TLS app depends on two further data packages:
- tls-data: The lexical part of the database, including attributions and translations,
- tls-texts: The source texts.
The app in in this repository will attempt to download and install these apps when following the installation procedure. If for any reasons the data-apps are unavailable, the installation process will be aborted. You can find out more about the contents of the data packages by following the links above.
A xquery script 'stat.xql' in modules can be used to create a report of the content of the database. It can be executed with a cron job, to automate this action. For this to work, the following has to be added to the exist conf.xml file:
<job type="user" xquery="/db/apps/tls-app/modules/stat.xql" cron-trigger="0 5 0/12 * * ?"> </job>
This will execute the module five minutes past noon and midnight. It will be executed with the "guest" user identity, so the permission bits here have to be set to "setuid" and "execute".