martinodb / sigmakee

Sigma Knowledge Engineering Environment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install via script from source on Linux or Mac OS with 
bash <(curl -L https://raw.githubusercontent.com/ontologyportal/sigmakee/master/install.sh)

Note that you need to enter the entire statement above, including calling "bash".

Users should also see

https://sourceforge.net/p/sigmakee/wiki/required_data_files/
Mac instructions - https://sourceforge.net/p/sigmakee/wiki/Sigma%20Setup%20on%20Mac/ 
Ubuntu - https://sourceforge.net/p/sigmakee/wiki/Setting%20up%20Sigma%20on%20Ubuntu/

You can also install Sigma on a Vagrant virtual machine.  You'll need VirtualBox too
https://www.virtualbox.org/

> mkdir sigma_vagrant
> cd sigma_vagrant
> wget https://raw.githubusercontent.com/ontologyportal/sigmakee/master/Vagrantfile
> vagrant up
> vagrant ssh
> bash <(curl -L https://raw.githubusercontent.com/ontologyportal/sigmakee/master/install-vagrant.sh)

follow the prompts and Sigma will be running.  Then on the browser of your host machine, go to
http://localhost:9090/sigma/login.html

To run natural language interpretation from the command line in the virtual machine,
run the following additional steps

> cd ~
> mkdir Programs
> cd Programs
> cp /vagrant/Downloads/stanford-corenlp-full-2015-12-09.zip .
> unzip stanford-corenlp-full-2015-12-09.zip
> cd stanford-corenlp-full-2015-12-09
> export SIGMA_HOME="/home/vagrant/.sigmakee"
> jar -xf stanford-corenlp-3.6.0-models.jar
> cd ~/Programs/stanford-corenlp-full-2015-12-09
> java  -Xmx2500m -classpath  /home/vagrant/workspace/sigma/sigma/build/classes:/home/vagrant/workspace/sigma/sigma/build/lib/*  com.articulate.sigma.semRewrite.Interpreter -i


You can also follow the steps below to do a manual installation on linux.
Just replace /home/theuser with your directory names.  This procedure
assumes that you start from your home directory and are happy
with having directories created there. Before you can run Sigma you'll
also need to modify /home/theuser/.sigmakee/KBs/config.xml to conform to
your local paths.
If you are running tomcat locally, also change the port value to 8080

mkdir workspace
mkdir Programs
cd Programs
wget 'http://nlp.stanford.edu/software/stanford-corenlp-full-2015-12-09.zip'
wget 'http://www.gtlib.gatech.edu/pub/apache/tomcat/tomcat-7/v7.0.68/bin/apache-tomcat-7.0.68.zip'
wget 'http://wordnetcode.princeton.edu/3.0/WordNet-3.0.tar.gz'
wget 'http://wwwlehre.dhbw-stuttgart.de/~sschulz/WORK/E_DOWNLOAD/V_1.9/E.tgz'
tar -xvzf E.tgz
unzip apache-tomcat-7.0.68.zip
rm apache-tomcat-7.0.68.zip
unzip stanford-corenlp-full-2015-12-09.zip
rm stanford-corenlp-full-2015-12-09.zip
cd ~/Programs/stanford-corenlp-full-2015-12-09/
unzip stanford-corenlp-3.6.0-models.jar
cd ~/workspace/
sudo apt-get install git
git clone https://github.com/ontologyportal/sigmakee
git clone https://github.com/ontologyportal/sumo
mkdir .sigmakee
cd .sigmakee
mkdir KBs
cp -R ~/workspace/sumo/* KBs
mv ~/workspace/sigmakee/config_vagrant.xml KBs/config.xml
cd ~/Programs
gunzip WordNet-3.0.tar.gz
tar -xvf WordNet-3.0.tar
cp WordNet-3.0/dict/* ~/.sigmakee/KBs/WordNetMappings/
cd ~/Programs/E
sudo apt-get install make
sudo apt-get install gcc
./configure
make
cd ~
echo "export SIGMA_HOME=/home/theuser/.sigmakee" >> .bashrc
echo "export CATALINA_OPTS=\"$CATALINA_OPTS -Xms500M -Xmx2500M\"" >> .bashrc
echo "export CATALINA_HOME=/var/tomcat/apache-tomcat-8.0.26" >> .bashrc
cd ~/workspace/sigmakee
ant
cd ~/Programs/stanford-corenlp-full-2015-12-09/
java  -Xmx2500m -classpath /home/theuser/workspace/sigmakee/build/classes:/home/theuser/workspace/sigmakee/build/lib/*  com.articulate.sigma.KB
After starting TomCat, go to http://localhost:8080/sigma/login.html


Debugging
- If login.html redirects you to init.jsp that means the system is still initializing. Wait a minute or two and try again.
- If you are repeatedly getting 404s, check the port value in /home/theuser/.sigmakee/KBs/config.xml. 8080 for local, 9090 for Vagrant
- If you are on mac and getting errors related to not finding jars when running com.articulate.sigma.KB, copy all jars from /home/theuser/workspace/sigmakee/build/lib/ to /Library/Java/Extensions

About

Sigma Knowledge Engineering Environment


Languages

Language:C 55.6%Language:Java 28.5%Language:HTML 5.0%Language:Python 4.2%Language:C++ 2.6%Language:TeX 1.3%Language:Awk 1.0%Language:Roff 0.6%Language:Shell 0.3%Language:Objective-C 0.3%Language:Makefile 0.3%Language:OpenEdge ABL 0.1%Language:Batchfile 0.0%Language:Ruby 0.0%Language:Lex 0.0%Language:Emacs Lisp 0.0%Language:CSS 0.0%Language:Perl 0.0%Language:Perl 6 0.0%