|
| 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 | +******************************************************************************* |
0 commit comments