All Projects → AskNowQA → SQG

AskNowQA / SQG

Licence: GPL-3.0 License
Query Generation for Question Answering over Knowledge Bases

Programming Languages

python
139335 projects - #7 most used programming language
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to SQG

vaultaire
Query DSL and data access utilities for Corda developers.
Stars: ✭ 14 (-67.44%)
Mutual labels:  query-builder
PLE
Label Noise Reduction in Entity Typing (KDD'16)
Stars: ✭ 53 (+23.26%)
Mutual labels:  knowledgebase
Sentic-GCN
[KBS] Aspect-based sentiment analysis via affective knowledge enhanced graph convolutional networks
Stars: ✭ 19 (-55.81%)
Mutual labels:  knowledgebase
influxdb-php-sdk
InfluxDB PHP SDK - UDP/IP or HTTP adapters for read and write data
Stars: ✭ 88 (+104.65%)
Mutual labels:  query-builder
SPARQL
Lib PHP for SPARQL 1.1
Stars: ✭ 23 (-46.51%)
Mutual labels:  dbpedia
PdoOne
It simplifies the use of PDO in PHP by adding three methods: a simple wrapper between PDO, a query builder and an ORM.
Stars: ✭ 93 (+116.28%)
Mutual labels:  query-builder
laravel-filter
Configurable and modular approach to query Filters for Laravel
Stars: ✭ 85 (+97.67%)
Mutual labels:  query-builder
react-query-builder
Simple, configurable react query builder
Stars: ✭ 37 (-13.95%)
Mutual labels:  query-builder
active-persistence
Active Persistence is a implementation of Active Record Query Interface for JPA that makes it easy and fun.
Stars: ✭ 14 (-67.44%)
Mutual labels:  query-builder
typesql
TypeSQL - Generate Typescript API from raw MySQL queries. Compatible with Deno and Node.
Stars: ✭ 37 (-13.95%)
Mutual labels:  query-builder
apex-query-builder
Convenient query builder for dynamic SOQL queries
Stars: ✭ 37 (-13.95%)
Mutual labels:  query-builder
sociallink
Alignments between knowledge bases and social media
Stars: ✭ 16 (-62.79%)
Mutual labels:  dbpedia
query-builder
sql query builder library for crystal-lang
Stars: ✭ 47 (+9.3%)
Mutual labels:  query-builder
influx-query-builder
The super lightweight InfluxDB query builder implemented in Go
Stars: ✭ 16 (-62.79%)
Mutual labels:  query-builder
database
A fluent SQL query builder for MySQL and MariaDB
Stars: ✭ 18 (-58.14%)
Mutual labels:  query-builder
json-sql-builder2
Level Up Your SQL-Queries
Stars: ✭ 59 (+37.21%)
Mutual labels:  query-builder
searchable
Pattern-matching search and reusable queries in laravel.
Stars: ✭ 28 (-34.88%)
Mutual labels:  query-builder
web-development-101
Практическое введение во все инструменты, необходимые для создания рабочих веб-сайтов.
Stars: ✭ 21 (-51.16%)
Mutual labels:  knowledgebase
knowledge-base-content
Open-source knowledge base covering topics about developer experience.
Stars: ✭ 73 (+69.77%)
Mutual labels:  knowledgebase
sql-to-laravel-builder
SQL to Laravel Query Builder
Stars: ✭ 133 (+209.3%)
Mutual labels:  query-builder

Query Generation

Question answering (QA) systems over Knowledge Graph often consist of several components such as Named Entity Disambiguation (NED), Relation Extraction (RE), and Query Generation (QG). The main objective of this project is to generate SPARQL query for a given question which is annotated by its linked entities and relations.

SQG is a SPARQL Query Generator with modular architecture, enabling easy integration with other components for the construction of a fully functional QA pipeline. To increase the chance constructthe correct query, SQG is able to handle a set of annotations including several incorrect ones. It also benefits from Tree-LSTM model to deal with syntactic ambiguity of the input questions. Special adjustment is considered in order to cope with large-scale knowledge base.

Supported Questions

Currently the following questions are supported:

  • Single entity relation questions
  • Compound questions
  • Count questions
  • Boolean questions

Cite

If you would use the codebase, please cite our paper as well:

@inproceedings{zafar2018formal,
  title={Formal query generation for question answering over knowledge bases},
  author={Zafar, Hamid and Napolitano, Giulio and Lehmann, Jens},
  booktitle={European Semantic Web Conference},
  pages={714--728},
  year={2018},
  organization={Springer}
}

How-to

Data

Getting Started

You can find the list of required packages in here.

To run it (python 2.7 is required):

python sqg_webserver.py

Consume Web API

SQG provides a RESTfull api for the query generator.

Here is an example of how to use the api:

curl -i -H "Content-Type: application/json" -X POST -d '{"question":"What is the hometown of Nader Guirat, where Josef Johansson was born too?","relations":[{"surface":"","uris":[{"confidence":1,"uri":"http://dbpedia.org/property/birthPlace"}]},{"surface":"","uris":[{"confidence":1,"uri":"http://dbpedia.org/ontology/hometown"}]}],"entities":[{"surface":"","uris":[{"confidence":0.7,"uri":"http://dbpedia.org/resource/Josef_Johansson"},{"confidence":0.3,"uri":"http://dbpedia.org/resource/Barack_Obama"}]},{"surface":"","uris":[{"confidence":1,"uri":"http://dbpedia.org/resource/Nader_Guirat"}]}],"kb":"dbpedia"}' http://localhost:5000/qg/api/v1.0/query

License

This program is subject to the terms of the General Public License (GPL), Version 3.0.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].