ontologyportal / sigmakee

Sigma Knowledge Engineering Environment
GNU General Public License v3.0
101 stars 34 forks source link

Instalation Problems #27

Closed ppljs closed 5 years ago

ppljs commented 6 years ago

Hi, dear developers, I am trying to use SUMO to get sumo in order to find relations between words, but I am not being able to install it. It is probably just a silly mistake. I have already tried to follow the README instructions and tried to execute the install.sh and the InstallSigma.sh but with no success. The problem that occur with the README instructions is that when I try to execute the test command, the software throws an exception saying that was not able to find .kif files (ex: /home/paulojeunon/~/workspace ...) and I do not know why it does that strange concatenation. If I go to the code and fix it I start to have "class not fund" exceptions of guava, stanford and other classes. If I execute the install.sh script when I try to run the command "mvn -f pom.xml -DskipTests clean install tomcat7:run" it does not fund tomcat7 (in the original command it uses a "pom-old.xml" that I was not able to find). If I try to run only "mvn -f pom.xml -DskipTests clean install" It starts to complain about not having all maven dependencies and if I try to add them it gets to a point where it asks about some h2 dependency that even if I include it in the pom archive, it is not found. As I said, is probably a silly mistake from my part, but I am not able to install SigmaKEE. I am running an Ubuntu 16.04 on an intel based # machine. Sorry to bother and thanks for the attention in advance.

apease commented 6 years ago

Hi Paulo, I've been working on relation extraction recently with the CoNLL corpus so this is good timing! That in the sigmanlp project, that builds on sigmakee. The Maven install is out of date. It's best to use the installation instructions for Linux at https://github.com/ontologyportal/sigmakee that does an ant-based build. Probably you don't have $SIGMA_HOME set if it's not finding the kif files. Try echo $SIGMA_HOME from the command line and make sure it's pointing to the directory where you config.xml and kif files are found. Also, make sure the paths in the config.xml are pointing to where the files are. I'm glad to correspond further if that doesn't solve it.

all the best, Adam

On 03/11/2018 04:08 PM, Paulo Pinheiro Lemgruber Jeunon Sousa wrote:

|Hi, dear developers, I am trying to use SUMO to get sumo in order to find relations between words, but I am not being able to install it. It is probably just a silly mistake. I have already tried to follow the README instructions and tried to execute the install.sh and the InstallSigma.sh but with no success. The problem that occur with the README instructions is that when I try to execute the test command, the software throws an exception saying that was not able to find .kif files (ex: /home/paulojeunon/~/workspace ...) and I do not know why it does that strange concatenation. If I go to the code and fix it I start to have "class not fund" exceptions of guava, stanford and other classes. If I execute the install.sh script when I try to run the command "mvn -f pom.xml -DskipTests clean install tomcat7:run" it does not fund tomcat7 (in the original command it uses a "pom-old.xml" that I was not able to find). If I try to run only "mvn -f pom.xml -DskipTests clean install" It starts to complain about not having all maven dependencies and if I try to add them it gets to a point where it asks about some h2 dependency that even if I include it in the pom archive, it is not found. |

org.h2 h2 2006-07-14-beta

|As I said, is probably a silly mistake from my part, but I am not able to install SigmaKEE. I am running an Ubuntu 16.04 on an intel based machine. |

Sorry to bother and thanks for the attention in advance.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ontologyportal/sigmakee/issues/27, or mute the thread https://github.com/notifications/unsubscribe-auth/ACBvHSd8QFixJXkC0N0jzG5xjIVLBFuUks5tda5VgaJpZM4Sl5zk.

--

Adam Pease http://www.ontologyportal.org http://www.adampease.org @apease_ontology on Twitter

ppljs commented 6 years ago

Hi Adam,

Thanks for the advice, but even with some other tries I still get errors when I try to execute the command:

java  -Xmx2500m -classpath ~/workspace/sigmakee/build/classes:/home/paulojeunon/workspace/sigmakee/build/lib/* com.articulate.sigma.KB

My "ant" build is working fine, but the test part is not working. I tried even with the errors to connect with the browser and log in as guest, but was not possible; the initialising message stays on all the time (http://localhost:8080/sigma/login.html).

My environment variables are set to the paths showed below:

[echo] CATALINA_HOME is set to = ~/Programs/apache-tomcat-8.5.28
[echo] SIGMA_HOME is set to = ~/.sigmakee
[echo] SIGMA_SRC is set to = ~/workspace/sigmakee
[echo] KBs_HOME is set to = ~/.sigmakee/KBs

Below are the errors that I am getting when trying to execute the command shown above, that is on the README.txt from sigmakee:

paulojeunon@paulopc:~/workspace/sigmakee$ java  -Xmx2500m -classpath ~/workspace/sigmakee/build/classes:/home/theuser/workspace/sigmakee/build/lib/* com.articulate.sigma.KB
Info in KBmanager.initializeOnce()
Info in KBmanager.initializeOnce(): initializing with /home/paulojeunon/.sigmakee/KBs
KBmanager.readConfiguration()
KBmanager.serializedExists(): false
Info in KBmanager.initializeOnce(): reading from sources
Info in KBmanager.setConfiguration():
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/english_format.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/english_format.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/english_format.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/domainEnglishFormat.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/domainEnglishFormat.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/domainEnglishFormat.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/ArabicCulture.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/ArabicCulture.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/ArabicCulture.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Biography.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/Biography.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Biography.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Cars.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/Cars.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Cars.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Catalog.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/Catalog.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Catalog.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Communications.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/Communications.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Communications.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/CountriesAndRegions.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/CountriesAndRegions.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/CountriesAndRegions.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Dining.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/Dining.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Dining.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Economy.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/Economy.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Economy.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/engineering.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/engineering.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/engineering.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/FinancialOntology.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/FinancialOntology.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/FinancialOntology.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Food.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/Food.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Food.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Geography.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/Geography.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Geography.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Government.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/Government.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Government.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Hotel.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/Hotel.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Hotel.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Justice.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/Justice.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Justice.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Languages.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/Languages.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Languages.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Law.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/Law.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Law.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Media.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/Media.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Media.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Merge.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/Merge.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Merge.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Mid-level-ontology.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/Mid-level-ontology.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Mid-level-ontology.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/MilitaryDevices.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/MilitaryDevices.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/MilitaryDevices.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Military.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/Military.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Military.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/MilitaryPersons.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/MilitaryPersons.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/MilitaryPersons.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/MilitaryProcesses.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/MilitaryProcesses.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/MilitaryProcesses.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Music.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/Music.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Music.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/naics.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/naics.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/naics.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/People.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/People.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/People.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/pictureList.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/pictureList.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/pictureList.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/pictureList-ImageNet.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/pictureList-ImageNet.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/pictureList-ImageNet.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/QoSontology.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/QoSontology.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/QoSontology.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Sports.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/Sports.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Sports.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/TransnationalIssues.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/TransnationalIssues.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/TransnationalIssues.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Transportation.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/Transportation.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Transportation.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/TransportDetail.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/TransportDetail.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/TransportDetail.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/UXExperimentalTerms.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/UXExperimentalTerms.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/UXExperimentalTerms.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/VirusProteinAndCellPart.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/VirusProteinAndCellPart.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/VirusProteinAndCellPart.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Weather.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/Weather.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Weather.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/WMD.kif to SUMO
INFO in KB.addConstituent(): ~/.sigmakee/KBs/WMD.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/WMD.kifdoes not exist
INFO in KB.addConstituent(): added 0 formulas and 0 terms.
INFO in KBcache.writeCacheFile(): SUMO_Cache.kif
java.io.FileNotFoundException: ~/.sigmakee/KBs/SUMO_Cache.kif (No such file or directory)
        at java.io.FileOutputStream.open0(Native Method)
        at java.io.FileOutputStream.open(FileOutputStream.java:270)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
        at java.io.FileWriter.<init>(FileWriter.java:107)
        at com.articulate.sigma.KBcache.writeCacheFile(KBcache.java:1064)
        at com.articulate.sigma.KBcache.buildCaches(KBcache.java:1175)
        at com.articulate.sigma.KBmanager.loadKB(KBmanager.java:454)
        at com.articulate.sigma.KBmanager.kbsFromXML(KBmanager.java:368)
        at com.articulate.sigma.KBmanager.setConfiguration(KBmanager.java:690)
        at com.articulate.sigma.KBmanager.initializeOnce(KBmanager.java:661)
        at com.articulate.sigma.KBmanager.initializeOnce(KBmanager.java:613)
        at com.articulate.sigma.KB.main(KB.java:3259)
INFO in KBcache.buildCaches(): size: 0
INFO in KB.checkArity(): Performing Arity CheckINFO in KB.loadEProver(): Creating new process
kbsFromXML(): Completed loading KBs
Info in KBmanager.setConfiguration(): Using kbDir: ~/.sigmakee/KBs
NLGUtils.init(): initializing with ~/.sigmakee/KBs
Parameter dir points to non-existent path: ~/.sigmakee/KBs
java.lang.IllegalArgumentException: Parameter dir points to non-existent path: ~/.sigmakee/KBs
        at com.articulate.sigma.nlg.NLGUtils.readKeywordMap(NLGUtils.java:280)
        at com.articulate.sigma.nlg.NLGUtils.init(NLGUtils.java:29)
        at com.articulate.sigma.KBmanager.setConfiguration(KBmanager.java:693)
        at com.articulate.sigma.KBmanager.initializeOnce(KBmanager.java:661)
        at com.articulate.sigma.KBmanager.initializeOnce(KBmanager.java:613)
        at com.articulate.sigma.KB.main(KB.java:3259)

I don't know why this strange concatenation between the paths are occurring:

INFO in KB.addConstituent(): ~/.sigmakee/KBs/english_format.kif
Error in KIF.readFile():  error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/english_format.kifdoes not exist

When I have looked to the java code, I found that the file name is (fname or filaName) is set the this first path ~/.sigmakee/KBs/english_format.kif but after it gets the getCanonicalPath it turns to this mess /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/english_format.kif. This first part /home/paulojeunon/workspace/sigmakee/ is the directory from where I am executing the java command. But even when I hardcode a fix for this in the code other problems started to show up.

Other thing that is very strange is this last exception. It says that a path is not existent, but when I check if the file/path exists, it exists. Error shown below: java.lang.IllegalArgumentException: Parameter dir points to non-existent path: ~/.sigmakee/KBs

Sorry to bother you with this and thank you a lot for you attention. Best wishes, Paulo

apease commented 6 years ago

Hi Paulo, I see a bad path

/home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/english_format.kifdoes not exist

It looks like the '~' is not getting its usual meaning, maybe from within Java. Maybe I could suggest using absolute paths in setting $SIGMA_HOME?

all the best, Adam

On 03/11/2018 08:08 PM, Paulo Pinheiro Lemgruber Jeunon Sousa wrote:

Hi Adam,

Thanks for the advice, but even with some other tries I still get errors when I try to execute the command:

|java -Xmx2500m -classpath ~/workspace/sigmakee/build/classes:/home/paulojeunon/workspace/sigmakee/build/lib/* com.articulate.sigma.KB |

My "ant" build is working fine, but the test part is not working. I tried even with the errors to connect with the browser and log in as guest, but was not possible; the initialising message stays on all the time (http://localhost:8080/sigma/login.html).

My environment variables are set to the paths showed below:

|[echo] CATALINA_HOME is set to = ~/Programs/apache-tomcat-8.5.28 [echo] SIGMA_HOME is set to = ~/.sigmakee [echo] SIGMA_SRC is set to = ~/workspace/sigmakee [echo] KBs_HOME is set to = ~/.sigmakee/KBs |

Below are the errors that I am getting when trying to execute the command shown above, that is on the README.txt from sigmakee:

|paulojeunon@paulopc:~/workspace/sigmakee$ java -Xmx2500m -classpath ~/workspace/sigmakee/build/classes:/home/theuser/workspace/sigmakee/build/lib/* com.articulate.sigma.KB Info in KBmanager.initializeOnce() Info in KBmanager.initializeOnce(): initializing with /home/paulojeunon/.sigmakee/KBs KBmanager.readConfiguration() KBmanager.serializedExists(): false Info in KBmanager.initializeOnce(): reading from sources Info in KBmanager.setConfiguration(): KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/english_format.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/english_format.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/english_format.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/domainEnglishFormat.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/domainEnglishFormat.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/domainEnglishFormat.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/ArabicCulture.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/ArabicCulture.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/ArabicCulture.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Biography.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Biography.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Biography.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Cars.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Cars.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Cars.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Catalog.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Catalog.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Catalog.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Communications.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Communications.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Communications.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/CountriesAndRegions.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/CountriesAndRegions.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/CountriesAndRegions.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Dining.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Dining.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Dining.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Economy.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Economy.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Economy.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/engineering.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/engineering.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/engineering.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/FinancialOntology.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/FinancialOntology.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/FinancialOntology.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Food.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Food.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Food.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Geography.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Geography.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Geography.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Government.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Government.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Government.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Hotel.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Hotel.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Hotel.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Justice.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Justice.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Justice.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Languages.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Languages.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Languages.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Law.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Law.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Law.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Media.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Media.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Media.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Merge.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Merge.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Merge.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Mid-level-ontology.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Mid-level-ontology.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Mid-level-ontology.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/MilitaryDevices.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/MilitaryDevices.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/MilitaryDevices.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Military.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Military.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Military.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/MilitaryPersons.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/MilitaryPersons.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/MilitaryPersons.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/MilitaryProcesses.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/MilitaryProcesses.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/MilitaryProcesses.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Music.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Music.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Music.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/naics.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/naics.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/naics.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/People.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/People.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/People.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/pictureList.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/pictureList.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/pictureList.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/pictureList-ImageNet.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/pictureList-ImageNet.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/pictureList-ImageNet.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/QoSontology.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/QoSontology.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/QoSontology.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Sports.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Sports.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Sports.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/TransnationalIssues.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/TransnationalIssues.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/TransnationalIssues.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Transportation.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Transportation.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Transportation.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/TransportDetail.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/TransportDetail.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/TransportDetail.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/UXExperimentalTerms.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/UXExperimentalTerms.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/UXExperimentalTerms.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/VirusProteinAndCellPart.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/VirusProteinAndCellPart.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/VirusProteinAndCellPart.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Weather.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Weather.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Weather.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/WMD.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/WMD.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/WMD.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. INFO in KBcache.writeCacheFile(): SUMO_Cache.kif java.io.FileNotFoundException: ~/.sigmakee/KBs/SUMO_Cache.kif (No such file or directory) at java.io.FileOutputStream.open0(Native Method) at java.io.FileOutputStream.open(FileOutputStream.java:270) at java.io.FileOutputStream.(FileOutputStream.java:213) at java.io.FileWriter.(FileWriter.java:107) at com.articulate.sigma.KBcache.writeCacheFile(KBcache.java:1064) at com.articulate.sigma.KBcache.buildCaches(KBcache.java:1175) at com.articulate.sigma.KBmanager.loadKB(KBmanager.java:454) at com.articulate.sigma.KBmanager.kbsFromXML(KBmanager.java:368) at com.articulate.sigma.KBmanager.setConfiguration(KBmanager.java:690) at com.articulate.sigma.KBmanager.initializeOnce(KBmanager.java:661) at com.articulate.sigma.KBmanager.initializeOnce(KBmanager.java:613) at com.articulate.sigma.KB.main(KB.java:3259) INFO in KBcache.buildCaches(): size: 0 INFO in KB.checkArity(): Performing Arity CheckINFO in KB.loadEProver(): Creating new process kbsFromXML(): Completed loading KBs Info in KBmanager.setConfiguration(): Using kbDir: ~/.sigmakee/KBs NLGUtils.init(): initializing with ~/.sigmakee/KBs Parameter dir points to non-existent path: ~/.sigmakee/KBs java.lang.IllegalArgumentException: Parameter dir points to non-existent path: ~/.sigmakee/KBs at com.articulate.sigma.nlg.NLGUtils.readKeywordMap(NLGUtils.java:280) at com.articulate.sigma.nlg.NLGUtils.init(NLGUtils.java:29) at com.articulate.sigma.KBmanager.setConfiguration(KBmanager.java:693) at com.articulate.sigma.KBmanager.initializeOnce(KBmanager.java:661) at com.articulate.sigma.KBmanager.initializeOnce(KBmanager.java:613) at com.articulate.sigma.KB.main(KB.java:3259) |

I don't know why this strange concatenation between the paths are occurring:

|INFO in KB.addConstituent(): ~/.sigmakee/KBs/english_format.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/english_format.kifdoes not exist |

When I have looked to the java code, I found that the file name is (fname or filaName) is set the this first path |~/.sigmakee/KBs/english_format.kif| but after it gets the |getCanonicalPath| it turns to this mess |/home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/english_format.kif|. This first part |/home/paulojeunon/workspace/sigmakee/| is the directory from where I am executing the java command. But even when I hardcode a fix for this in the code other problems started to show up.

Sorry to bother you with this and thank you a lot for you attention.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ontologyportal/sigmakee/issues/27#issuecomment-372182075, or mute the thread https://github.com/notifications/unsubscribe-auth/ACBvHRo7KSItloN1KHWrZaJyJFQNqW_Mks5tdeargaJpZM4Sl5zk.

--

Adam Pease http://www.ontologyportal.org http://www.adampease.org @apease_ontology on Twitter

apease commented 6 years ago

Hi Paolo, I also noticed that you haven't changed the path in the test command

java -Xmx2500m -classpath ~/workspace/sigmakee/build/classes:/home/theuser/workspace/sigmakee/build/lib/* com.articulate.sigma.KB

that is meant to be adapted to your local configuration, which I believe would be

java -Xmx2500m -classpath /home/paulojeunon/workspace/sigmakee/build/classes:/home/paulojeunon/workspace/sigmakee/build/lib/* com.articulate.sigma.KB

all the best, Adam

On 03/11/2018 08:08 PM, Paulo Pinheiro Lemgruber Jeunon Sousa wrote:

Hi Adam,

Thanks for the advice, but even with some other tries I still get errors when I try to execute the command:

|java -Xmx2500m -classpath ~/workspace/sigmakee/build/classes:/home/paulojeunon/workspace/sigmakee/build/lib/* com.articulate.sigma.KB |

My "ant" build is working fine, but the test part is not working. I tried even with the errors to connect with the browser and log in as guest, but was not possible; the initialising message stays on all the time (http://localhost:8080/sigma/login.html).

My environment variables are set to the paths showed below:

|[echo] CATALINA_HOME is set to = ~/Programs/apache-tomcat-8.5.28 [echo] SIGMA_HOME is set to = ~/.sigmakee [echo] SIGMA_SRC is set to = ~/workspace/sigmakee [echo] KBs_HOME is set to = ~/.sigmakee/KBs |

Below are the errors that I am getting when trying to execute the command shown above, that is on the README.txt from sigmakee:

|paulojeunon@paulopc:~/workspace/sigmakee$ java -Xmx2500m -classpath ~/workspace/sigmakee/build/classes:/home/theuser/workspace/sigmakee/build/lib/* com.articulate.sigma.KB Info in KBmanager.initializeOnce() Info in KBmanager.initializeOnce(): initializing with /home/paulojeunon/.sigmakee/KBs KBmanager.readConfiguration() KBmanager.serializedExists(): false Info in KBmanager.initializeOnce(): reading from sources Info in KBmanager.setConfiguration(): KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/english_format.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/english_format.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/english_format.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/domainEnglishFormat.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/domainEnglishFormat.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/domainEnglishFormat.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/ArabicCulture.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/ArabicCulture.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/ArabicCulture.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Biography.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Biography.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Biography.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Cars.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Cars.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Cars.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Catalog.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Catalog.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Catalog.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Communications.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Communications.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Communications.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/CountriesAndRegions.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/CountriesAndRegions.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/CountriesAndRegions.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Dining.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Dining.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Dining.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Economy.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Economy.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Economy.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/engineering.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/engineering.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/engineering.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/FinancialOntology.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/FinancialOntology.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/FinancialOntology.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Food.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Food.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Food.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Geography.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Geography.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Geography.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Government.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Government.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Government.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Hotel.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Hotel.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Hotel.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Justice.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Justice.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Justice.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Languages.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Languages.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Languages.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Law.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Law.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Law.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Media.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Media.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Media.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Merge.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Merge.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Merge.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Mid-level-ontology.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Mid-level-ontology.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Mid-level-ontology.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/MilitaryDevices.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/MilitaryDevices.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/MilitaryDevices.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Military.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Military.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Military.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/MilitaryPersons.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/MilitaryPersons.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/MilitaryPersons.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/MilitaryProcesses.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/MilitaryProcesses.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/MilitaryProcesses.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Music.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Music.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Music.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/naics.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/naics.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/naics.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/People.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/People.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/People.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/pictureList.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/pictureList.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/pictureList.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/pictureList-ImageNet.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/pictureList-ImageNet.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/pictureList-ImageNet.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/QoSontology.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/QoSontology.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/QoSontology.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Sports.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Sports.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Sports.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/TransnationalIssues.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/TransnationalIssues.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/TransnationalIssues.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Transportation.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Transportation.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Transportation.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/TransportDetail.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/TransportDetail.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/TransportDetail.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/UXExperimentalTerms.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/UXExperimentalTerms.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/UXExperimentalTerms.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/VirusProteinAndCellPart.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/VirusProteinAndCellPart.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/VirusProteinAndCellPart.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/Weather.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/Weather.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/Weather.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. KBmanager.loadKB(): add constituent ~/.sigmakee/KBs/WMD.kif to SUMO INFO in KB.addConstituent(): ~/.sigmakee/KBs/WMD.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/WMD.kifdoes not exist INFO in KB.addConstituent(): added 0 formulas and 0 terms. INFO in KBcache.writeCacheFile(): SUMO_Cache.kif java.io.FileNotFoundException: ~/.sigmakee/KBs/SUMO_Cache.kif (No such file or directory) at java.io.FileOutputStream.open0(Native Method) at java.io.FileOutputStream.open(FileOutputStream.java:270) at java.io.FileOutputStream.(FileOutputStream.java:213) at java.io.FileWriter.(FileWriter.java:107) at com.articulate.sigma.KBcache.writeCacheFile(KBcache.java:1064) at com.articulate.sigma.KBcache.buildCaches(KBcache.java:1175) at com.articulate.sigma.KBmanager.loadKB(KBmanager.java:454) at com.articulate.sigma.KBmanager.kbsFromXML(KBmanager.java:368) at com.articulate.sigma.KBmanager.setConfiguration(KBmanager.java:690) at com.articulate.sigma.KBmanager.initializeOnce(KBmanager.java:661) at com.articulate.sigma.KBmanager.initializeOnce(KBmanager.java:613) at com.articulate.sigma.KB.main(KB.java:3259) INFO in KBcache.buildCaches(): size: 0 INFO in KB.checkArity(): Performing Arity CheckINFO in KB.loadEProver(): Creating new process kbsFromXML(): Completed loading KBs Info in KBmanager.setConfiguration(): Using kbDir: ~/.sigmakee/KBs NLGUtils.init(): initializing with ~/.sigmakee/KBs Parameter dir points to non-existent path: ~/.sigmakee/KBs java.lang.IllegalArgumentException: Parameter dir points to non-existent path: ~/.sigmakee/KBs at com.articulate.sigma.nlg.NLGUtils.readKeywordMap(NLGUtils.java:280) at com.articulate.sigma.nlg.NLGUtils.init(NLGUtils.java:29) at com.articulate.sigma.KBmanager.setConfiguration(KBmanager.java:693) at com.articulate.sigma.KBmanager.initializeOnce(KBmanager.java:661) at com.articulate.sigma.KBmanager.initializeOnce(KBmanager.java:613) at com.articulate.sigma.KB.main(KB.java:3259) |

I don't know why this strange concatenation between the paths are occurring:

|INFO in KB.addConstituent(): ~/.sigmakee/KBs/english_format.kif Error in KIF.readFile(): error file /home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/english_format.kifdoes not exist |

When I have looked to the java code, I found that the file name is (fname or filaName) is set the this first path |~/.sigmakee/KBs/english_format.kif| but after it gets the |getCanonicalPath| it turns to this mess |/home/paulojeunon/workspace/sigmakee/~/.sigmakee/KBs/english_format.kif|. This first part |/home/paulojeunon/workspace/sigmakee/| is the directory from where I am executing the java command. But even when I hardcode a fix for this in the code other problems started to show up.

Sorry to bother you with this and thank you a lot for you attention.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ontologyportal/sigmakee/issues/27#issuecomment-372182075, or mute the thread https://github.com/notifications/unsubscribe-auth/ACBvHRo7KSItloN1KHWrZaJyJFQNqW_Mks5tdeargaJpZM4Sl5zk.

--

Adam Pease http://www.ontologyportal.org http://www.adampease.org @apease_ontology on Twitter

ppljs commented 6 years ago

Hi, Adam, Thank you a lot!! The command that I was using was with the correct user name (paulojeunon). To make it work I changed all the paths using "~" to "/home/paulojeunon/" (environment variables and config.xml). Now the program is able to find the file paths and runs, but when I try to log into the server at this addres http://localhost:8080/sigma/init.jsp, the message "Sigma is initialising" stays on all the time and does not change. The Tomcat server appears to be working just fine.

The only errors that appear on the execution of the java command, java -Xmx2500m -classpath /home/paulojeunon/workspace/sigmakee/build/classes:/home/paulojeunon/workspace/sigmakee/build/lib/* com.articulate.sigma.KB, are like the one listed below:

Error in FormulaPreprocessor.computeVariableTypesRecurse(): no type information for arg 1 of relation defaultMaximumSphereRadius in formula: (defaultMaximumSphereRadius ?STUFF (MeasureFn 15 Centimeter))

I do not know if the program should be running while you are using the tomcat server to access it or no, but it ends without exceptions after sometime. The final messages are listed below:

......................................................................................................................................................................................................................................................
INFO in EProver.writeBatchFile(): writing EBatchConfig.txt with KB file /home/paulojeunon/.sigmakee/KBs/SUMO.tptp
INFO in EProver(): executable: /home/paulojeunon/Programs/E/PROVER/e_ltb_runner
INFO in EProver(): kbFile: /home/paulojeunon/.sigmakee/KBs/SUMO.tptp
EProver(): command: [/home/paulojeunon/Programs/E/PROVER/e_ltb_runner, --interactive, /home/paulojeunon/.sigmakee/KBs/EBatchConfig.txt, /home/paulojeunon/Programs/E/PROVER/eprover]
EProver(): new process: java.lang.UNIXProcess@5197848c
kbsFromXML(): Completed loading KBs
Info in KBmanager.setConfiguration(): Using kbDir: /home/paulojeunon/.sigmakee/KBs
NLGUtils.init(): initializing with /home/paulojeunon/.sigmakee/KBs
NLGUtils.readKeywordMap():
NLGUtils.serializedExists(): true
NLGUtils.loadSerialized()
NLGUtils.loadSerialized(): NLGUtils has been deserialized 
WordNet.initOnce(): using baseDir = /home/paulojeunon/.sigmakee/KBs/WordNetMappings
WordNet.loadSerialized(): WN has been deserialized 
ENTER DB.readSpreadsheet(/home/paulojeunon/.sigmakee/KBs/WordNetMappings/sentiment.csv, null)
ENTER DB.readSpreadsheet(java.io.FileReader@63c12fb0, null)
EXIT DB.readSpreadsheet(java.io.FileReader@63c12fb0, null)
  rows == [list of 8222 rows]
  0.161 seconds elapsed time
EXIT DB.readSpreadsheet(/home/paulojeunon/.sigmakee/KBs/WordNetMappings/sentiment.csv, null)
INFO in OMWordnet.readOMWfiles(): reading files: 
OMWordnet.loadSerialized(): OMW has been deserialized 
INFO in KBmanager.setConfiguration(): SUMO
Info in KBmanager.initializeOnce(): completed initialization
KBmanager.serialize(): KBmanager has been serialized 
Info in KBmanager.initializeOnce(): initialized is true
[ ]

The java command executes and ends without any exceptions, but I don't know if it is executing correctly since I am not able to log in. The commands in "Account Management" always throw exceptions or errors like below: Error in User.createDB(): creating database

Error in userExistsDB(): The object is already closed [90007-196]
org.h2.jdbc.JdbcSQLException: The object is already closed [90007-196]
        at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
        at org.h2.message.DbException.get(DbException.java:179)
        at org.h2.message.DbException.get(DbException.java:155)
        at org.h2.message.DbException.get(DbException.java:144)
        at org.h2.jdbc.JdbcResultSet.checkClosed(JdbcResultSet.java:3208)
        at org.h2.jdbc.JdbcResultSet.next(JdbcResultSet.java:130)
        at com.articulate.sigma.PasswordService.userExists(PasswordService.java:135)
        at com.articulate.sigma.PasswordService.createAdmin(PasswordService.java:321)
        at com.articulate.sigma.PasswordService.main(PasswordService.java:411)

Sorry for all this trouble and I am really glad for your time and attention. Best wishes, Paulo.

apease commented 6 years ago

Hi Paulo, The initial start up of Sigma can take a long time, especially if it's not on a powerful machine. Specifying more memory, maybe -Xmx5g might help. If you refresh catalina.out you should see the line of dots growing. If there's no progress, then something is wrong. Initial start up might be 20 minutes if you load all the .kif files. But after that the data is all persisted and startup will just take a minute. I'm afraid the account management is still a bit messed up and I'm no good with databases and security, but I'm working on it. The kif errors that you're seeing can be ignored without risk, although I should fix them too.

all the best, Adam

On 03/12/2018 12:42 PM, Paulo Pinheiro Lemgruber Jeunon Sousa wrote:

Hi, Adam, Thank you a lot!! The command that I was using was with the correct user name (paulojeunon). To make it work I changed all the paths using "~" to "/home/paulojeunon/" (environment variables and config.xml). Now the program is able to find the file paths and runs, but when I try to log into the server at this addres |http://localhost:8080/sigma/init.jsp|, the message "Sigma is initialising" stays on all the time and does not change. The Tomcat server appears to be working just fine.

The only errors that appear on the execution of the java command, |java -Xmx2500m -classpath /home/paulojeunon/workspace/sigmakee/build/classes:/home/paulojeunon/workspace/sigmakee/build/lib/* com.articulate.sigma.KB|, are like the one listed below:

|Error in FormulaPreprocessor.computeVariableTypesRecurse(): no type information for arg 1 of relation defaultMaximumSphereRadius in formula: (defaultMaximumSphereRadius ?STUFF (MeasureFn 15 Centimeter)) |

I do not know if the program should be running while you are using the tomcat server to access it or no, but it ends without exceptions after sometime. The final messages are listed below:

|...................................................................................................................................................................................................................................................... INFO in EProver.writeBatchFile(): writing EBatchConfig.txt with KB file /home/paulojeunon/.sigmakee/KBs/SUMO.tptp INFO in EProver(): executable: /home/paulojeunon/Programs/E/PROVER/e_ltb_runner INFO in EProver(): kbFile: /home/paulojeunon/.sigmakee/KBs/SUMO.tptp EProver(): command: [/home/paulojeunon/Programs/E/PROVER/e_ltb_runner, --interactive, /home/paulojeunon/.sigmakee/KBs/EBatchConfig.txt, /home/paulojeunon/Programs/E/PROVER/eprover] EProver(): new process: java.lang.UNIXProcess@5197848c kbsFromXML(): Completed loading KBs Info in KBmanager.setConfiguration(): Using kbDir: /home/paulojeunon/.sigmakee/KBs NLGUtils.init(): initializing with /home/paulojeunon/.sigmakee/KBs NLGUtils.readKeywordMap(): NLGUtils.serializedExists(): true NLGUtils.loadSerialized() NLGUtils.loadSerialized(): NLGUtils has been deserialized WordNet.initOnce(): using baseDir = /home/paulojeunon/.sigmakee/KBs/WordNetMappings WordNet.loadSerialized(): WN has been deserialized ENTER DB.readSpreadsheet(/home/paulojeunon/.sigmakee/KBs/WordNetMappings/sentiment.csv, null) ENTER DB.readSpreadsheet(java.io.FileReader@63c12fb0, null) EXIT DB.readSpreadsheet(java.io.FileReader@63c12fb0, null) rows == [list of 8222 rows] 0.161 seconds elapsed time EXIT DB.readSpreadsheet(/home/paulojeunon/.sigmakee/KBs/WordNetMappings/sentiment.csv, null) INFO in OMWordnet.readOMWfiles(): reading files: OMWordnet.loadSerialized(): OMW has been deserialized INFO in KBmanager.setConfiguration(): SUMO Info in KBmanager.initializeOnce(): completed initialization KBmanager.serialize(): KBmanager has been serialized Info in KBmanager.initializeOnce(): initialized is true [ ] |

The java command executes and ends without any exceptions, but I don't know if it is executing correctly since I am not able to log in. The commands in "Account Management" always throw exceptions or errors like below: |Error in User.createDB(): creating database|

|Error in userExistsDB(): The object is already closed [90007-196] org.h2.jdbc.JdbcSQLException: The object is already closed [90007-196] at org.h2.message.DbException.getJdbcSQLException(DbException.java:345) at org.h2.message.DbException.get(DbException.java:179) at org.h2.message.DbException.get(DbException.java:155) at org.h2.message.DbException.get(DbException.java:144) at org.h2.jdbc.JdbcResultSet.checkClosed(JdbcResultSet.java:3208) at org.h2.jdbc.JdbcResultSet.next(JdbcResultSet.java:130) at com.articulate.sigma.PasswordService.userExists(PasswordService.java:135) at com.articulate.sigma.PasswordService.createAdmin(PasswordService.java:321) at com.articulate.sigma.PasswordService.main(PasswordService.java:411) |

Sorry for all this trouble and I am really glad for your time and attention. Best wishes, Paulo.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ontologyportal/sigmakee/issues/27#issuecomment-372438383, or mute the thread https://github.com/notifications/unsubscribe-auth/ACBvHaw8gYeldWuolDm9otdkZj9PzDfNks5tds-ggaJpZM4Sl5zk.

--

Adam Pease http://www.ontologyportal.org http://www.adampease.org @apease_ontology on Twitter

apease commented 6 years ago

Hi Paulo, I missed one of your questions - it's unwise to run Tomcat Sigma and Sigma from the command line at the same time, as they will both take up a lot of memory, and a lot of CPU, at least on startup.

all the best, Adam

On 03/12/2018 01:35 PM, Adam Pease wrote:

Hi Paulo,   The initial start up of Sigma can take a long time, especially if it's not on a powerful machine.  Specifying more memory, maybe -Xmx5g might help.  If you refresh catalina.out you should see the line of dots growing.  If there's no progress, then something is wrong.  Initial start up might be 20 minutes if you load all the .kif files.  But after that the data is all persisted and startup will just take a minute.   I'm afraid the account management is still a bit messed up and I'm no good with databases and security, but I'm working on it.   The kif errors that you're seeing can be ignored without risk, although I should fix them too.

all the best, Adam

On 03/12/2018 12:42 PM, Paulo Pinheiro Lemgruber Jeunon Sousa wrote:

Hi, Adam, Thank you a lot!! The command that I was using was with the correct user name (paulojeunon). To make it work I changed all the paths using "~" to "/home/paulojeunon/" (environment variables and config.xml). Now the program is able to find the file paths and runs, but when I try to log into the server at this addres |http://localhost:8080/sigma/init.jsp|, the message "Sigma is initialising" stays on all the time and does not change. The Tomcat server appears to be working just fine.

The only errors that appear on the execution of the java command, |java -Xmx2500m -classpath /home/paulojeunon/workspace/sigmakee/build/classes:/home/paulojeunon/workspace/sigmakee/build/lib/* com.articulate.sigma.KB|, are like the one listed below:

|Error in FormulaPreprocessor.computeVariableTypesRecurse(): no type information for arg 1 of relation defaultMaximumSphereRadius in formula: (defaultMaximumSphereRadius ?STUFF (MeasureFn 15 Centimeter)) |

I do not know if the program should be running while you are using the tomcat server to access it or no, but it ends without exceptions after sometime. The final messages are listed below:

|...................................................................................................................................................................................................................................................... INFO in EProver.writeBatchFile(): writing EBatchConfig.txt with KB file /home/paulojeunon/.sigmakee/KBs/SUMO.tptp INFO in EProver(): executable: /home/paulojeunon/Programs/E/PROVER/e_ltb_runner INFO in EProver(): kbFile: /home/paulojeunon/.sigmakee/KBs/SUMO.tptp EProver(): command: [/home/paulojeunon/Programs/E/PROVER/e_ltb_runner, --interactive, /home/paulojeunon/.sigmakee/KBs/EBatchConfig.txt, /home/paulojeunon/Programs/E/PROVER/eprover] EProver(): new process: java.lang.UNIXProcess@5197848c kbsFromXML(): Completed loading KBs Info in KBmanager.setConfiguration(): Using kbDir: /home/paulojeunon/.sigmakee/KBs NLGUtils.init(): initializing with /home/paulojeunon/.sigmakee/KBs NLGUtils.readKeywordMap(): NLGUtils.serializedExists(): true NLGUtils.loadSerialized() NLGUtils.loadSerialized(): NLGUtils has been deserialized WordNet.initOnce(): using baseDir = /home/paulojeunon/.sigmakee/KBs/WordNetMappings WordNet.loadSerialized(): WN has been deserialized ENTER DB.readSpreadsheet(/home/paulojeunon/.sigmakee/KBs/WordNetMappings/sentiment.csv, null) ENTER DB.readSpreadsheet(java.io.FileReader@63c12fb0, null) EXIT DB.readSpreadsheet(java.io.FileReader@63c12fb0, null) rows == [list of 8222 rows] 0.161 seconds elapsed time EXIT DB.readSpreadsheet(/home/paulojeunon/.sigmakee/KBs/WordNetMappings/sentiment.csv, null) INFO in OMWordnet.readOMWfiles(): reading files: OMWordnet.loadSerialized(): OMW has been deserialized INFO in KBmanager.setConfiguration(): SUMO Info in KBmanager.initializeOnce(): completed initialization KBmanager.serialize(): KBmanager has been serialized Info in KBmanager.initializeOnce(): initialized is true [ ] |

The java command executes and ends without any exceptions, but I don't know if it is executing correctly since I am not able to log in. The commands in "Account Management" always throw exceptions or errors like below: |Error in User.createDB(): creating database|

|Error in userExistsDB(): The object is already closed [90007-196] org.h2.jdbc.JdbcSQLException: The object is already closed [90007-196] at org.h2.message.DbException.getJdbcSQLException(DbException.java:345) at org.h2.message.DbException.get(DbException.java:179) at org.h2.message.DbException.get(DbException.java:155) at org.h2.message.DbException.get(DbException.java:144) at org.h2.jdbc.JdbcResultSet.checkClosed(JdbcResultSet.java:3208) at org.h2.jdbc.JdbcResultSet.next(JdbcResultSet.java:130) at com.articulate.sigma.PasswordService.userExists(PasswordService.java:135) at com.articulate.sigma.PasswordService.createAdmin(PasswordService.java:321) at com.articulate.sigma.PasswordService.main(PasswordService.java:411) |

Sorry for all this trouble and I am really glad for your time and attention. Best wishes, Paulo.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ontologyportal/sigmakee/issues/27#issuecomment-372438383, or mute the thread https://github.com/notifications/unsubscribe-auth/ACBvHaw8gYeldWuolDm9otdkZj9PzDfNks5tds-ggaJpZM4Sl5zk.

--

Adam Pease http://www.ontologyportal.org http://www.adampease.org @apease_ontology on Twitter

ppljs commented 6 years ago

Hi Adam, No problem. I was able to make it work, but I am using as a guest. There is no problem since I prefer to use it as a library instead of an web interface. Thank you a lot for all the help!

Best wishes, Paulo

apease commented 6 years ago

Hi Paulo, Great! I'm glad to be of help, and will be eager to hear more about your work if you have results you'd like to share.

all the best, Adam

On 03/13/2018 09:31 AM, Paulo Pinheiro Lemgruber Jeunon Sousa wrote:

Hi Adam, No problem. I was able to make it work, but I am using as a guest. There is no problem since I prefer to use it as a library instead of an web interface. Thank you a lot for all the help!

Best wishes, Paulo

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ontologyportal/sigmakee/issues/27#issuecomment-372729688, or mute the thread https://github.com/notifications/unsubscribe-auth/ACBvHVjz4XzrMal-jLmfx4pN3wdWfaRqks5td_RMgaJpZM4Sl5zk.

--

Adam Pease http://www.ontologyportal.org http://www.adampease.org @apease_ontology on Twitter

arademaker commented 5 years ago

Reading the final comments, it looks like this issue can be closed.