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 rdfns
autocommit 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 either autocommit is set back on or a commit 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.
|
|
|
© 2001-2004 Tucana Technologies, Inc. Some rights reserved. © 2006 The Mulgara Project. Some rights reserved. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".
|