It is a web interface service of LODQA.
LODQA (Linked Open Data Question-Answering) is a system to search SPARQL endpoints, using natural langauge queries, from which it generates SPARQL queries, submits them to SPARQL endpoints, collects answers, and present them to the users.
As LODQA is a web interface service, it works by communicating with LODQA_BS, which acts like an engine of the whole LODQA system.
Released under the MIT license.
git clone git@github.com:lodqa/lodqa.git
cd lodqa
bundle install
bundle exec rackup -s puma -E deployment
LODQA depends on graphviz and some ruby gems. Install them:
Install the graphviz. For exapmle for the ubuntu.
sudo apt-get install -y graphviz
Install gem packages:
bundle install
touch .env
docker compose build
docker compose up
Execute the following ur in the browser and log in with the lodqa specific user account.
https://console.developers.google.com/
Create a lodqa project. Example:
Lodqa Dialog Management
Click link(Enable APIs and services) to activate the API library:
Gmail API
OAuth consent screen.
User Type:
External
application name:
Lodqa Dialog Management
Create authentication information(OAuth Client ID). Application type:
Web Application
After creating an OAuth client, client id and client secret are generated:
client id
99999999999-xx99x9xx9xxxxxx9x9xx9xx9xxxxxx.apps.googleusercontent.com
client secret
xxxxxxxxx9xxxx9xx9x9xx99
Add an approved redirect URI.
[Same URL as environment variable(LODQA)]/oauth
LODQA_OAUTH=[Same URL as environment variable(LODQA)]
WEBSOCKET_SCHEMA=ws
WEBSOCKET_SCHEMA default value is wss. If you use ws, set it to ws.
cp .env.example .env
CLIENT_ID=[Generated client id]
CLIENT_SECRET=[Generated client secret]
LODQA depends on some npm packages to develop. Install them:
Install Node.js. For exapmle for ubuntu:
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs
For other operating systems, see Installing Node.js via package manager | Node.js
Install npm packages:
npm install