Sigma Knowledge Engineering Environment
C Java HTML Python C++ TeX Other
Permalink
Failed to load latest commit information.
.idea encodings Jan 26, 2017
build/vagrant Add anonymous CSV checkout Jan 23, 2015
data another 500 person texts Mar 25, 2013
dev-tools/intellij-idea add dev-tools directory with Intellij code formatting Apr 10, 2015
lib Removed stanford corenlp dependencies and cleaned up pom.xml and buil… Feb 2, 2017
native-installers/debian remove bogus file Jun 14, 2016
plugins Guideline for plugin installation Apr 23, 2015
src/java Removed pointless library dependency on a string concatenation method Feb 12, 2017
test Removed dependency on Stanford CoreNLP Feb 17, 2017
web Whitespace change Feb 12, 2017
.cvsignore merge WSD attributes Mar 19, 2015
.gitignore Add .gitignore Jun 19, 2016
InstallSigma.bat SystemOnTPTP merged into AskTell/InferenceTestSuite Oct 1, 2008
InstallSigma.sh SystemOnTPTP merged into AskTell/InferenceTestSuite Oct 1, 2008
README.txt Update README.txt Jan 26, 2017
SigmaImplementationDetails.fodt Additional documentation on Sigma code. Oct 1, 2011
SigmaImplementationDetails.pdf Additional documentation on Sigma code. Oct 1, 2011
SigmaProgrammer.fodt PDF version of this file is now deprecated and will be removed in Jun 18, 2009
SigmaProgrammer.pdf Minor change to mention a dependency on the Oreilly servlet.jar package Sep 4, 2006
SigmaUserManual.fodt PDF version of this file is now deprecated and will be removed in Jun 18, 2009
SigmaUserManual.pdf Copied SigmaUserManual-2-01.pdf to this name. Dec 28, 2007
Vagrantfile clarified comments Apr 10, 2015
build.xml Removed stanford corenlp dependencies and cleaned up pom.xml and buil… Feb 2, 2017
config_vagrant.xml Turned caching on by default. Fixed path to SemRewrite.txt May 4, 2015
index.html add doc links Oct 4, 2015
install-vagrant.sh Fix references to conform to the next project setup in GitHub that ha… Mar 12, 2016
install.sh Fix references to conform to the next project setup in GitHub that ha… Mar 12, 2016
pom.xml Removed stanford corenlp dependencies and cleaned up pom.xml and buil… Feb 2, 2017
suo-kif.fodt PDF version of this file is now deprecated and will be removed in Jun 18, 2009
suo-kif.pdf PDF version of this file is now deprecated and will be removed in Jun 18, 2009
systemsInfo.xml new file: systemsInfo.xml. Stores systems information, needed for bui… Dec 7, 2007
text_annotator.bat bat file for running text annotator Mar 15, 2013
text_annotator.xml bat file for running text annotator Mar 15, 2013
web.xml File of named parameters needed by build.xml Aug 29, 2006

README.txt

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