Skip to content

lodqa/lodqa

Repository files navigation

LODQA

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.

Dependency

As LODQA is a web interface service, it works by communicating with LODQA_BS, which acts like an engine of the whole LODQA system.

License

Released under the MIT license.

Getting Started

git clone git@github.com:lodqa/lodqa.git
cd lodqa
bundle install
bundle exec rackup -s puma -E deployment

Prerequisites

LODQA depends on graphviz and some ruby gems. Install them:

Installing

Install the graphviz. For exapmle for the ubuntu.

sudo apt-get install -y graphviz

Install gem packages:

bundle install

Docker guide

touch .env
docker compose build
docker compose up

Deployment

Google authentication procedure

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

Added environment variable settings.(lodqa/docker-compose.yml)

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.

Create .env file.

cp .env.example .env

.env file settings.

CLIENT_ID=[Generated client id]
CLIENT_SECRET=[Generated client secret]

Development

Prerequisites

LODQA depends on some npm packages to develop. Install them:

Installing

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

About

A system to generate SPARQL queries from natural language queries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7