there is one special thing to do before running Semanlink for the first time, (defining the "context" of the web application) so please read this file. (Tomcat users: you cannot just drop the semanlink.war file in Tomcat's "webapps" directory. Sorry for that but, when starting, Semanlink servlet needs to know some information that cannot be guessed.)
Semanlink is a web application. You MUST have a servlet engine installed on your computer in order to use it. If you don't, you can download and install Tomcat (latest stable release recommended) from http://tomcat.apache.org/.
Before running Semanlink, you MUST define the "context" of
the application, which include some special parameters that you have to specify.
(That's because
Semanlink needs to know, before starting, where you want to store the information
that you'll produce using it, and only you can decide). That's an easy process:
The file called "semanlink.xml" (included at the first level of the
directory of the distribution) is a template for the definition of Semanlink's
context. Three things need to be modified in the file:
Leave other data unchanged.
All examples suppose that semanlink will be running at 127.0.0.1:8080/semanlink
Here in an example of context on Mac OSX. The user has created a directory "SemanlinkStuff" inside her "[short-username]" directory (replace "[short-username]" with appropriate value). She has copied in this directory the "semanlink.war" file from the unzipped distribution of semanlink (or she has created a symbolic link to it. Beware, an alias created with the Finder would'nt work). (Note that it is a good idea to avoid having the version number of the release in the path to the war file that gets stored in the context, because it makes upgrading to a newer release easier when one becomes available). Finally, she created inside the "SemanlinkStuff" directory a subdirectory called dataDir to store she data that she will be creating using Semanlink.
< Context path="/semanlink" docBase="/Users/[short-username]/SemanlinkStuff/semanlink.war" reloadable="true" debug="0">
<Parameter name="semanlinkURL" value="http://127.0.0.1:8080/semanlink" override="false"/>
<Parameter name="semanlinkDataDir" value="/Users/[short-username]/SemanlinkStuff/dataDir" override="false"/>
< /Context>
See Mac OSX example.
Here in an example of context on Windows. The user has created on C: a directory called "SemanlinkStuff". She has copied in this directory the "semanlink.war" file from the unzipped distribution of semanlink (Note that it is a good idea to avoid having the version number of the release in the path to the war file that gets stored in the context, because it makes upgrading to a newer release easier when one become available). Finally, she created inside the "SemanlinkStuff" directory a subdirectory called dataDir to store she data that she will be creating using Semanlink.
< Context path="/semanlink" docBase="C:\SemanlinkStuff\semanlink.war" reloadable="true" debug="0">
<Parameter name="semanlinkURL" value="http://127.0.0.1:8080/semanlink" override="false"/>
<Parameter name="semanlinkDataDir" value="C:\SemanlinkStuff\dataDir" override="false"/>
< /Context>
(In these two examples, the directory containing semanlink program has been renamed to "semanlink" without the version number, which is probably a good idea when it comes to upgrading)
You're now ready to run Semanlink (instruct your servlet engine to do so. You may have to restart it. With Tomcat, you should be able to use the manager available from page at host:port). Point your browser to http://127.0.0.1:8080/semanlink (if your running on localhost at port 8080). Enjoy!