Knowledge Base untuk Lumen Robot Friend.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea/runConfigurations
app
cli
core
web
.gitignore
LICENSE
README.md
pom.xml
yagofactstomongo
yagolabelstomongo
yagoliteralfactstomongo

README.md

Knowledge Base untuk Lumen Robot Friends

Preparations

  1. Oracle JDK8
  2. Git (otherwise you can't clone this), included in PATH, with proper http.proxy configuration
  3. MongoDB
  4. Maven, included in PATH, with proper proxy configuration in ~/.m2/settings.xml
  5. IntelliJ IDEA or your favorite IDE, again with proper proxy configuration in Settings > HTTP

Import lumen_lumen_dev MongoDB Dump

Ready-to-use MongoDB dump (~1.2 GB uncompressed) is available from Hendy, containing converted Yago2s datasets (and maybe more).

mongorestore -d lumen_lumen_dev /media/ceefour/passport/project_passport/lumen/mongodb/lumen_lumen_dev

Convert Yago2s data to MongoDB (not needed)

NOTE: You don't need to do this. This is just for documentation purpose only, when you want to regenerate MongoDB datasets from Yago2s.

Download and extract Yago2s yago2s_tsv.7z bundle, or at least the following Yago2s datasets:

  1. yagoLabels.tsv (.7z)
  2. yagoFacts.tsv (.7z)
  3. yagoLiteralFacts.tsv (.7z)

Copy core/src/main/resources/META-INF/hotel.LumenSysConfig.dev.xmi to cli/src/main/resources/META-INF/hotel.LumenSysConfig.xmi (optionally configure at least MongoDB URI, which by default should be okay for development).

mvn -pl .,core,cli -DskipTests install; mvn -DskipTests -pl cli compile dependency:copy-dependencies
# TODO: currently Linux only
# yagolabelstomongo takes ~30 mins! (i7 3770K, SSD, 8GB RAM)
./yagolabelstomongo /media/ceefour/passport/databank/yago2s/yagoLabels.tsv
# this is about ~5 mins
./yagofactstomongo /media/ceefour/passport/databank/yago2s/yagoFacts.tsv
# also ~5 mins
./yagoliteralfactstomongo /media/ceefour/passport/databank/yago2s/yagoLiteralFacts.tsv

Building and Running

  1. Logging: In folder app/src/main/resources, copy logback-dev.xml to logback.xml

Deploying

Hendy's self note:

First, Maven install soluvas-framework + soluvas-web + relex-id + (clean) lumen-kb

then:

cd ~/git/lumen-kb/app/target/id.ac.itb.ee.lskk.lumen.app-0.1.0-SNAPSHOT
rsync -vPa . ceefour@luna3:tomcat7_ceefour_prd/webapps/lumen/
rsync --del -vPa WEB-INF/lib/ ceefour@luna3:tomcat7_ceefour_prd/webapps/lumen/WEB-INF/lib/

then you go to server and:

touch ~/tomcat7_ceefour_prd/webapps/lumen/WEB-INF/web.xml

then you tail:

tail -F ~/lumen_lumen_prd/_hlog/lumen.log