This project started in 2018 as ‘A Neural QA Model for DBpedia’ and is now looking to its 5th consecutive year at Google Summer of Code.
Introduction
Neural SPARQL Machines (NSpM) aim at building an end-to-end system to answer questions posed by user not versed with writing SPARQL queries.
Currently, billions of relationships on the Web are expressed in the RDF format. Accessing such data is difficult for a lay user, who does not know how to write a SPARQL query. This GSoC project consists of building upon the NSpM question answering system, which tries to make this humongous linked data accessible to a larger user base in their natural language (as of now restricted to English) by improving, adding and amending upon the existing codebase, which resides at the link below.
Documentation
Related work
The first 3 papers introduce and elaborate on Neural SPARQL Machines. Work number 3 was carried out by our GSoC 2019 student and published at KGSWC 2020. The 4th paper is an almost-complete survey of related approaches.
- SPARQL as a Foreign Language
- Neural Machine Translation for Query Construction and Composition
- Exploring Sequence-to-Sequence Models for SPARQL Pattern Composition
- Introduction to Neural Network based Approaches for Question Answering over Knowledge Graphs
GSoC Blogs
You may also check which problems past GSoC contributors worked on:
- [GSoC 2018] Aman’s Blog: https://amanmehta-maniac.github.io/
- [GSoC 2019] Anand’s Blog: A Neural QA Model for DBpedia | Making data accessible to everyone
- [GSoC 2020] Zheyuan’s Blog: https://baiblanc.github.io/
- [GSoC 2021] Siddhant’s Blog: Documenting my GSoC’21 journey at DBpedia | Neural-QA-Model-for-DBpedia
Warm-up tasks
- Read through the blogs and the reading list to get a good understanding of the code. This will allow you to get a good idea about the project.
- Run the pipelines in the
./gsoc/anand
and./gsoc/zheyuan
folders of the base repository using examples of your choice.
Your proposal
Now that you have a good understanding of the current state of the project, we suggest you to build proposals pondering on some of the following points, feel free to bring your own solutions to tackle the problems that the project faces.
- How can we automatically build the right question from the property label only?
- example a) from
<s> dbo:birthPlace <o>
inferwhere was <s> born?
- example b) from
<s> dbo:timeZone <o>
inferwhat time zone is <s> in?
- example a) from
- How can we automatically build question-query templates that feature one or more of the following?
- subordinate clauses or genitive:
which / that / of / ’s
- con-/disjunctions:
and / or / as well as
- modifiers:
which + mod / what + mod / demonyms
- comparative:
more than / -er than
- superlative:
most … / -est
- numeric / quantitative:
how many / long / tall
- subordinate clauses or genitive:
Consider experimenting with advanced approaches such as:
- GPT-2
- BERT
- BART-MNLI
- any other HuggingFace model you want
Project size
The size of this project can be either medium or large. Please state in your proposal the number of total project hours you intend to dedicate to it (175 or 300).
Mentors
@tsoru, @panchbhai1969, @nausheenfatma
Feel free to contact us for more information. We eagerly look forward to working with you and contributing towards making data accessible to all.