Coder Social home page Coder Social logo

dice-group / tebaqa Goto Github PK

View Code? Open in Web Editor NEW
17.0 4.0 21.0 720.1 MB

A question answering system which utilises machine learning.

Home Page: https://tebaqa.demos.dice-research.org/

License: GNU Affero General Public License v3.0

Java 84.27% HTML 13.18% CSS 0.83% JavaScript 0.91% Dockerfile 0.44% Shell 0.38%
machine-learning weka question-answering natural-language-processing

tebaqa's Introduction

Template-Based Question Answering (TeBaQA)

Build Status Codacy Badge

TeBaQA is available at https://tebaqa.demos.dice-research.org/

Execution

TeBaQA implements microservices architecture. The application comprises following 5 modules:

  • Template Classification :- to classify query templates (localhost:8081)
  • Entity Linking :- finding and linking entities and relations (localhost:8082)
  • Query Ranking :- candidate query execution, ranking (localhost:8083)
  • TeBaQA Controller :- central controller, frontend application (localhost:8080)
  • NLP Server :- CoreNLP Server endpoint (localhost:8085)

Additionally, Entity Linking requires Elasticsearch indices for data and ontology of the knowledge base. We provide dumps of DBPedia (2016-10 release). Find the dump files along with the instructions at Hobbit data. The indices were generated on Elastiscearch 6.6.1. You have to install Elasticsearch to use the Entity Linking components of TeBaQA. However, TeBaQA can also be run on your own knowledge base. Check the instruction in this file for more information on creating your own Elasticsearch indices. The script for createing the indices is located here

There are two ways to run TeBaQA

1. Run locally

  • Checkout the project

  • make files executable (chmod +x <filename>.sh)

  • Build all modules

    ./build-script.sh

  • Run all modules

    ./run-script.sh

2. Run as Docker (installation guide, Ubuntu 20.04) containers

  • Checkout the project

  • Build docker images for each module

    ./docker/build-images.sh

  • To run all containers

    ./docker/run-containers.sh

  • To stop all containers

    ./docker/stop-containers.sh

Citation

Vollmers, D., Jalota, R., Moussallem, D., Topiwala, H., Ngomo, A. C. N., & Usbeck, R. (2021). Knowledge Graph Question Answering using Graph-Pattern Isomorphism. arXiv preprint arXiv:2103.06752. https://arxiv.org/abs/2103.06752

Question Answering

  • To answer a question, simply execute an HTTP POST request to
  • Parameters:
    • query: A string which contains a question (required).
    • lang: The language of the question (default:en) Note: Other languages than English haven't been implemented yet.
  • An example request could look like this:
    • http://localhost:8080/qa?query=Where is the birthplace of Angela Merkel?&lang=en

Evaluation

Ablation study

Credit

tebaqa's People

Contributors

firmao avatar pnancke avatar ricardousbeck avatar tohardik avatar vdanielupb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tebaqa's Issues

Use tranformer models for template classification

Replace training as following:

  • use natural language questions as training data
  • extract templates with placeholders from SPARQL queries, use them as target labels (already in place)
  • fine tune with transformer model from HuggingFace
  • replace template-classification endpoint with the new implementation, keeping the output format same as before
  • run benchmark and compare

Improve Docker deployment

  • provide a docker-compose file
  • do not use network=host
  • use more recent Java version in containers
  • optimize Dockerfiles in a way that you do not need to repeat parts of the build or that allows it to be cached by Docker
  • deploy images in a container registry

See also:

"No answers were found" with all the examples

Using any of the 8 example questions results in "no answers were found".
This applies to the online demo, docker containers built from the master branch, commit c879b15, and to the build and run scripts as well.
Version 1.1 was tested as well with the same result.

Log

[INFO] Scanning for projects...
[INFO] 
[INFO] --------------< de.uni.leipzig.tebaqa:tebaqa-controller >---------------
[INFO] Building tebaqa-controller 1.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] >>> exec-maven-plugin:1.2.1:java (default-cli) > validate @ tebaqa-controller >>>
[INFO] 
[INFO] <<< exec-maven-plugin:1.2.1:java (default-cli) < validate @ tebaqa-controller <<<
[INFO] 
[WARNING] The artifact xml-apis:xml-apis:jar:2.0.2 has been relocated to xml-apis:xml-apis:jar:1.0.b2
Downloading from maven-default-http-blocker: http://0.0.0.0/org/aksw/qa/annotation/0.2.0-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.aksw.qa:annotation:0.2.0-SNAPSHOT/maven-metadata.xml from/to maven-default-http-blocker (http://0.0.0.0/): transfer failed for http://0.0.0.0/org/aksw/qa/annotation/0.2.0-SNAPSHOT/maven-metadata.xml
[WARNING] org.aksw.qa:annotation:0.2.0-SNAPSHOT/maven-metadata.xmlfailed to transfer from http://0.0.0.0/ during a previous attempt. This failure was cached in the local repository and resolution will not be reattempted until the update interval of maven-default-http-blocker has elapsed or updates are forced. Original error: Could not transfer metadata org.aksw.qa:annotation:0.2.0-SNAPSHOT/maven-metadata.xml from/to maven-default-http-blocker (http://0.0.0.0/): transfer failed for http://0.0.0.0/org/aksw/qa/annotation/0.2.0-SNAPSHOT/maven-metadata.xml
[INFO] 
[INFO] --- exec-maven-plugin:1.2.1:java (default-cli) @ tebaqa-controller ---
INFO  root 0     - Starting TeBaQA controller ...
2022-02-10 13:11:45,309 de.uni.leipzig.tebaqa.tebaqacontroller.TebaqaControllerApplication.main() INFO Log4j appears to be running in a Servlet environment, but there's no log4j-web module available. If you want better web container support, please add the log4j-web JAR to your web archive or server lib directory.

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v2.4.0)

13:11:45.447 [de.uni.leipzig.tebaqa.tebaqacontroller.TebaqaControllerApplication.main()] INFO  de.uni.leipzig.tebaqa.tebaqacontroller.TebaqaControllerApplication - Starting TebaqaControllerApplication using Java 11.0.13 on konradspc with PID 435252 (/home/konrad/tmp/tebaqa/tebaqa-controller/target/classes started by konrad in /home/konrad/tmp/tebaqa/tebaqa-controller)
13:11:45.460 [de.uni.leipzig.tebaqa.tebaqacontroller.TebaqaControllerApplication.main()] INFO  de.uni.leipzig.tebaqa.tebaqacontroller.TebaqaControllerApplication - No active profile set, falling back to default profiles: default
13:11:47.838 [de.uni.leipzig.tebaqa.tebaqacontroller.TebaqaControllerApplication.main()] INFO  de.uni.leipzig.tebaqa.tebaqacontroller.TebaqaControllerApplication - Started TebaqaControllerApplication in 2.83 seconds (JVM running for 9.169)
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.controller.TeBaQAController 37078  - /qa-simple received POST request with: question='How much is the population of Mexico City?' and lang='en'
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 38260  - Templates found: 1
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 38260  - SELECT DISTINCT ?uri WHERE { res/0 res/1 ?uri } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 39461  - Classes found: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 39462  - Properties found: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 39462  - Entities found: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 39782  - Queries generated: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 39940  - None of the queries worked, trying all other templates
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 39964  - Templates found: 6
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 39964  - SELECT DISTINCT ?uri WHERE { ?uri res/0 res/1 } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 39964  - SELECT DISTINCT ?uri WHERE { ?x res/0 res/1 ; res/2 res/3 ; res/4 ?uri }
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 39964  - SELECT DISTINCT ?uri WHERE { ?uri res/0 res/1 ; res/2 res/3 }
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 39964  - SELECT DISTINCT ?num WHERE { res/0 res/1 ?city . ?city res/2 ?num }
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 39964  - SELECT DISTINCT ?uri WHERE { res/0 res/1 ?uri . ?uri res/2 res/3 } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 39964  - SELECT DISTINCT ?string WHERE { ?x res/0 res/1 ; res/2 ?string } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 40016  - Queries generated: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 40133  - Selected query: 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.controller.TeBaQAController 40146  - Answer: {"answers":[],"sparql":""}
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.controller.TeBaQAController 105312  - /qa-simple received POST request with: question='What is the wavelength of indigo?' and lang='en'
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 105623  - Templates found: 1
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 105623  - SELECT DISTINCT ?uri WHERE { res/0 res/1 ?uri } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 105904  - Classes found: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 105904  - Properties found: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 105904  - Entities found: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 105959  - Queries generated: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 106043  - None of the queries worked, trying all other templates
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 106079  - Templates found: 6
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 106079  - SELECT DISTINCT ?uri WHERE { ?uri res/0 res/1 } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 106079  - SELECT DISTINCT ?uri WHERE { ?x res/0 res/1 ; res/2 res/3 ; res/4 ?uri }
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 106079  - SELECT DISTINCT ?uri WHERE { ?uri res/0 res/1 ; res/2 res/3 }
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 106079  - SELECT DISTINCT ?num WHERE { res/0 res/1 ?city . ?city res/2 ?num }
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 106079  - SELECT DISTINCT ?uri WHERE { res/0 res/1 ?uri . ?uri res/2 res/3 } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 106079  - SELECT DISTINCT ?string WHERE { ?x res/0 res/1 ; res/2 ?string } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 106118  - Queries generated: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 106199  - Selected query: 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.controller.TeBaQAController 106201  - Answer: {"answers":[],"sparql":""}
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.controller.TeBaQAController 109599  - /qa-simple received POST request with: question='Where is the birthplace of Angela Merkel?' and lang='en'
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 109968  - Templates found: 1
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 109968  - SELECT DISTINCT ?uri WHERE { res/0 res/1 ?uri } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 110169  - Classes found: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 110169  - Properties found: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 110170  - Entities found: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 110187  - Queries generated: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 110251  - None of the queries worked, trying all other templates
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 110292  - Templates found: 6
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 110292  - SELECT DISTINCT ?uri WHERE { ?uri res/0 res/1 } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 110292  - SELECT DISTINCT ?uri WHERE { ?x res/0 res/1 ; res/2 res/3 ; res/4 ?uri }
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 110292  - SELECT DISTINCT ?uri WHERE { ?uri res/0 res/1 ; res/2 res/3 }
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 110292  - SELECT DISTINCT ?num WHERE { res/0 res/1 ?city . ?city res/2 ?num }
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 110292  - SELECT DISTINCT ?uri WHERE { res/0 res/1 ?uri . ?uri res/2 res/3 } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 110292  - SELECT DISTINCT ?string WHERE { ?x res/0 res/1 ; res/2 ?string } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 110328  - Queries generated: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 110390  - Selected query: 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.controller.TeBaQAController 110391  - Answer: {"answers":[],"sparql":""}
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.controller.TeBaQAController 112076  - /qa-simple received POST request with: question='Where is the origin of Carolina reaper?' and lang='en'
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 112372  - Templates found: 1
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 112372  - SELECT DISTINCT ?uri WHERE { res/0 res/1 ?uri } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 112643  - Classes found: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 112643  - Properties found: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 112643  - Entities found: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 112658  - Queries generated: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 112723  - None of the queries worked, trying all other templates
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 112739  - Templates found: 6
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 112739  - SELECT DISTINCT ?uri WHERE { ?uri res/0 res/1 } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 112739  - SELECT DISTINCT ?uri WHERE { ?x res/0 res/1 ; res/2 res/3 ; res/4 ?uri }
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 112739  - SELECT DISTINCT ?uri WHERE { ?uri res/0 res/1 ; res/2 res/3 }
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 112739  - SELECT DISTINCT ?num WHERE { res/0 res/1 ?city . ?city res/2 ?num }
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 112739  - SELECT DISTINCT ?uri WHERE { res/0 res/1 ?uri . ?uri res/2 res/3 } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 112739  - SELECT DISTINCT ?string WHERE { ?x res/0 res/1 ; res/2 ?string } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 112783  - Queries generated: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 112900  - Selected query: 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.controller.TeBaQAController 112901  - Answer: {"answers":[],"sparql":""}
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.controller.TeBaQAController 114811  - /qa-simple received POST request with: question='Who is the author of the interpretation of dreams?' and lang='en'
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 115157  - Templates found: 1
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 115157  - SELECT DISTINCT ?uri WHERE { res/0 res/1 ?uri } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 115391  - Classes found: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 115392  - Properties found: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 115392  - Entities found: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 115406  - Queries generated: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 115476  - None of the queries worked, trying all other templates
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 115495  - Templates found: 6
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 115495  - SELECT DISTINCT ?uri WHERE { ?uri res/0 res/1 } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 115495  - SELECT DISTINCT ?uri WHERE { ?x res/0 res/1 ; res/2 res/3 ; res/4 ?uri }
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 115495  - SELECT DISTINCT ?uri WHERE { ?uri res/0 res/1 ; res/2 res/3 }
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 115495  - SELECT DISTINCT ?num WHERE { res/0 res/1 ?city . ?city res/2 ?num }
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 115495  - SELECT DISTINCT ?uri WHERE { res/0 res/1 ?uri . ?uri res/2 res/3 } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 115495  - SELECT DISTINCT ?string WHERE { ?x res/0 res/1 ; res/2 ?string } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 115535  - Queries generated: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 115642  - Selected query: 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.controller.TeBaQAController 115642  - Answer: {"answers":[],"sparql":""}
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.controller.TeBaQAController 118009  - /qa-simple received POST request with: question='What was the budget of movie Forrest Gump?' and lang='en'
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 118296  - Templates found: 1
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 118296  - SELECT DISTINCT ?uri WHERE { res/0 res/1 ?uri } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 118475  - Classes found: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 118475  - Properties found: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 118475  - Entities found: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 118487  - Queries generated: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 118554  - None of the queries worked, trying all other templates
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 118577  - Templates found: 6
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 118578  - SELECT DISTINCT ?uri WHERE { ?uri res/0 res/1 } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 118578  - SELECT DISTINCT ?uri WHERE { ?x res/0 res/1 ; res/2 res/3 ; res/4 ?uri }
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 118578  - SELECT DISTINCT ?uri WHERE { ?uri res/0 res/1 ; res/2 res/3 }
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 118578  - SELECT DISTINCT ?num WHERE { res/0 res/1 ?city . ?city res/2 ?num }
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 118578  - SELECT DISTINCT ?uri WHERE { res/0 res/1 ?uri . ?uri res/2 res/3 } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 118578  - SELECT DISTINCT ?string WHERE { ?x res/0 res/1 ; res/2 ?string } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 118606  - Queries generated: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 118665  - Selected query: 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.controller.TeBaQAController 118666  - Answer: {"answers":[],"sparql":""}
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.controller.TeBaQAController 120112  - /qa-simple received POST request with: question='How much is the population of Mexico City?' and lang='en'
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 120415  - Templates found: 1
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 120415  - SELECT DISTINCT ?uri WHERE { res/0 res/1 ?uri } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 120585  - Classes found: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 120586  - Properties found: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 120586  - Entities found: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 120598  - Queries generated: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 120673  - None of the queries worked, trying all other templates
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 120690  - Templates found: 6
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 120690  - SELECT DISTINCT ?uri WHERE { ?uri res/0 res/1 } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 120690  - SELECT DISTINCT ?uri WHERE { ?x res/0 res/1 ; res/2 res/3 ; res/4 ?uri }
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 120690  - SELECT DISTINCT ?uri WHERE { ?uri res/0 res/1 ; res/2 res/3 }
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 120690  - SELECT DISTINCT ?num WHERE { res/0 res/1 ?city . ?city res/2 ?num }
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 120690  - SELECT DISTINCT ?uri WHERE { res/0 res/1 ?uri . ?uri res/2 res/3 } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 120690  - SELECT DISTINCT ?string WHERE { ?x res/0 res/1 ; res/2 ?string } 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 120721  - Queries generated: 0
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.service.OrchestrationService 120809  - Selected query: 
INFO  de.uni.leipzig.tebaqa.tebaqacontroller.controller.TeBaQAController 120810  - Answer: {"answers":[],"sparql":""}

Docker Compose

I noticed that you start the different Dockerfiles in a bash script, wouldn't it be more appropriate to use Docker Compose instead? This has the advantage of being easier to administer on a server.
If you want, I can write a docker compose file for you and add it in a pull request.

Train TeBaQA using custom datasets

Hi, @tohardik,

I want to train/fine-tune TeBaQA using my own datasets, is there any tutorial about this?

When locally deploying TeBaQA, the elasticsearch indexing/dumping DBpedia took me more than 1 day, and unfortunately finally it failed. In general, how long will this process take?

Many thanks in advance.

OutOfMemoryError without exit or recovery

After processing some (a lot of) requests, it starts getting OutOfMemoryError in entitylinking module and every response to /qa-simple API comes back empty afterwards:

{"answers":["http://dbpedia.org/resource/West_Germany","http://dbpedia.org/resource/Hamburg"],"sparql":"SELECT DISTINCT ?uri WHERE { <http://dbpedia.org/resource/Angela_Merkel> <http://dbpedia.org/ontology/birthPlace> ?uri } "}
{"answers":[]}
19:50:37.152 [http-nio-8082-exec-3] INFO  de.uni.leipzig.tebaqa.entitylinking.spring.EntityLinkingController - Angela Merkel --> http://dbpedia.org/resource/Angela_Merkell
19:50:37.152 [http-nio-8082-exec-3] INFO  de.uni.leipzig.tebaqa.entitylinking.spring.EntityLinkingController - the birthplace --> http://dbpedia.org/resource/The_Birthplace
19:50:37.152 [http-nio-8082-exec-3] INFO  de.uni.leipzig.tebaqa.entitylinking.spring.EntityLinkingController - Angela --> http://dbpedia.org/resource/Portuguese_Angola
19:50:37.152 [http-nio-8082-exec-3] INFO  de.uni.leipzig.tebaqa.entitylinking.spring.EntityLinkingController - Angela --> http://dbpedia.org/resource/People's_Republic_of_Angola
19:50:37.152 [http-nio-8082-exec-3] INFO  de.uni.leipzig.tebaqa.entitylinking.spring.EntityLinkingController - Angela --> http://dbpedia.org/resource/Angela_(given_name)
19:50:38.714 [http-nio-8082-exec-5] INFO  de.uni.leipzig.tebaqa.entitylinking.spring.EntityLinkingController - /entity-linking received POST request with: question='Where is the birthplace of Angela Merkel?' & lang=en
19:50:41.237 [http-nio-8082-exec-5] INFO  de.uni.leipzig.tebaqa.tebaqacommons.elasticsearch.SearchService - Searching entities for co-occurrence: Optional[birthplace of]
19:50:41.237 [http-nio-8082-exec-5] ERROR de.uni.leipzig.tebaqa.tebaqacommons.elasticsearch.SearchService - Failed to search entities: Connection closed unexpectedly
19:50:41.245 [pool-1508-thread-1] ERROR org.apache.http.impl.nio.client.InternalHttpAsyncClient - I/O reactor terminated abnormally
org.apache.http.nio.reactor.IOReactorException: I/O dispatch worker terminated abnormally
	at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:359) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:221) ~[httpasyncclient-4.1.4.jar!/:4.1.4]
	at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64) [httpasyncclient-4.1.4.jar!/:4.1.4]
	at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.lang.OutOfMemoryError: Cannot reserve 716529 bytes of direct buffer memory (allocated: 1073101102, limit: 1073741824)
	at java.nio.Bits.reserveMemory(Bits.java:178) ~[?:?]
	at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:118) ~[?:?]
	at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:332) ~[?:?]
	at sun.nio.ch.Util.getTemporaryDirectBuffer(Util.java:243) ~[?:?]
	at sun.nio.ch.IOUtil.read(IOUtil.java:303) ~[?:?]
	at sun.nio.ch.IOUtil.read(IOUtil.java:269) ~[?:?]
	at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:417) ~[?:?]
	at org.apache.http.impl.nio.codecs.AbstractContentDecoder.readFromChannel(AbstractContentDecoder.java:154) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.apache.http.impl.nio.codecs.LengthDelimitedDecoder.read(LengthDelimitedDecoder.java:84) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.apache.http.nio.util.SimpleInputBuffer.consumeContent(SimpleInputBuffer.java:66) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.elasticsearch.client.HeapBufferedAsyncResponseConsumer.onContentReceived(HeapBufferedAsyncResponseConsumer.java:96) ~[elasticsearch-rest-client-6.6.1.jar!/:6.6.1]
	at org.apache.http.nio.protocol.AbstractAsyncResponseConsumer.consumeContent(AbstractAsyncResponseConsumer.java:147) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.apache.http.impl.nio.client.MainClientExec.consumeContent(MainClientExec.java:329) ~[httpasyncclient-4.1.4.jar!/:4.1.4]
	at org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.consumeContent(DefaultClientExchangeHandlerImpl.java:157) ~[httpasyncclient-4.1.4.jar!/:4.1.4]
	at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.inputReady(HttpAsyncRequestExecutor.java:336) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:265) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:81) ~[httpasyncclient-4.1.4.jar!/:4.1.4]
	at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:39) ~[httpasyncclient-4.1.4.jar!/:4.1.4]
	at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:114) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:162) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:337) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:591) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	... 1 more
19:51:11.239 [http-nio-8082-exec-5] INFO  de.uni.leipzig.tebaqa.tebaqacommons.elasticsearch.SearchService - Searching entities for co-occurrence: Optional[birthplace of]
19:51:11.239 [http-nio-8082-exec-5] ERROR de.uni.leipzig.tebaqa.tebaqacommons.elasticsearch.SearchService - Failed to search entities: listener timeout after waiting for [30000] ms
19:51:11.950 [http-nio-8082-exec-4] INFO  de.uni.leipzig.tebaqa.entitylinking.spring.EntityLinkingController - /entity-linking received POST request with: question='Where is the birthplace of Angela Merkel?' & lang=en
19:51:14.276 [http-nio-8082-exec-4] INFO  de.uni.leipzig.tebaqa.tebaqacommons.elasticsearch.SearchService - Searching entities for co-occurrence: Optional[birthplace of]
19:51:14.276 [http-nio-8082-exec-4] ERROR de.uni.leipzig.tebaqa.tebaqacommons.elasticsearch.SearchService - Failed to search entities: Connection closed unexpectedly
19:51:14.280 [pool-1509-thread-1] ERROR org.apache.http.impl.nio.client.InternalHttpAsyncClient - I/O reactor terminated abnormally
org.apache.http.nio.reactor.IOReactorException: I/O dispatch worker terminated abnormally
	at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:359) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:221) ~[httpasyncclient-4.1.4.jar!/:4.1.4]
	at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64) [httpasyncclient-4.1.4.jar!/:4.1.4]
	at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.lang.OutOfMemoryError: Cannot reserve 716529 bytes of direct buffer memory (allocated: 1073101102, limit: 1073741824)
	at java.nio.Bits.reserveMemory(Bits.java:178) ~[?:?]
	at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:118) ~[?:?]
	at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:332) ~[?:?]
	at sun.nio.ch.Util.getTemporaryDirectBuffer(Util.java:243) ~[?:?]
	at sun.nio.ch.IOUtil.read(IOUtil.java:303) ~[?:?]
	at sun.nio.ch.IOUtil.read(IOUtil.java:269) ~[?:?]
	at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:417) ~[?:?]
	at org.apache.http.impl.nio.codecs.AbstractContentDecoder.readFromChannel(AbstractContentDecoder.java:154) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.apache.http.impl.nio.codecs.LengthDelimitedDecoder.read(LengthDelimitedDecoder.java:84) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.apache.http.nio.util.SimpleInputBuffer.consumeContent(SimpleInputBuffer.java:66) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.elasticsearch.client.HeapBufferedAsyncResponseConsumer.onContentReceived(HeapBufferedAsyncResponseConsumer.java:96) ~[elasticsearch-rest-client-6.6.1.jar!/:6.6.1]
	at org.apache.http.nio.protocol.AbstractAsyncResponseConsumer.consumeContent(AbstractAsyncResponseConsumer.java:147) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.apache.http.impl.nio.client.MainClientExec.consumeContent(MainClientExec.java:329) ~[httpasyncclient-4.1.4.jar!/:4.1.4]
	at org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.consumeContent(DefaultClientExchangeHandlerImpl.java:157) ~[httpasyncclient-4.1.4.jar!/:4.1.4]
	at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.inputReady(HttpAsyncRequestExecutor.java:336) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:265) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:81) ~[httpasyncclient-4.1.4.jar!/:4.1.4]
	at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:39) ~[httpasyncclient-4.1.4.jar!/:4.1.4]
	at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:114) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:162) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:337) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:591) ~[httpcore-nio-4.4.13.jar!/:4.4.13]
	... 1 more
19:51:44.278 [http-nio-8082-exec-4] INFO  de.uni.leipzig.tebaqa.tebaqacommons.elasticsearch.SearchService - Searching entities for co-occurrence: Optional[birthplace of]
19:51:44.278 [http-nio-8082-exec-4] ERROR de.uni.leipzig.tebaqa.tebaqacommons.elasticsearch.SearchService - Failed to search entities: listener timeout after waiting for [30000] ms

try {
foundEntities = index.searchEntity(coOccurrence, connectedEntity, connectedProperty, typeFilter);
if (coOccurrence.isPresent()) foundEntities = getBestCandidates(coOccurrence.get(), foundEntities, EntityCandidate.class);
} catch (IOException e) {
LOGGER.info("Searching entities for co-occurrence: " + coOccurrence);
LOGGER.error("Failed to search entities: " + e.getMessage());
foundEntities = Collections.emptySet();
}
return foundEntities;

Things that need to be resolved:

  • When such exception happens, it returns an empty set. Can there be the same empty set response for a normally processed request in entitylinking component? Do other components handle this situation meaningfully? In the QA API it could be helpful if it actually returns an error (for example, HTTP 500) instead of an answer with an empty array in case of a request which it failed to process.
  • TeBaQA should not remain in a running but not operational state. If it encounters such a unrecoverable situation, it should exit instead (and be restarted).
  • The underlying memory issue looks like a memory leak which accumulates given enough requests.

Use all QALD Questions

Use all QALD Questions. The QALD Questions build up on each other so its important to sort out duplicate questions.

build failure in template classification service

Hi, I'm trying to install TeBaQA in ubuntu, I've created the indexes and checked they were properly created in elastic search. then buil and ran the project. When trying any example I get no answer, therefore I've checked the nohup for ach service one by one from zero.
I've realized that there's a build failure in the template classification service, What I'm doing wrong?. I've noticed that there are several file missing lines, the content of the nohup file, therefore I'll leave the files in the template classification folder.

Template classification folder files

root@ubuntu-s-4vcpu-8gb-intel-fra1-01:~/TeBaQA/template-classification# ls
Train_QALD9_Train_Multilingual.arff
build.log
graphs_QALD9_Train_Multilingual.txt
graphs_qald-9-train-multilingual.json.txt
logs
mappings_QALD9_Train_Multilingual.json
mappings_qald-9-train-multilingual.json.json
nohup.out
pom.xml
qald-9-train-multilingual.json
question_classification_QALD9_Train_Multilingual.model
src
target

nohup.out content for the template classification service:

[INFO] Scanning for projects...
[INFO] 
[INFO] -----------< de.uni.leipzig.tebaqa:template-classification >------------
[INFO] Building template-classification 1.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] >>> exec-maven-plugin:1.2.1:java (default-cli) > validate @ template-classification >>>
[INFO] 
[INFO] <<< exec-maven-plugin:1.2.1:java (default-cli) < validate @ template-classification <<<
[INFO] 
Downloading from spring-releases: https://repo.spring.io/libs-release/org/aksw/qa/qa.ml/0.0.1-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.aksw.qa:qa.ml:0.0.1-SNAPSHOT/maven-metadata.xml from/to spring-releases (https://repo.spring.io/libs-release): Authentication failed for https://repo.spring.io/libs-release/org/aksw/qa/qa.ml/0.0.1-SNAPSHOT/maven-metadata.xml 401 Unauthorized
[WARNING] Failure to transfer org.aksw.qa:qa.ml:0.0.1-SNAPSHOT/maven-metadata.xml from https://repo.spring.io/libs-release was cached in the local repository, resolution will not be reattempted until the update interval of spring-releases has elapsed or updates are forced. Original error: Could not transfer metadata org.aksw.qa:qa.ml:0.0.1-SNAPSHOT/maven-metadata.xml from/to spring-releases (https://repo.spring.io/libs-release): Authentication failed for https://repo.spring.io/libs-release/org/aksw/qa/qa.ml/0.0.1-SNAPSHOT/maven-metadata.xml 401 Unauthorized
Downloading from spring-releases: https://repo.spring.io/libs-release/nz/ac/waikato/cms/weka/weka-dev/maven-metadata.xml
Downloading from rabbit-milestone: https://dl.bintray.com/rabbitmq/maven-milestones/nz/ac/waikato/cms/weka/weka-dev/maven-metadata.xml
[WARNING] Could not transfer metadata nz.ac.waikato.cms.weka:weka-dev/maven-metadata.xml from/to spring-releases (https://repo.spring.io/libs-release): Authentication failed for https://repo.spring.io/libs-release/nz/ac/waikato/cms/weka/weka-dev/maven-metadata.xml 401 Unauthorized
[WARNING] Could not transfer metadata nz.ac.waikato.cms.weka:weka-dev/maven-metadata.xml from/to rabbit-milestone (https://dl.bintray.com/rabbitmq/maven-milestones): Transfer failed for https://dl.bintray.com/rabbitmq/maven-milestones/nz/ac/waikato/cms/weka/weka-dev/maven-metadata.xml
Downloading from spring-releases: https://repo.spring.io/libs-release/org/aksw/qa/systems/0.0.7-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.aksw.qa:systems:0.0.7-SNAPSHOT/maven-metadata.xml from/to spring-releases (https://repo.spring.io/libs-release): Authentication failed for https://repo.spring.io/libs-release/org/aksw/qa/systems/0.0.7-SNAPSHOT/maven-metadata.xml 401 Unauthorized
[WARNING] Failure to transfer org.aksw.qa:systems:0.0.7-SNAPSHOT/maven-metadata.xml from https://repo.spring.io/libs-release was cached in the local repository, resolution will not be reattempted until the update interval of spring-releases has elapsed or updates are forced. Original error: Could not transfer metadata org.aksw.qa:systems:0.0.7-SNAPSHOT/maven-metadata.xml from/to spring-releases (https://repo.spring.io/libs-release): Authentication failed for https://repo.spring.io/libs-release/org/aksw/qa/systems/0.0.7-SNAPSHOT/maven-metadata.xml 401 Unauthorized
Downloading from spring-releases: https://repo.spring.io/libs-release/org/aksw/simba/topicmodeling.concurrent/0.0.2-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.aksw.simba:topicmodeling.concurrent:0.0.2-SNAPSHOT/maven-metadata.xml from/to spring-releases (https://repo.spring.io/libs-release): Authentication failed for https://repo.spring.io/libs-release/org/aksw/simba/topicmodeling.concurrent/0.0.2-SNAPSHOT/maven-metadata.xml 401 Unauthorized
[WARNING] Failure to transfer org.aksw.simba:topicmodeling.concurrent:0.0.2-SNAPSHOT/maven-metadata.xml from https://repo.spring.io/libs-release was cached in the local repository, resolution will not be reattempted until the update interval of spring-releases has elapsed or updates are forced. Original error: Could not transfer metadata org.aksw.simba:topicmodeling.concurrent:0.0.2-SNAPSHOT/maven-metadata.xml from/to spring-releases (https://repo.spring.io/libs-release): Authentication failed for https://repo.spring.io/libs-release/org/aksw/simba/topicmodeling.concurrent/0.0.2-SNAPSHOT/maven-metadata.xml 401 Unauthorized
Downloading from spring-releases: https://repo.spring.io/libs-release/org/aksw/simba/topicmodeling.parent/0.0.2-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.aksw.simba:topicmodeling.parent:0.0.2-SNAPSHOT/maven-metadata.xml from/to spring-releases (https://repo.spring.io/libs-release): Authentication failed for https://repo.spring.io/libs-release/org/aksw/simba/topicmodeling.parent/0.0.2-SNAPSHOT/maven-metadata.xml 401 Unauthorized
Downloading from spring-releases: https://repo.spring.io/libs-release/org/aksw/simba/topicmodeling/0.0.2-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.aksw.simba:topicmodeling:0.0.2-SNAPSHOT/maven-metadata.xml from/to spring-releases (https://repo.spring.io/libs-release): Authentication failed for https://repo.spring.io/libs-release/org/aksw/simba/topicmodeling/0.0.2-SNAPSHOT/maven-metadata.xml 401 Unauthorized
[INFO] 
[INFO] --- exec-maven-plugin:1.2.1:java (default-cli) @ template-classification ---
21:40:56.245 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] INFO  de.uni.leipzig.tebaqa.tebaqacommons.nlp.StanfordPipelineProvider - Creating StanfordCoreNLP pipeline...
21:41:23.109 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] INFO  de.uni.leipzig.tebaqa.template.service.WekaClassifier - Initializing Weka classifier
21:41:23.114 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] INFO  de.uni.leipzig.tebaqa.template.service.WekaClassifier - Graphs file does not exist at /root/TeBaQA/template-classification/graphs_qald-9-train-multilingual.json.txt
21:41:23.115 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.service.WekaClassifier - Mappings file does not exist at /root/TeBaQA/template-classification/mappings_qald-9-train-multilingual.json.json
21:41:23.115 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] INFO  de.uni.leipzig.tebaqa.template.service.WekaClassifier - Training classifier model using qald-9-train-multilingual.json
21:41:23.116 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] INFO  de.uni.leipzig.tebaqa.template.service.WekaClassifier - Clustering questions ...
21:41:23.571 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] INFO  de.uni.leipzig.tebaqa.template.service.WekaClassifier - Building query clusters...
21:41:24.324 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - Query: SELECT DISTINCT ?uri WHERE { ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Film> . ?uri <http://dbpedia.org/ontology/director> <http://dbpedia.org/resource/Steven_Spielberg> . ?uri <http://dbpedia.org/ontology/budget> ?b . FILTER( xsd:double(?b) >= 8.0E7 ) }
21:41:24.325 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - org.apache.jena.query.QueryParseException: Line 1, column 270: Unresolved prefixed name: xsd:double
21:41:24.325 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - java.lang.NullPointerException
21:41:24.357 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - Query: SELECT DISTINCT ?uri WHERE { ?uri <http://dbpedia.org/ontology/occupation> <http://dbpedia.org/resource/Poet> . ?x <http://dbpedia.org/ontology/author> ?uri . ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Book> . } ORDER BY DESC(COUNT(?x)) OFFSET 0 LIMIT 1
21:41:24.358 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - org.apache.jena.query.QueryParseException: Non-group key variable in SELECT: ?uri
21:41:24.358 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - java.lang.NullPointerException
21:41:24.397 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - Query: SELECT DISTINCT ?x WHERE { ?uri <http://dbpedia.org/ontology/deathCause> ?x . } ORDER BY DESC(COUNT(DISTINCT ?uri)) OFFSET 0 LIMIT 1
21:41:24.397 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - org.apache.jena.query.QueryParseException: Non-group key variable in SELECT: ?x
21:41:24.397 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - java.lang.NullPointerException
21:41:24.397 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - Query: SELECT DISTINCT ?uri WHERE { <http://dbpedia.org/resource/Mount_McKinley> dbo:wikiPageRedirects ?x . ?x <http://dbpedia.org/ontology/locatedInArea> ?uri. ?uri rdf:type yago:WikicatStatesOfTheUnitedStates }
21:41:24.398 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - org.apache.jena.query.QueryParseException: Line 1, column 75: Unresolved prefixed name: dbo:wikiPageRedirects
21:41:24.398 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - java.lang.NullPointerException
21:41:24.404 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - Query: SELECT DISTINCT ?uri WHERE { ?uri <http://dbpedia.org/ontology/occupation> <http://dbpedia.org/resource/Musician> . ?x <http://dbpedia.org/ontology/author> ?uri . ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Book> . } ORDER BY DESC(COUNT(?x)) OFFSET 0 LIMIT 1
21:41:24.404 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - org.apache.jena.query.QueryParseException: Non-group key variable in SELECT: ?uri
21:41:24.404 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - java.lang.NullPointerException
21:41:24.454 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - Query: SELECT DISTINCT ?uri WHERE { ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Actor> . ?f <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Film> . ?f <http://dbpedia.org/ontology/starring> ?uri . } ORDER BY DESC(COUNT(DISTINCT(?f))) OFFSET 0 LIMIT 1
21:41:24.454 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - org.apache.jena.query.QueryParseException: Non-group key variable in SELECT: ?uri
21:41:24.454 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - java.lang.NullPointerException
21:41:24.466 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - Query: SELECT DISTINCT ?uri WHERE { ?film <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Film> . ?film <http://dbpedia.org/ontology/producer> ?uri . } ORDER BY DESC(COUNT(?film)) OFFSET 0 LIMIT 1
21:41:24.467 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - org.apache.jena.query.QueryParseException: Non-group key variable in SELECT: ?uri
21:41:24.467 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - java.lang.NullPointerException
21:41:24.476 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - Query: SELECT DISTINCT ?uri WHERE { ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Song> . ?uri <http://dbpedia.org/ontology/artist> <http://dbpedia.org/resource/Bruce_Springsteen> . ?uri <http://dbpedia.org/ontology/releaseDate> ?date . FILTER (?date >= '1980-01-01'^^xsd:date && ?date <= '1990-12-31'^^xsd:date) }
21:41:24.476 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - org.apache.jena.query.QueryParseException: Line 1, column 300: Unresolved prefixed name: xsd:date
21:41:24.476 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - java.lang.NullPointerException
21:41:24.480 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - Query: SELECT DISTINCT ?uri WHERE { ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Country> . ?uri <http://dbpedia.org/property/officialLanguages> ?language . } ORDER BY DESC(COUNT(?language)) OFFSET 0 LIMIT 1
21:41:24.480 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - org.apache.jena.query.QueryParseException: Non-group key variable in SELECT: ?uri
21:41:24.481 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - java.lang.NullPointerException
21:41:24.489 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - Query: SELECT DISTINCT ?uri WHERE { ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/WorldHeritageSite> . { ?uri <http://dbpedia.org/property/year> '2013'^^xsd:integer . } UNION { ?uri <http://dbpedia.org/property/year> '2014'^^xsd:integer . } }
21:41:24.489 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - org.apache.jena.query.QueryParseException: Line 1, column 185: Unresolved prefixed name: xsd:integer
21:41:24.489 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - java.lang.NullPointerException
21:41:24.502 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - Query: SELECT COUNT(DISTINCT ?uri AS ?uri) WHERE { ?uri <http://dbpedia.org/ontology/director> <http://dbpedia.org/resource/Park_Chan-wook> . }
21:41:24.502 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - org.apache.jena.query.QueryParseException: Encountered " "count" "COUNT "" at line 1, column 8.
Was expecting one of:
    <VAR1> ...
    <VAR2> ...
    "distinct" ...
    "reduced" ...
    "(" ...
    "*" ...
    
21:41:24.503 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - java.lang.NullPointerException
21:41:24.516 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - Query: SELECT DISTINCT ?uri WHERE { ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Actor> . ?uri <http://dbpedia.org/ontology/birthPlace> <http://dbpedia.org/resource/Paris> . ?uri <http://dbpedia.org/ontology/birthDate> ?date . FILTER ( ?date >= xsd:dateTime('1950-12-31T00:00:00Z')) }
21:41:24.517 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - org.apache.jena.query.QueryParseException: Line 1, column 278: Unresolved prefixed name: xsd:dateTime
21:41:24.517 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - java.lang.NullPointerException
21:41:24.530 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - Query: PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX dbp: <http://dbpedia.org/property/> PREFIX dbr: <http://dbpedia.org/resource/> SELECT ?book WHERE { { ?book dbo:author dbr:Dan_Brown . ?book dbp:releaseDate ?date } UNION { ?book dbo:author dbr:Dan_Brown . ?book dbo:publicationDate ?date} } ORDER BY DESC(xsd:date(?date)) LIMIT 1
21:41:24.530 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - org.apache.jena.query.QueryParseException: Line 1, column 306: Unresolved prefixed name: xsd:date
21:41:24.530 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] WARN  de.uni.leipzig.tebaqa.template.model.QueryIsomorphism - java.lang.NullPointerException
21:41:24.839 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] INFO  de.uni.leipzig.tebaqa.template.service.WekaClassifier - 8 clusters created.
21:41:24.839 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] INFO  de.uni.leipzig.tebaqa.template.service.WekaClassifier - Extracting graphs ...
21:41:24.840 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] INFO  de.uni.leipzig.tebaqa.template.service.WekaClassifier - Saving graphs in /root/TeBaQA/template-classification/graphs_qald-9-train-multilingual.json.txt
21:41:24.841 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] INFO  de.uni.leipzig.tebaqa.template.service.WekaClassifier - New file created at /root/TeBaQA/template-classification/graphs_qald-9-train-multilingual.json.txt
21:41:24.842 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] INFO  de.uni.leipzig.tebaqa.template.service.WekaClassifier - Graphs saved to file.
21:41:24.842 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] INFO  de.uni.leipzig.tebaqa.template.service.WekaClassifier - Extracting query templates ...
21:41:24.980 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] INFO  de.uni.leipzig.tebaqa.template.service.WekaClassifier - Saving mappings in /root/TeBaQA/template-classification/mappings_qald-9-train-multilingual.json.json
21:41:24.980 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] INFO  de.uni.leipzig.tebaqa.template.service.WekaClassifier - New file created at /root/TeBaQA/template-classification/mappings_qald-9-train-multilingual.json.json
21:41:25.004 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] INFO  de.uni.leipzig.tebaqa.template.service.WekaClassifier - Mappings saved to file.
21:41:25.005 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] INFO  de.uni.leipzig.tebaqa.template.service.WekaClassifier - Training classifier...
21:41:25.005 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] INFO  de.uni.leipzig.tebaqa.template.service.WekaClassifier - Instantiating ArffGenerator...
21:41:25.049 [de.uni.leipzig.tebaqa.template.ClassificationApplication.main()] INFO  de.uni.leipzig.tebaqa.template.nlp.ArffGenerator - Calculate the features per question and cluster
[WARNING] 
java.lang.reflect.InvocationTargetException
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:567)
    at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:297)
    at java.lang.Thread.run (Thread.java:830)
Caused by: java.lang.OutOfMemoryError: Java heap space
    at edu.stanford.nlp.parser.nndep.Classifier.preCompute (Classifier.java:662)
    at edu.stanford.nlp.parser.nndep.Classifier.preCompute (Classifier.java:644)
    at edu.stanford.nlp.parser.nndep.DependencyParser.initialize (DependencyParser.java:1189)
    at edu.stanford.nlp.parser.nndep.DependencyParser.loadModelFile (DependencyParser.java:630)
    at edu.stanford.nlp.parser.nndep.DependencyParser.loadFromModelFile (DependencyParser.java:499)
    at edu.stanford.nlp.pipeline.DependencyParseAnnotator.<init> (DependencyParseAnnotator.java:57)
    at edu.stanford.nlp.pipeline.AnnotatorImplementations.dependencies (AnnotatorImplementations.java:240)
    at edu.stanford.nlp.pipeline.StanfordCoreNLP.lambda$getNamedAnnotators$18 (StanfordCoreNLP.java:536)
    at edu.stanford.nlp.pipeline.StanfordCoreNLP$$Lambda$160/0x0000000800ec4c40.apply (Unknown Source)
    at edu.stanford.nlp.pipeline.StanfordCoreNLP.lambda$null$30 (StanfordCoreNLP.java:602)
    at edu.stanford.nlp.pipeline.StanfordCoreNLP$$Lambda$169/0x0000000800ec7040.get (Unknown Source)
    at edu.stanford.nlp.util.Lazy$3.compute (Lazy.java:126)
    at edu.stanford.nlp.util.Lazy.get (Lazy.java:31)
    at edu.stanford.nlp.pipeline.AnnotatorPool.get (AnnotatorPool.java:149)
    at edu.stanford.nlp.pipeline.StanfordCoreNLP.<init> (StanfordCoreNLP.java:251)
    at edu.stanford.nlp.pipeline.StanfordCoreNLP.<init> (StanfordCoreNLP.java:192)
    at edu.stanford.nlp.pipeline.StanfordCoreNLP.<init> (StanfordCoreNLP.java:188)
    at org.aksw.mlqa.analyzer.numberoftoken.NumberOfToken.<clinit> (NumberOfToken.java:36)
    at de.uni.leipzig.tebaqa.template.nlp.analyzer.Analyzer.<init> (Analyzer.java:26)
    at de.uni.leipzig.tebaqa.template.nlp.ArffGenerator.<init> (ArffGenerator.java:45)
    at de.uni.leipzig.tebaqa.template.service.WekaClassifier.trainClassifier (WekaClassifier.java:152)
    at de.uni.leipzig.tebaqa.template.service.WekaClassifier.initClassifier (WekaClassifier.java:116)
    at de.uni.leipzig.tebaqa.template.service.WekaClassifier.getClassifierFor (WekaClassifier.java:99)
    at de.uni.leipzig.tebaqa.template.service.WekaClassifier.getDefaultClassifier (WekaClassifier.java:71)
    at de.uni.leipzig.tebaqa.template.ClassificationApplication.main (ClassificationApplication.java:34)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:567)
    at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:297)
    at java.lang.Thread.run (Thread.java:830)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  51.302 s
[INFO] Finished at: 2023-07-17T21:41:37Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project template-classification: An exception occured while executing the Java class. null: InvocationTargetException: Java heap space -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


Any related paper?

Hi,

Is there any related paper describing the implementation of this approach, such as the one published in 2015 for HAWK?

include elasticsearch in docker setup

Please include and fill the elastic search index as a docker container.
This would be extremely helpful in the setup process, as right this needs to be done separately, which is very time consuming and version dependent.

Data files for indexing entities

Hi!
Thank you for sharing your impressive work.
I am trying to reproduce it. Now I have to index entities data to elasticsearch.
I have tried using mappingbased_objects_en.ttl from https://downloads.dbpedia.org/2016-10/core/ but still no luck.
There were some NullPointerException that occurred at:

I also try catching and passing exceptions. But in the result, there was not an entity item indexed to elasticsearch
I think the problem is caused by incorrect input files, but I still have no idea to get it. I have just started in this kind of task so there may be things I incorrectly did.
Could you please provide me the input .ttl file?
Thank you,
Hao

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.