Recipe 1: replicate the CroALaBib database
What is needed
Procedure
- Install all required software
- Clone the croalabiblio repository from BitBucket:
hg clone https://bitbucket.org/nevenjovanovic/croalabiblio
- Build the database with BaseX, either by adding all files in the repository to a new database, or by using the script create-croalabib.bxs (part of our BitBucket repository with XQueries and other scripts: croalatransform) — modify the address of cloned croalabib directory as needed:
XQUERY db:create("croalabib", "/home/yourusername/croalabiblioclonedir/", (), map { 'ftindex': true(), 'chop': false(), 'intparse' : true() })
- The script is run from the command line by giving the addresses of basex executable and of the .bxs script:
neven@figulus: ./basex/bin/basex -c /home/neven/local-scripts/croalabib-backup.bxs
- Start the BaseX GUI and open the croalabib database
- Or, start the BaseX server (on the command line, from the BaseX directory:
./bin/basexhttp -S
) and go to Database Administration page, at the local URL such as http:localhost:8984/dba