MOMIS (short) How
To
How perform the MOMIS common operations.
Setting environment
variables
This command set your shell environment for compiling and executing
MOMIS modules:
in the dir $dmt type
source 0setVars
Moreover if you want to use the Query Manager, you have to set this
variable
source ~db2inst1/sqllib/db2cshrc
done.
Eventually Start MOMIS
Servers
YOU SOULD NOT USE THIS
COMMAND, usually server process are ever running as
corni processes. |
MOMIS to run require to start some Server process like the
MomisFactory, OdbTools and Wordnet
servers.
To start such servers (and a few dummy
wrappers), in the dir $djp type.
startMomis start
To stop such servers, in the dir
$djp type
startMomis stop
To start bridge Rmijdbc (as zanni!)
java RmiJdbc.RJJdbcServer COM.ibm.db2.jdbc.app.DB2Driver
HowTo run SI-Designer
prerequisites:
- MOMIS servers must be running
- Environment variables must be setted
- At least one wrapper is runnig to import a source to
integrate
To run the SI-Designer GUI, in the dir
$dmt type:
var/siDesigner.sh
To start SI-Designer using a saved status use the command
var/siDesigner.sh -l statusFile.mms
var/siDesigner.sh -x statusFile.xml
HowTo Start a wrapper
It depends from the wrapper.
See the wrapper documentation or (and only after) ask to the
wrapper developer.
HowTo Start the ODLi3
parser
Given a file containing a ODLi3 description the following
instruction will run the parser on such file. The parser will create
a tree of ODLi3 data structures that represents the information
containd in the given file.
# Goto in the developement dir
cd $dmt
# sets the environment variables
source $dmt
var/parser.sh
Far girare MOMIS in
Linux
On Tue, 23 Jan 2001, megadave wrote:
> Pensi sia possibile fare girare il prototipo sotto linux in modo che
> funzioni
> esattamente come su solaris?
>
> Quale shell devo usare per eseguire gli script di MOMIS, ho provato la
> csh ma con scarsi risultati...?
> A quali aspetti devo fare attenzione?
>
> Davide.
La shell che usiamo qui e' tcsh, in realta' io uso sempre la bash (e
mi trovo benissimo) anche qui. Per far funzionare gli script di
momis (0setenv o qualcosa di simile) con la bash basta scrivere
. 0setenv
pero' (c'e' il trucco) devi prima definire una nuova funzione di
ambiente chiamata setenv! Io nel mio .bashrc ho queste
righe:
function setenv () {
export $1="$2"
}
Poi basta settare i path corretti nei file
0setenv
e nei file *.conv come momis.conf o
siDesigner.conf
Altre note
- Per far funzionare SLIM occorre installare WordNet
1.6 per linux, la versione disponibile su sparc20
(/export/static/zippati/toolsVari/wordnet/wn16.unix.tar.gz)
dovrebbe contenere gli eseguibili anche per Linux.
- Sim e' improbabile che funzioni!!! Occorrerebbe far
girare OdbTools su Linux e sembra NON voler girare! (si compila ma
si pianta!). L'unico modo di usare Sim e' usarlo remotamente (via
CORBA) attraverso una connessione internet. SI-Designer e'
configurato per fare cio'.