Skip to content

Commit bf46802

Browse files
committed
moved here for archival purposes
0 parents  commit bf46802

19 files changed

+2198
-0
lines changed

INSTALL

Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
*******************************************************************************
2+
3+
wordnet2sql 0.99.4
4+
5+
INSTALLATION INSTRUCTIONS
6+
7+
(standard installation)
8+
9+
*******************************************************************************
10+
11+
12+
13+
You should have these files:
14+
15+
~/wn2sql-0.99.4 $ ls
16+
INSTALL lexname.bz2 sample.bz2
17+
LICENSE lexrel.bz2 semrel.bz2
18+
adjmod.bz2 lexverbframe.bz2 semverbframe.bz2
19+
createtables.mysql.sql mysql.sh sense.bz2
20+
createtables.sql optimizations.sql synset.bz2
21+
db2.sh pgsql.sh word.bz2
22+
fk_constraints.sql pk_constraints.sql
23+
frame.bz2 reltype.bz2
24+
~/wn2sql-0.99.4 $
25+
26+
The following command sequences give you an
27+
idea of how the installation might work for
28+
different database systems. Depending on your
29+
database, network setup, and user setup you
30+
will have to adapt it though.
31+
32+
33+
34+
*******************************************************************************
35+
MYSQL
36+
*******************************************************************************
37+
38+
39+
40+
------------------------------------------------
41+
42+
NOTE: THIS INSTALLATION ROUTINE ASSUMES,
43+
YOU DON'T HAVE ACCESS TO THE MYSQL DATABASE
44+
FILESPACE. IF YOU CAN WRITE FILES TO
45+
46+
/var/lib/mysql/<yourdb>
47+
48+
ON YOUR DB SERVER, YOU PROBABLY WANT THE
49+
ACCELERATED INSTALLATION FOR MYSQL, FOR
50+
WHICH YOU WILL HAVE TO USE THE PACKAGE
51+
52+
wn2sql-0.99.4-mysql.tar
53+
54+
INSTEAD OF THIS ONE.
55+
56+
------------------------------------------------
57+
58+
59+
60+
First, create a database for the wordnet data, if
61+
you don't already have one.
62+
63+
~/wn2sql-0.99.4 $ echo "create database wn2sql" | mysql -u root
64+
~/wn2sql-0.99.4 $
65+
66+
Then, you have to run a couple of scripts to create
67+
the tables and primary key constraints.
68+
69+
~/wn2sql-0.99.4 $ cat createtables.mysql.sql | mysql -u root wn2sql
70+
~/wn2sql-0.99.4 $ cat pk_constraints.sql | mysql -u root wn2sql
71+
~/wn2sql-0.99.4 $
72+
73+
Use the appropriate inserter script to create a bunch
74+
of INSERT statements which we pipe through the db client.
75+
76+
~/wn2sql-0.99.4 $ ./mysql.sh | mysql -u root wn2sql
77+
~/wn2sql-0.99.4 $
78+
79+
Now, make yourself a nice cup of tea: This will take some time!
80+
81+
Next, we can put some foreign key constraints in place
82+
83+
~/wn2sql-0.99.4 $ cat fk_constraints.sql | mysql -u root wn2sql
84+
~/wn2sql-0.99.4 $
85+
86+
Finally, a few indices can speed up processing
87+
88+
~/wn2sql-0.99.4 $ cat optimizations.sql | mysql -u root wn2sql
89+
90+
91+
92+
*******************************************************************************
93+
PostgreSQL
94+
*******************************************************************************
95+
96+
97+
98+
First, create a database for the wordnet data, if
99+
you don't already have one.
100+
101+
~/wn2sql-0.99.4 $ echo "create database wn2sql" | psql
102+
~/wn2sql-0.99.4 $
103+
104+
Then, you have to run a couple of scripts to create
105+
the tables and primary key constraints.
106+
107+
~/wn2sql-0.99.4 $ cat createtables.sql | psql wn2sql
108+
~/wn2sql-0.99.4 $ cat pk_constraints.sql | psql wn2sql
109+
~/wn2sql-0.99.4 $
110+
111+
Use the appropriate inserter script to create a bunch
112+
of INSERT statements which we pipe through the db client.
113+
114+
~/wn2sql-0.99.4 $ ./psql.sh | psql wn2sql | grep -v ' 1'
115+
[ ... ]
116+
~/wn2sql-0.99.4 $
117+
118+
Next, we can put some foreign key constraints in place
119+
120+
~/wn2sql-0.99.4 $ cat fk_constraints.sql | psql wn2sql
121+
~/wn2sql-0.99.4 $
122+
123+
124+
125+
*******************************************************************************
126+
IBM DB/2
127+
*******************************************************************************
128+
129+
130+
131+
First, create a database for the wordnet data, if
132+
you don't already have one.
133+
134+
~/wn2sql-0.99.4 $ db2 create database wn2sql
135+
~/wn2sql-0.99.4 $
136+
137+
Then, you have to run a couple of scripts to create
138+
the tables and primary key constraints.
139+
140+
141+
~/wn2sql-0.99.4 $ db2 connect to wn2sql
142+
[ ... ]
143+
~/wn2sql-0.99.4 $ cat createtables.sql | db2 -td';'
144+
~/wn2sql-0.99.4 $ cat pk_constraints.sql | db2 -td';'
145+
~/wn2sql-0.99.4 $
146+
147+
Use the appropriate inserter script to create a bunch
148+
of INSERT statements which we pipe through the db client.
149+
150+
~/wn2sql-0.99.4 $ ./db2.sh | db2 -td';' | grep -v 'DB200001'
151+
~/wn2sql-0.99.4 $
152+
153+
Next, we can put some foreign key constraints in place
154+
155+
~/wn2sql-0.99.4 $ cat fk_constraints.sql | db2 -td';'
156+
~/wn2sql-0.99.4 $
157+
158+
Finally, a few indices can speed up processing
159+
160+
~/wn2sql-0.99.4 $ cat optimizations.sql | db2 -td';'
161+
162+
163+
164+
*******************************************************************************
165+
(c) Copyright 2007 by Richard Bergmair
166+
167+
Permission is granted to copy, distribute and/or modify this document
168+
under the terms of the GNU Free Documentation License, Version 1.2 or
169+
any later version published by the Free Software Foundation;
170+
*******************************************************************************

INSTALL-MYSQL

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
*******************************************************************************
2+
3+
wordnet2sql 0.99.4
4+
5+
INSTALLATION INSTRUCTIONS
6+
7+
(accelerated installation for MySQL server administrators)
8+
9+
*******************************************************************************
10+
11+
12+
13+
You should have these files:
14+
15+
~/wn2sql-0.99.4-mysql # ls
16+
INSTALL-MYSQL lexname.mysql.bz2 sample.mysql.bz2
17+
LICENSE lexrel.mysql.bz2 semrel.mysql.bz2
18+
adjmod.mysql.bz2 lexverbframe.mysql.bz2 semverbframe.mysql.bz2
19+
createtables.mysql.sql loaddata.mysql.sql sense.mysql.bz2
20+
createtables.sql optimizations.sql synset.mysql.bz2
21+
fk_constraints.sql pk_constraints.sql word.mysql.bz2
22+
frame.mysql.bz2 reltype.mysql.bz2
23+
~/wn2sql-0.99.4-mysql #
24+
25+
The following command sequences give you an idea
26+
of how the installation might work depending on
27+
your network setup, and user setup you will have
28+
to adapt it though.
29+
30+
31+
32+
------------------------------------------------
33+
34+
NOTE: THIS INSTALLATION ROUTINE ASSUMES,
35+
YOU HAVE ACCESS TO THE MYSQL DATABASE
36+
FILESPACE. IF YOU CANNOT WRITE FILES TO
37+
38+
/var/lib/mysql/<yourdb>
39+
40+
ON YOUR DB SERVER, YOU PROBABLY WANT THE
41+
STANDARD INSTALLATION FOR WHICH YOU WILL
42+
HAVE TO USE THE PACKAGE
43+
44+
wn2sql-0.99.4.tar
45+
46+
INSTEAD OF THIS ONE.
47+
48+
------------------------------------------------
49+
50+
51+
52+
First, create a database for the wordnet data, if
53+
you don't already have one.
54+
55+
~/wn2sql-0.99.4-mysql # echo "create database wn2sql" | mysql
56+
~/wn2sql-0.99.4-mysql # bunzip2 *.mysql.bz2
57+
~/wn2sql-0.99.4-mysql # cp *.mysql /var/lib/mysql/wn2sql
58+
~/wn2sql-0.99.4-mysql #
59+
60+
Then, you have to run a couple of scripts to create
61+
the tables and primary key constraints.
62+
63+
~/wn2sql-0.99.4-mysql # cat createtables.mysql.sql | mysql wn2sql
64+
~/wn2sql-0.99.4-mysql # cat pk_constraints.sql | mysql wn2sql
65+
~/wn2sql-0.99.4-mysql #
66+
67+
Then you can use MySQL's "LOAD DATA" command, to mass import the
68+
wn2sql data, much more quickly than using INSERT statements.
69+
70+
~/wn2sql-0.99.4-mysql # cat loaddata.mysql.sql | mysql wn2sql
71+
~/wn2sql-0.99.4-mysql #
72+
73+
Next, we can put some foreign key constraints in place
74+
75+
~/wn2sql-0.99.4-mysql # cat fk_constraints.sql | mysql wn2sql
76+
~/wn2sql-0.99.4-mysql #
77+
78+
A few indices can speed up processing
79+
80+
~/wn2sql-0.99.4-mysql # cat optimizations.sql | mysql -u root wn2sql
81+
~/wn2sql-0.99.4-mysql #
82+
83+
Finally, you can remove the imported files
84+
85+
~/wn2sql-0.99.4-mysql # rm /var/lib/mysql/wn2sql/*.mysql
86+
~/wn2sql-0.99.4-mysql #
87+
88+
89+
90+
*******************************************************************************
91+
(c) Copyright 2007 by Richard Bergmair
92+
93+
Permission is granted to copy, distribute and/or modify this document
94+
under the terms of the GNU Free Documentation License, Version 1.2 or
95+
any later version published by the Free Software Foundation;
96+
*******************************************************************************

0 commit comments

Comments
 (0)