set
Sets a property in the interpreter. The general syntax is:
set option [on | off];
Where option
is one of the following:
time
Prints the time a command takes to execute (in seconds). For example:
set time on ;
Command timing on
Command execution time - 0.019 seconds
alias <http://www.w3.org/1999/02/22-rdf-syntax-ns#> as rdfns ;
Successfully aliased http://www.w3.org/1999/02/22-rdf-syntax-ns# as rdfns
Command execution time - 0.0050 seconds
set time off ;
Command timing off
alias <http://www.w3.org/1999/02/22-rdf-syntax-ns#> as rdfns ;
Successfully aliased http://www.w3.org/1999/02/22-rdf-syntax-ns# as rdfnsautocommit
The default setting is
on
. Setting this option off specifies that all subsequent iTQLTM commands that modify the database are isolated in a logical unit of work. That is, modifications are not visible to other iTQL sessions until eitherautocommit
is set back on or acommit
command is performed. For example:set autocommit off ;
insert <ns:subject> <ns:predicate1> 'object' into <rmi://mysite.com/server1#model> ;
insert <ns:subject> <ns:predicate2> 'object2' into <rmi://mysite.com/server1#model> ;
set autocommit on ;
If a session with autocommit
set off
is idle for a period greater than three minutes, and a second session attempts a write, then a rollback of the first session's uncommitted transactions occurs. The first session's next iTQL command then reports an error indicating that the transactions were lost.