-
Notifications
You must be signed in to change notification settings - Fork 6
/
README.AServ
96 lines (66 loc) · 3.48 KB
/
README.AServ
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#######################################################################
# Alignment Server launch instructions #
# 30/03/2013, version 4.5 #
#######################################################################
Using the alignment server requires an SQL database server.
We see here, how to use mysql (http://dev.mysql.com/doc/refman).
PORTS USED BY THE ALIGNMENT SERVER
----------------------------------
The alignment server is a communicating system that communicates through
TCP sockets which are bound to ports on your machines. We provide here the
list of default ports and options to change them as well as the necessity
for the firewalls to open these ports:
default option open?
HTTP 8089 -H Y
Jade 8888 -A
// 1099 ? (RMI)
7778 Y (MTP HTTP)
WSDL 7777 -W
JXTA 6666 -P
Oyster 1099 -O Y (RMI/Kaon2)
mysql 3306 --dbmsport No if on the same machine
Both Jade and Oyster/Kaon2 use rmi connection and the default 1099 port.
Moreover, concerning Oyster, this port must be open to the outside.
MYSQL FOR THE FIRST TIME
------------------------
$ sudo /usr/local/mysql/bin/mysqld_safe --user=mysql &
$ /usr/local/mysql/bin/mysqladmin -u root password <mysqlpassword>
$ /usr/local/mysql/bin/mysqladmin -u root -h localhost password <mysqlpassword>
$ /usr/local/mysql/bin/mysql -u root -p<mysqlpassword>
sql> CREATE DATABASE AServDB;
sql> GRANT ALL PRIVILEGES ON AServDB.* TO adminAServ@localhost IDENTIFIED BY 'aaa345';
sql> quit
Of course, you are advised to use different user, password and database name. This can be achieved either:
- by changing values of DBMSBASE, DBMSUSER and DBMSPASS in AlignmentServer and recompiling;
- by passing parameters dbmsbase, dbmsuser and dbmspass to AlignmentServer.
Sample backup of the server content:
$ /usr/local/mysql/bin/mysqldump -u adminAServ -paaa345 AServDB > toto.sql
And restoring:
$ /usr/local/mysql/bin/mysql -u adminAServ -paaa345 AServDB
sql> source toto.sql;
LAUNCHING MYSQL AND LOADING SAMPLE DATABASE
-------------------------------------------
The next time it is sufficient that mysql is running... (with the database loaded)
$ sudo /usr/local/mysql/bin/mysqld_safe --user=mysql
LAUNCHING THE ALIGNMENT SERVER WITH OYSTER REGISTERY
----------------------------------------------------
The alignment API is already compiled with Oyster support. However, it is not ready to be launched. The instructions to do so are:
1) get the Oyster2 package from http://ontoware.org/projects/oyster2
2) copy the four libraries in lib/ (or at least in the classpath)
3) copy the O2serverfiles directory
4) copy the "new store" config file
5) edit the "new store" config file for it to use the correct environent
6) launch kaon2.jar
java -cp lib/kaon2.jar org.semanticweb.kaon2.server.ServerMain -registry -rmi -ontologies O2serverfiles
[use -registryport for using another port than 1099,
then the "new store" configuration file must be edited]
7) launch the server
java -jar lib/alignsvc.jar -O -d4
RUNNING THE ALIGNMENT SERVER
----------------------------
$ java -jar lib/alignsvc.jar -H
$ java -jar lib/alignsvc.jar -Dwndict=../WordNet-3.0/dict -H
The alignment server is then available through HTTP with:
http://localhost:8089/html/
For debugging, using logback, do:
$ java -cp lib/slf4j/logback-core-1.0.9.jar:lib/slf4j/logback-classic-1.0.9.jar:lib/alignsvc.jar -Dlogback.configurationFile=logback.xml fr.inrialpes.exmo.align.service.AlignmentService -Dwndict=../WordNet-3.0/dict -H