Sunteți pe pagina 1din 2

INSTALLATION: - Copy /aqualog2 under <Tomcat installation directory>/webapps (Note AquaLog2 works under Java 1.

5) CONFIGURATION: Configuration in AquaLog2 is very easy. There are a few files you must know. service_properties.xml: To select an ontology server/file plus the corresponding plugin (i.e. sesame, webonto, etc). Optionally you can specify the name of the slot(s) in the ontology that contains the pretty names/synonyms/full names of an instance (if any), or the concepts to be queried (if you dont wish to query the whole ontology). query_properties.xml: You can specify which are the equivalent terms to who/when/where (i.e. who = person, organization) file_properties.xml: This is the configuration file used byWordNet, make sure the global path points to the correct dictionaries (which are different for Windows and Mac), i.e. <param name="dictionary_path" value="<apache installation directory>/webapps/aqualog2/wordnet/2.0/dict/"/> You should modify two .jsp files containing global paths, the downloadOntology.jsp and the uploadOntology.jsp, which are used to select the folder where the ontology is downloaded, and to select the folder where upload ontologies are cache, respectively. cache the ontoreate a cache while uploading and downloading ontologies at run time). Look for <jsp:setProperty name="upBean" property="folderstore" value="<apache installation directory>/webapps/aqualog/uploads" /> and change it accordingly to your tomcat installation. Proxy_properties.xml: for proxies. Cache_properties.xml: you can configure the maximum number of ontologies to be stored in the cache (last used-last served policy) at a time. And optionally, instead of selecting particular ontologies, you can select to read all the ontologies from a given server.

LEXICON DATABASE There is a database, call learningmechanismdb, to automatically store a contextualized lexicon through a learning mechanism. You must have MySQL installed, then, run the script script_create_LM_tables.sql to create the database and tables to be used by aqualog2. The learning mechanism automatically updates the tables lexicon and relations (the last one links the user to the lexicon vocabulary). The user log-in information is stored under the table users. If desired, you can manually update the table termlexicon to add new vocabulary. The location of the database is specified in database_properties.xml (by default is localhost:3306, user:root with no password). RUN IT: - Option a) Dont start tomcat. Just click on JAVAAqua.bat, which also initializes a cached mechanism to which the clients access using RMi (Windows only) - Option b) Start tomcat, run start aqualog only.bat (Windows) or start_aqualog_only.sh (Mac) Note you may need to change the JAVA_HOME in the *.bat files. The first time AquaLog2 is initialized, it takes a while as the new ontologies are read and stored in files for a cache.

CLIENT: http://localhost:8080/aqualog2 ONTOLOGY SERVERS (for the online version): http://pckm143.open.ac.uk:8080/sesame http://plainmoor.open.ac.uk:3000/webonto

S-ar putea să vă placă și