Ambra TQL Interpreter
See Also: http://docs.mulgara.org/itqlcommands/
Starting
There are two ways to run this - via tools rpm or via maven from source tree.
- tools rpm script: /usr/local/topaz/bin/run-tql
- maven: cd head/ambra/scripts; mvn -o -Prun-tql -Dargs="...."
Of course, you must have mulgara running. There are two ways to do this too - in production/staging or via maven.
- production: add -Mhost:port to indicate where mulgara is running
- maven: cd head; mvn ant-tasks:mulgara-start
- This assumes mvn ant-tasks:mulgara-install was run at least once
- mulgara-start recreates the database everytime unless -Dtopaz.mulgara.databaseDir=<dir> is specified
Init File
run-tql will look for any startup commands in ~/.runtql. Following are recommended:
%mode = "table reduce quote" .alias set a http:///www.w3.org/2000/10/annotation-ns#
Notes
- Please use ".help"
- It has minimal readline support via jline (a pure-java readline library). It is probably missing things you're used too, but it still makes
many things easier.
- history is stored per semicolon terminated itql command, not per line
- lines that start with ".", "%" and "#" are special. See .help
