close
Warning:
Can't synchronize with repository "(default)" (/usr/local/svn/deb2-client does not appear to be a Subversion repository.). Look in the Trac log for more information.
- Timestamp:
-
Oct 27, 2011, 12:53:35 PM (13 years ago)
- Author:
-
Adam
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v7
|
v8
|
|
1 | 1 | = DEBVisDic Server Setup = |
2 | 2 | |
3 | | To setup the server you need to install Ubuntu packages ''debserver-common'' and ''debserver-wordnet''. For the setup of the DEB Server common part, see [wiki:ServerSetup Server Setup guide]. |
| 3 | To setup the server you need to install Ubuntu packages ''debserver-common'' and ''debserver-debvisdic''. For the setup of the DEB Server common part, see [wiki:ServerSetup Server Setup guide]. |
4 | 4 | For detailed description of the DEB server administration interface, see [wiki:WebAdminInterface the Documentation for Web admin interface]. |
5 | 5 | |
… |
… |
|
7 | 7 | |
8 | 8 | == Initial import of XML data == |
9 | | * open console and go to directory /var/lib/deb-server/bin |
10 | | * run following command (wncode should be wn+[http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes language code]): |
| 9 | * open https://''hostname'':8000 in your web-browser |
| 10 | * default login/password is deb/deb (change it using the link ''change my password'') |
| 11 | * go to 'dictionaries' |
| 12 | * create new dictionary (wncode should be wn+[http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes language code]):: |
11 | 13 | {{{ |
12 | | ./index_wn.rb --db-file=wncode.dbxml --code=wncode --name="My WordNet" \ |
13 | | --source-xml=/path/to/xml/file |
| 14 | code: wncode |
| 15 | name: My Wordnet |
| 16 | class: WordNet |
| 17 | root tag: SYNSET |
| 18 | key: /SYNSET/ID |
| 19 | packages (code/name): wncode1 / My WordNet |
| 20 | click ''save'' |
14 | 21 | }}} |
| 22 | * the interface will offer ''Database doesn't exist. Import from XML, or create empty.'' If you choose to import the dictionary, you need to upload the XML (in [WordNetFormat DEBVisDic format]) to the server and enter the path to XML file (in case of large wordnets, initial import can take hour or more) |
15 | 23 | |
16 | | The data can be also imported in the [WebAdminInterface Web admin interface]. |
17 | 24 | |
18 | 25 | == Service setup == |
19 | | |
20 | | * open https://''hostname'':8000 in your web-browser |
21 | | * default login/password is deb/deb (change it using the link ''change my password'') |
22 | 26 | * go to ''services'' |
23 | 27 | * create new service: |
… |
… |
|
37 | 41 | * open console and run (as root or using sudo) |
38 | 42 | {{{ |
39 | | /etc/init.d/debserver-common restart wordnet_services |
| 43 | /etc/init.d/debserver-common restart debvisdic |
40 | 44 | }}} |
41 | | * logfile is in /var/log/deb-server/wordnet_services.log |
| 45 | * logfile is in /var/log/deb-server/debvisdic.log |
| 46 | * you have to restart the service when you add new wordnet dictionary to debvisdic |
42 | 47 | |
43 | 48 | == Connecting from client == |