SlideShare a Scribd company logo
TRANSLATING
NATURAL LANGUAGE INTO SPARQL
FOR NEURAL QUESTION ANSWERING
Tommaso Soru
AKSW, University of Leipzig, Germany
6. Leipziger Semantic WebTag (LSWT2018) – 18.06.2018
LINKED OPEN DATA
👍 >10K published datasets
👍 ~150B triples as (s, p, o)
👎 Low accessibility
lod-cloud.net
2
SPARQL QUERY LANGUAGE
3
SELECT ?x WHERE {
?x a ontology:Person .
?x ontology:birthPlace dbpedia:Leipzig .
}
dbpedia:Walter_Ulbricht
dbpedia:Anita_Berber
dbpedia:Martin_Benno_Schmidt
…
NATURAL LANGUAGETO SPARQL
4
SELECT ?x WHERE {
?x a ontology:Person .
?x ontology:birthPlace dbpedia:Leipzig .
}
people born in Leipzig
who was born in Leipzig?
Leipzig is the birth place of whom?
MODELING NATURAL LANGUAGE
• Model semantics at word and phrase level.
• Be robust to small imperfections (e.g., a missing article).
• Handle question compositionality.
• Work with all human languages.
5
Language Model using Recurrent Neural Networks!
MACHINETRANSLATION
6
# Personen, die in Leipzig geboren sind
$ people born in Leipzig
MACHINETRANSLATION
7
$ people born in Leipzig
🤖 select var_x where brack_open var_x rdf_type
dbo_Person sep_dot var_x dbo_birthPlace dbr Leipzig
sep_dot brack_close
NEURAL SPARQL MACHINES
8
THE GENERATOR
9
Build question-query pairs from a set of manually-annotated templates.
where was <A> born?
select var_x where brack_open <A> dbo_birthPlace
var_x sep_dot brack_close
CHALLENGE #1: TEMPLATE DISCOVERY
10
where was <A> born?
select var_x where brack_open <A> dbo_birthPlace
var_x sep_dot brack_close
[…] Joe Abercrombie (born 1974) – fantasy writer and film
editor, was born in Lancaster and attended LRGS […]
Idea! Mine templates from a large text corpus using entity pairs. dbpedia:Joe_Abercrombie
dbpedia:Lancaster
ontology:birthPlace
THE LEARNER
11
Seq2Seq: (Bidirectional) Recurrent Neural Network + LSTM model
CHALLENGE #2:WORD EXPANSION
12
How to deal with synonyms and out-of-vocabulary words?
Credits: github.com/ahaas/synonymvis
Distributional Semantics
Similar words are represented by
similar vectors (or word embeddings).
Language model handles word
disambiguation using context.
THE INTERPRETER
13
Sequence interpretation for SPARQL query reconstruction.
select var_x where brack_open var_x rdf_type
dbo_Person sep_dot var_x dbo_birthPlace dbr_Leipzig
Missing brack_close
SELECT ?x WHERE {
?x a ontology:Person .
?x ontology:birthPlace dbpedia:Leipzig
}
CHALLENGE #3: COMPOSITIONALITY
14
?x a ontology:Person .
?x dbo:birthPlace dbr:Dresden .
people born in Dresden
dbr:Saxony dbo:capital ?x .
what’s the capital of Saxony?
?x a ontology:Person .
?x dbo:birthPlace ?y .
dbr:Saxony dbo:capital ?y .
people born in the capital of Saxony
Learn the correct variable assignments in the reconstructed query.
+
=
Curriculum Learning
Learn to translate at baby steps.
CURRENT STATE
15
• Non-funded work
• Involving people from these institutes:
• AKSW, University of Leipzig
• HTWK / Leipzig University of Applied Sciences
• Paderborn University
• Bonn University
• DBpedia’s Google Summer of Code 2018
• Looking for partnerships!
Tommaso Soru
AKSW Research Group
University of Leipzig
Germany
tsoru@informatik.uni-leipzig.de
http://tommaso-soru.it
🤖 https://github.com/AKSW/NSpM
Thank you.
16

More Related Content

Similar to Translating Natural Language into SPARQL for Neural Question Answering

Fasttext 20170720 yjy
Fasttext 20170720 yjyFasttext 20170720 yjy
Fasttext 20170720 yjy
재연 윤
 
Challenges in transfer learning in nlp
Challenges in transfer learning in nlpChallenges in transfer learning in nlp
Challenges in transfer learning in nlp
LaraOlmosCamarena
 
4V - WP3 Progress Report (TIN2013-46238)
4V - WP3 Progress Report (TIN2013-46238)4V - WP3 Progress Report (TIN2013-46238)
4V - WP3 Progress Report (TIN2013-46238)
Nandana Mihindukulasooriya
 
What you Can Make Out of Linked Data
What you Can Make Out of Linked DataWhat you Can Make Out of Linked Data
What you Can Make Out of Linked Data
Marco Fossati
 
Different Semantic Perspectives for Question Answering Systems
Different Semantic Perspectives for Question Answering SystemsDifferent Semantic Perspectives for Question Answering Systems
Different Semantic Perspectives for Question Answering Systems
Andre Freitas
 
Deep Generative Models
Deep Generative Models Deep Generative Models
Deep Generative Models
Chia-Wen Cheng
 
Federated data stores using semantic web technology
Federated data stores using semantic web technologyFederated data stores using semantic web technology
Federated data stores using semantic web technology
Steve Ray
 
semantic web & natural language
semantic web & natural languagesemantic web & natural language
semantic web & natural language
Nurfadhlina Mohd Sharef
 
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
BERT: Pre-training of Deep Bidirectional Transformers for Language UnderstandingBERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
Seonghyun Kim
 
Linked (Open) Data
Linked (Open) DataLinked (Open) Data
Linked (Open) Data
Bernhard Haslhofer
 
Bringing It All Together: Mapping Continuing Resources Vocabularies for Linke...
Bringing It All Together: Mapping Continuing Resources Vocabularies for Linke...Bringing It All Together: Mapping Continuing Resources Vocabularies for Linke...
Bringing It All Together: Mapping Continuing Resources Vocabularies for Linke...
NASIG
 
The Role of CNL and AMR in Scalable Abstractive Summarization for Multilingua...
The Role of CNL and AMR in Scalable Abstractive Summarization for Multilingua...The Role of CNL and AMR in Scalable Abstractive Summarization for Multilingua...
The Role of CNL and AMR in Scalable Abstractive Summarization for Multilingua...
Normunds Grūzītis
 
SSSW 2015 Sense Making
SSSW 2015 Sense MakingSSSW 2015 Sense Making
SSSW 2015 Sense Making
eXascale Infolab
 
Александр Ломов: "Reactjs + Haskell + Cloud Foundry = Love"
Александр Ломов: "Reactjs + Haskell + Cloud Foundry = Love"Александр Ломов: "Reactjs + Haskell + Cloud Foundry = Love"
Александр Ломов: "Reactjs + Haskell + Cloud Foundry = Love"
Olga Lavrentieva
 
Can Deep Learning Techniques Improve Entity Linking?
Can Deep Learning Techniques Improve Entity Linking?Can Deep Learning Techniques Improve Entity Linking?
Can Deep Learning Techniques Improve Entity Linking?
Julien PLU
 
Semantics reloaded
Semantics reloadedSemantics reloaded
Semantics reloaded
Steffen Staab
 
Preposition Semantics: Challenges in Comprehensive Corpus Annotation and Auto...
Preposition Semantics: Challenges in Comprehensive Corpus Annotation and Auto...Preposition Semantics: Challenges in Comprehensive Corpus Annotation and Auto...
Preposition Semantics: Challenges in Comprehensive Corpus Annotation and Auto...
Seth Grimes
 
The Ins and Outs of Preposition Semantics:
 Challenges in Comprehensive Corpu...
The Ins and Outs of Preposition Semantics:
 Challenges in Comprehensive Corpu...The Ins and Outs of Preposition Semantics:
 Challenges in Comprehensive Corpu...
The Ins and Outs of Preposition Semantics:
 Challenges in Comprehensive Corpu...
Seth Grimes
 
Deduktive Datenbanken & Logische Programme: Eine kleine Zeitreise
Deduktive Datenbanken & Logische Programme: Eine kleine ZeitreiseDeduktive Datenbanken & Logische Programme: Eine kleine Zeitreise
Deduktive Datenbanken & Logische Programme: Eine kleine Zeitreise
Bertram Ludäscher
 

Similar to Translating Natural Language into SPARQL for Neural Question Answering (20)

Fasttext 20170720 yjy
Fasttext 20170720 yjyFasttext 20170720 yjy
Fasttext 20170720 yjy
 
Challenges in transfer learning in nlp
Challenges in transfer learning in nlpChallenges in transfer learning in nlp
Challenges in transfer learning in nlp
 
4V - WP3 Progress Report (TIN2013-46238)
4V - WP3 Progress Report (TIN2013-46238)4V - WP3 Progress Report (TIN2013-46238)
4V - WP3 Progress Report (TIN2013-46238)
 
What you Can Make Out of Linked Data
What you Can Make Out of Linked DataWhat you Can Make Out of Linked Data
What you Can Make Out of Linked Data
 
Ontologies in RDF-S/OWL
Ontologies in RDF-S/OWLOntologies in RDF-S/OWL
Ontologies in RDF-S/OWL
 
Different Semantic Perspectives for Question Answering Systems
Different Semantic Perspectives for Question Answering SystemsDifferent Semantic Perspectives for Question Answering Systems
Different Semantic Perspectives for Question Answering Systems
 
Deep Generative Models
Deep Generative Models Deep Generative Models
Deep Generative Models
 
Federated data stores using semantic web technology
Federated data stores using semantic web technologyFederated data stores using semantic web technology
Federated data stores using semantic web technology
 
semantic web & natural language
semantic web & natural languagesemantic web & natural language
semantic web & natural language
 
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
BERT: Pre-training of Deep Bidirectional Transformers for Language UnderstandingBERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
 
Linked (Open) Data
Linked (Open) DataLinked (Open) Data
Linked (Open) Data
 
Bringing It All Together: Mapping Continuing Resources Vocabularies for Linke...
Bringing It All Together: Mapping Continuing Resources Vocabularies for Linke...Bringing It All Together: Mapping Continuing Resources Vocabularies for Linke...
Bringing It All Together: Mapping Continuing Resources Vocabularies for Linke...
 
The Role of CNL and AMR in Scalable Abstractive Summarization for Multilingua...
The Role of CNL and AMR in Scalable Abstractive Summarization for Multilingua...The Role of CNL and AMR in Scalable Abstractive Summarization for Multilingua...
The Role of CNL and AMR in Scalable Abstractive Summarization for Multilingua...
 
SSSW 2015 Sense Making
SSSW 2015 Sense MakingSSSW 2015 Sense Making
SSSW 2015 Sense Making
 
Александр Ломов: "Reactjs + Haskell + Cloud Foundry = Love"
Александр Ломов: "Reactjs + Haskell + Cloud Foundry = Love"Александр Ломов: "Reactjs + Haskell + Cloud Foundry = Love"
Александр Ломов: "Reactjs + Haskell + Cloud Foundry = Love"
 
Can Deep Learning Techniques Improve Entity Linking?
Can Deep Learning Techniques Improve Entity Linking?Can Deep Learning Techniques Improve Entity Linking?
Can Deep Learning Techniques Improve Entity Linking?
 
Semantics reloaded
Semantics reloadedSemantics reloaded
Semantics reloaded
 
Preposition Semantics: Challenges in Comprehensive Corpus Annotation and Auto...
Preposition Semantics: Challenges in Comprehensive Corpus Annotation and Auto...Preposition Semantics: Challenges in Comprehensive Corpus Annotation and Auto...
Preposition Semantics: Challenges in Comprehensive Corpus Annotation and Auto...
 
The Ins and Outs of Preposition Semantics:
 Challenges in Comprehensive Corpu...
The Ins and Outs of Preposition Semantics:
 Challenges in Comprehensive Corpu...The Ins and Outs of Preposition Semantics:
 Challenges in Comprehensive Corpu...
The Ins and Outs of Preposition Semantics:
 Challenges in Comprehensive Corpu...
 
Deduktive Datenbanken & Logische Programme: Eine kleine Zeitreise
Deduktive Datenbanken & Logische Programme: Eine kleine ZeitreiseDeduktive Datenbanken & Logische Programme: Eine kleine Zeitreise
Deduktive Datenbanken & Logische Programme: Eine kleine Zeitreise
 

Recently uploaded

Seminar of U.V. Spectroscopy by SAMIR PANDA
 Seminar of U.V. Spectroscopy by SAMIR PANDA Seminar of U.V. Spectroscopy by SAMIR PANDA
Seminar of U.V. Spectroscopy by SAMIR PANDA
SAMIR PANDA
 
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATIONPRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
ChetanK57
 
Comparative structure of adrenal gland in vertebrates
Comparative structure of adrenal gland in vertebratesComparative structure of adrenal gland in vertebrates
Comparative structure of adrenal gland in vertebrates
sachin783648
 
erythropoiesis-I_mechanism& clinical significance.pptx
erythropoiesis-I_mechanism& clinical significance.pptxerythropoiesis-I_mechanism& clinical significance.pptx
erythropoiesis-I_mechanism& clinical significance.pptx
muralinath2
 
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Sérgio Sacani
 
Hemoglobin metabolism_pathophysiology.pptx
Hemoglobin metabolism_pathophysiology.pptxHemoglobin metabolism_pathophysiology.pptx
Hemoglobin metabolism_pathophysiology.pptx
muralinath2
 
S.1 chemistry scheme term 2 for ordinary level
S.1 chemistry scheme term 2 for ordinary levelS.1 chemistry scheme term 2 for ordinary level
S.1 chemistry scheme term 2 for ordinary level
ronaldlakony0
 
general properties of oerganologametal.ppt
general properties of oerganologametal.pptgeneral properties of oerganologametal.ppt
general properties of oerganologametal.ppt
IqrimaNabilatulhusni
 
Salas, V. (2024) "John of St. Thomas (Poinsot) on the Science of Sacred Theol...
Salas, V. (2024) "John of St. Thomas (Poinsot) on the Science of Sacred Theol...Salas, V. (2024) "John of St. Thomas (Poinsot) on the Science of Sacred Theol...
Salas, V. (2024) "John of St. Thomas (Poinsot) on the Science of Sacred Theol...
Studia Poinsotiana
 
Mammalian Pineal Body Structure and Also Functions
Mammalian Pineal Body Structure and Also FunctionsMammalian Pineal Body Structure and Also Functions
Mammalian Pineal Body Structure and Also Functions
YOGESH DOGRA
 
In silico drugs analogue design: novobiocin analogues.pptx
In silico drugs analogue design: novobiocin analogues.pptxIn silico drugs analogue design: novobiocin analogues.pptx
In silico drugs analogue design: novobiocin analogues.pptx
AlaminAfendy1
 
in vitro propagation of plants lecture note.pptx
in vitro propagation of plants lecture note.pptxin vitro propagation of plants lecture note.pptx
in vitro propagation of plants lecture note.pptx
yusufzako14
 
Orion Air Quality Monitoring Systems - CWS
Orion Air Quality Monitoring Systems - CWSOrion Air Quality Monitoring Systems - CWS
Orion Air Quality Monitoring Systems - CWS
Columbia Weather Systems
 
Chapter 12 - climate change and the energy crisis
Chapter 12 - climate change and the energy crisisChapter 12 - climate change and the energy crisis
Chapter 12 - climate change and the energy crisis
tonzsalvador2222
 
NuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final versionNuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final version
pablovgd
 
Richard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlandsRichard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlands
Richard Gill
 
Toxic effects of heavy metals : Lead and Arsenic
Toxic effects of heavy metals : Lead and ArsenicToxic effects of heavy metals : Lead and Arsenic
Toxic effects of heavy metals : Lead and Arsenic
sanjana502982
 
platelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptxplatelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptx
muralinath2
 
Unveiling the Energy Potential of Marshmallow Deposits.pdf
Unveiling the Energy Potential of Marshmallow Deposits.pdfUnveiling the Energy Potential of Marshmallow Deposits.pdf
Unveiling the Energy Potential of Marshmallow Deposits.pdf
Erdal Coalmaker
 
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Sérgio Sacani
 

Recently uploaded (20)

Seminar of U.V. Spectroscopy by SAMIR PANDA
 Seminar of U.V. Spectroscopy by SAMIR PANDA Seminar of U.V. Spectroscopy by SAMIR PANDA
Seminar of U.V. Spectroscopy by SAMIR PANDA
 
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATIONPRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
 
Comparative structure of adrenal gland in vertebrates
Comparative structure of adrenal gland in vertebratesComparative structure of adrenal gland in vertebrates
Comparative structure of adrenal gland in vertebrates
 
erythropoiesis-I_mechanism& clinical significance.pptx
erythropoiesis-I_mechanism& clinical significance.pptxerythropoiesis-I_mechanism& clinical significance.pptx
erythropoiesis-I_mechanism& clinical significance.pptx
 
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
Observation of Io’s Resurfacing via Plume Deposition Using Ground-based Adapt...
 
Hemoglobin metabolism_pathophysiology.pptx
Hemoglobin metabolism_pathophysiology.pptxHemoglobin metabolism_pathophysiology.pptx
Hemoglobin metabolism_pathophysiology.pptx
 
S.1 chemistry scheme term 2 for ordinary level
S.1 chemistry scheme term 2 for ordinary levelS.1 chemistry scheme term 2 for ordinary level
S.1 chemistry scheme term 2 for ordinary level
 
general properties of oerganologametal.ppt
general properties of oerganologametal.pptgeneral properties of oerganologametal.ppt
general properties of oerganologametal.ppt
 
Salas, V. (2024) "John of St. Thomas (Poinsot) on the Science of Sacred Theol...
Salas, V. (2024) "John of St. Thomas (Poinsot) on the Science of Sacred Theol...Salas, V. (2024) "John of St. Thomas (Poinsot) on the Science of Sacred Theol...
Salas, V. (2024) "John of St. Thomas (Poinsot) on the Science of Sacred Theol...
 
Mammalian Pineal Body Structure and Also Functions
Mammalian Pineal Body Structure and Also FunctionsMammalian Pineal Body Structure and Also Functions
Mammalian Pineal Body Structure and Also Functions
 
In silico drugs analogue design: novobiocin analogues.pptx
In silico drugs analogue design: novobiocin analogues.pptxIn silico drugs analogue design: novobiocin analogues.pptx
In silico drugs analogue design: novobiocin analogues.pptx
 
in vitro propagation of plants lecture note.pptx
in vitro propagation of plants lecture note.pptxin vitro propagation of plants lecture note.pptx
in vitro propagation of plants lecture note.pptx
 
Orion Air Quality Monitoring Systems - CWS
Orion Air Quality Monitoring Systems - CWSOrion Air Quality Monitoring Systems - CWS
Orion Air Quality Monitoring Systems - CWS
 
Chapter 12 - climate change and the energy crisis
Chapter 12 - climate change and the energy crisisChapter 12 - climate change and the energy crisis
Chapter 12 - climate change and the energy crisis
 
NuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final versionNuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final version
 
Richard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlandsRichard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlands
 
Toxic effects of heavy metals : Lead and Arsenic
Toxic effects of heavy metals : Lead and ArsenicToxic effects of heavy metals : Lead and Arsenic
Toxic effects of heavy metals : Lead and Arsenic
 
platelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptxplatelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptx
 
Unveiling the Energy Potential of Marshmallow Deposits.pdf
Unveiling the Energy Potential of Marshmallow Deposits.pdfUnveiling the Energy Potential of Marshmallow Deposits.pdf
Unveiling the Energy Potential of Marshmallow Deposits.pdf
 
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
 

Translating Natural Language into SPARQL for Neural Question Answering

  • 1. TRANSLATING NATURAL LANGUAGE INTO SPARQL FOR NEURAL QUESTION ANSWERING Tommaso Soru AKSW, University of Leipzig, Germany 6. Leipziger Semantic WebTag (LSWT2018) – 18.06.2018
  • 2. LINKED OPEN DATA 👍 >10K published datasets 👍 ~150B triples as (s, p, o) 👎 Low accessibility lod-cloud.net 2
  • 3. SPARQL QUERY LANGUAGE 3 SELECT ?x WHERE { ?x a ontology:Person . ?x ontology:birthPlace dbpedia:Leipzig . } dbpedia:Walter_Ulbricht dbpedia:Anita_Berber dbpedia:Martin_Benno_Schmidt …
  • 4. NATURAL LANGUAGETO SPARQL 4 SELECT ?x WHERE { ?x a ontology:Person . ?x ontology:birthPlace dbpedia:Leipzig . } people born in Leipzig who was born in Leipzig? Leipzig is the birth place of whom?
  • 5. MODELING NATURAL LANGUAGE • Model semantics at word and phrase level. • Be robust to small imperfections (e.g., a missing article). • Handle question compositionality. • Work with all human languages. 5 Language Model using Recurrent Neural Networks!
  • 6. MACHINETRANSLATION 6 # Personen, die in Leipzig geboren sind $ people born in Leipzig
  • 7. MACHINETRANSLATION 7 $ people born in Leipzig 🤖 select var_x where brack_open var_x rdf_type dbo_Person sep_dot var_x dbo_birthPlace dbr Leipzig sep_dot brack_close
  • 9. THE GENERATOR 9 Build question-query pairs from a set of manually-annotated templates. where was <A> born? select var_x where brack_open <A> dbo_birthPlace var_x sep_dot brack_close
  • 10. CHALLENGE #1: TEMPLATE DISCOVERY 10 where was <A> born? select var_x where brack_open <A> dbo_birthPlace var_x sep_dot brack_close […] Joe Abercrombie (born 1974) – fantasy writer and film editor, was born in Lancaster and attended LRGS […] Idea! Mine templates from a large text corpus using entity pairs. dbpedia:Joe_Abercrombie dbpedia:Lancaster ontology:birthPlace
  • 11. THE LEARNER 11 Seq2Seq: (Bidirectional) Recurrent Neural Network + LSTM model
  • 12. CHALLENGE #2:WORD EXPANSION 12 How to deal with synonyms and out-of-vocabulary words? Credits: github.com/ahaas/synonymvis Distributional Semantics Similar words are represented by similar vectors (or word embeddings). Language model handles word disambiguation using context.
  • 13. THE INTERPRETER 13 Sequence interpretation for SPARQL query reconstruction. select var_x where brack_open var_x rdf_type dbo_Person sep_dot var_x dbo_birthPlace dbr_Leipzig Missing brack_close SELECT ?x WHERE { ?x a ontology:Person . ?x ontology:birthPlace dbpedia:Leipzig }
  • 14. CHALLENGE #3: COMPOSITIONALITY 14 ?x a ontology:Person . ?x dbo:birthPlace dbr:Dresden . people born in Dresden dbr:Saxony dbo:capital ?x . what’s the capital of Saxony? ?x a ontology:Person . ?x dbo:birthPlace ?y . dbr:Saxony dbo:capital ?y . people born in the capital of Saxony Learn the correct variable assignments in the reconstructed query. + = Curriculum Learning Learn to translate at baby steps.
  • 15. CURRENT STATE 15 • Non-funded work • Involving people from these institutes: • AKSW, University of Leipzig • HTWK / Leipzig University of Applied Sciences • Paderborn University • Bonn University • DBpedia’s Google Summer of Code 2018 • Looking for partnerships!
  • 16. Tommaso Soru AKSW Research Group University of Leipzig Germany tsoru@informatik.uni-leipzig.de http://tommaso-soru.it 🤖 https://github.com/AKSW/NSpM Thank you. 16