- JDK 11
- Python 3.8+ (with pip)
Download the pretained model & and extract it
cd model
wget https://drive.google.com/file/d/10ayQ4r8VE2EGJvFWEetVyjuuqSILLevj/view?usp=sharing
tar -xzvf ontology-matching-base-uncased.tar.gz
Create virtual environment and install the requirements
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Run the model
python serve.py
wget -P data https://dl4jdata.blob.core.windows.net/resources/wordvectors/GoogleNews-vectors-negative300.bin.gz
If you are not using Linux x86 you need to adapt the cpu.arch
property in the pom.xml according to your
machine.
You can run your application in dev mode that enables live coding using:
./mvnw compile quarkus:dev -Dquarkus.args="instance -kb data/dbpedia -t 0.5 -wt data/webtables/" -Dquarkus.log.level=WARN
NOTE: If using Word2Vec you need to increase the memory limit of the JVM. E.g. execute with
-Xms1024m -Xmx10g -XX:MaxPermSize=2g
The application can be packaged using:
./mvnw package
It produces the quarkus-run.jar
file in the target/quarkus-app/
directory.
Be aware that it’s not an über-jar as the dependencies are copied into the target/quarkus-app/lib/
directory.
The application is now runnable using java -jar target/quarkus-app/quarkus-run.jar
.
If you want to build an über-jar, execute the following command:
./mvnw package -Dquarkus.package.type=uber-jar
Note: Creating an über-jar is time consuming
The application, packaged as an über-jar, is now runnable using java -jar target/*-runner.jar
.
java -jar target/quarkus-app/quarkus-run.jar instance -kb data/dbpedia -wt data/webtables/ -t 0.5
See the provided help command for usage instructions.