This repository contains code for the Question Answering Component of Elas4RDF.
It is used to provide answers for the QA tab of Elas4RDF (demo available here), but it can be used as a REST API as well.
Endpoint: /answer
, Parameter: question
, Example: /answer?question=who is the father of Obama?
Requirements:
- python 3
- pip 3
- pip modules in requirements.txt (install with:
pip3 install -r requirements.txt
) - model files (download here to /resources folder)
To start:
- development server:
flask run --host=0.0.0.0
- production server:
gunicorn IP:PORT --workers 1 --limit-request-line 0 app:app --daemon --error-logfile gunicorn_error.log --timeout 120
C. Nikas, P. Fafalios and Y. Tzitzikas, Open Domain Question Answering over Knowledge Graphs using Keyword Search, Answer Type Prediction, SPARQL and Pre-trained Neural Models , International Semantic Web Conference (ISWC) 2021