SlideShare une entreprise Scribd logo
1  sur  58
Natural Language 
Interface: Challenges and 
Partial Solutions 
NURFADHLINA MOHD SHAREF (PhD) 
Postdoctoral Fellow 
Knowledge Technology Group 
Centre of Artificial Intelligence 
Faculty of Technology and 
Information Science 
Universiti Kebangsaan Malaysia 
fadhlinams81@gmail.com
Outline 
• Part 1: Introduction to Semantic Web 
– RDF 
– OWL 
– SPARQL 
• Part 2: Natural Language Interface 
– Semantic Web Search Engine 
– NLI Applications 
– Challenges and Partial Solutions 
– Potential Works 
• Part 3: Practical Examples 
– Mooneys Geography Dataset 
– Automatic SPARQL Construction for Natural Language-based 
Search in Semantic Database
Part 1 
• Introduction to Semantic Web 
– RDF 
– OWL 
– SPARQL
Semantic Web: “a web of data that can 
be processed directly and indirectly by 
machines (Tim Berners-Lee) ” 
5
RDF (Resource Description 
Framework) 
• Talk about resources 
– Resources can be pretty much anything 
– Resources are identified by Uniform Resource Identifiers (URIs) 
– Things (in a broad sense) are labelled with URIs 
– URIs act as globally valid names 
– Sets of names are organized in vocabularies 
– Vocabularies are demarcated by namespaces 
• Information is encoded in Triples= subject-predicate-object 
patterns 
– Malaysia has capital Kuala Lumpur 
– Participant has course Semantic Technology 
Taken from: http://www.w3.org/2009/Talks/1030-Philadelphia-IH/Tut6orial.ppt
7 
http://.../KualaLumpur 
:hasShoppingMall 
ShoppingMall 
Resource /Subject 
Properties / Predicate 
Literals 
KLCC 
Object 
Imbi_Plaza 
Literals
8 
From Feigenbaum
Properties of the resource 
- The elements, artist, country, company, price, and year 
are defined in the http://www.recshop.fake/cd# namespace. 
RDF Example 9 
XML Declaration 
namespace
10 
From: http://www.w3.org/TR/1998/WD-rdf-schema/
rdf:type 
rdfs:subClassOf 
rdfs:subPropertyOf 
11
Ontology in Information Science 
• An ontology is an engineering artefact consisting of: 
– A vocabulary used to describe (a particular view 
of) some domain 
– An explicit specification of the intended meaning 
of the vocabulary. 
• Often includes classification based information 
– Constraints capturing background knowledge 
about the domain 
• Ideally, an ontology should: 
– Capture a shared understanding of a domain of 
interest 
– Provide a formal and machine manipulateable 
model 
12
OWL 
• built on top of RDF 
• for processing information on the web 
• designed to be interpreted by computers 
• was not designed for being read by people 
• written in XML 
• is a W3C standard 
• Based on predecessors (DAML+OIL) 
• A Web Language: Based on RDF(S) 
• An Ontology Language: Based on logic 
13
OWL vs RDF 
• OWL and RDF are much of the same thing, but OWL is 
a stronger language with greater machine 
interpretability than RDF. 
• OWL comes with a larger vocabulary and stronger 
syntax than RDF. 
– specific relations between classes, cardinality, equality, 
richer typing of properties, characteristics of properties, 
and enumerated classes. 
• OWL comes in three increasingly expressive layers that 
are designed for different groups of users 
– OWL Lite, OWL DL, and OWL Full 
14
OWL Ontology 
15
KualaLumpurInfo.owl 
16 
http://.../KualaLumpur 
:hasShoppingMall 
ShoppingMall 
KLCC Imbi_Plaza 
Thing rdf:type 
i 
:hasPublicTransport 
land rail 
:hasPublicTransport 
ExpressGrocers 
i 
Seven Eleven 
rdfs:subClassOf 
:railTransport :railTransport 
i 
ERL 
LRT 
i 
i 
owl:equivalentOf 
rdfs:subPropertyOf 
rdfs:domain 
rdfs:range
17
18
name mbox 
Johnny Lee Outlaw <mailto:jlow@example.com> 
Peter Goodguy <mailto:peter@example.org> 
19
20
The SPARQL Query Language 
?name ?faculty 
Joe “CS“ 
Fred “CS“ 
21 
SELECT ?name ?faculty 
WHERE { 
?teacher rdf:type Teachers. 
?teacher name ?name. 
?teacher faculty ?faculty. 
} 
Operator AND („.“) 
Teachers 
t1 t2 
faculty faculty 
name 
name 
Joe “CS“ Fred “CS“
The SPARQL Query Language 
?name ?faculty 
Joe “CS“ 
22 
SELECT ?name ?faculty 
WHERE { 
?teacher rdf:type Teachers. 
?teacher name ?name. 
?teacher faculty ?faculty. 
FILTER (?name=„Joe“) 
} 
Operator FILTER 
Teachers 
t1 t2 
faculty faculty 
name 
name 
Joe “CS“ Fred “CS“
The SPARQL Query Language 
?name ?faculty ?title 
Joe “CS“ 
Fred “CS“ “Professor“ 
23 
SELECT ?name ?faculty ?title 
WHERE { 
?teacher rdf:type Teachers. 
?teacher name ?name. 
?teacher faculty ?faculty. 
OPTIONAL { 
?teacher title ?title. 
} 
} 
Operator OPTIONAL 
„Professor“ 
title 
Teachers 
t1 t2 
faculty faculty 
name 
name 
Joe “CS“ Fred “CS“
Part 2 
• Natural Language Interface 
– Semantic Web Search Engine 
– NLI Applications 
– Challenges and Partial Solutions 
– Potential Works
Semantic Web Search Engine 
• to provide ability to understand the intent of 
the searcher and return result in the context 
of the query meaning. 
• distinguished from standard search engine 
because the sources of the documents are in 
the RDF, OWL and RDF-extended HTML 
documents. 
• E.g: Swoogle, Serene, Watson
Natural Language Interface (NLI) 
• allows user to query in human-like sentences, without 
requiring them to be aware of the underlying schema, 
vocabulary and query language 
• Famous for question answering 
• three types of NLI 
– with structured data such as database and ontologies, 
– with a semi or unstructured data such as text documents, 
– interactive setting as conversational system 
• Approaches 
– Controlled Natural Language for query construction 
– Visual-based query construction 
– NL query mapping to triple representation
NLI Example - NLPReduce
NLI Example – Semantic Crystal
NLI Example – GINO & Ginseng
NLI Example - Querix
NLI Example - AquaLog
NLI Example - PowerAqua
NLI Example - FREyA
Comparison 
Year 
Input type 
Synonym 
support 
Syntactic analysis 
Calculate string 
similarity 
Clarification 
dialogue 
Learnability 
Support KB 
Heterogeneity 
Semantic 
Crystal 
1993 Graphical based 
query 
NO NO NO NO NO NO 
GINO / 
Ginseng 
2006 Controlled natural 
language based 
interface 
WordNet YES NO NO NO NO 
Querix 2006 Query by example WordNet NO NO YES NO NO 
NLPReduce 2007 Keywords, sentence 
fragments and full 
sentences 
NO NO NO NO NO NO 
QuestIO 2008 Full natural language Gazetteer YES YES NO NO NO 
ORAKEL 2008 Factual question Lexicon NO NO NO NO NO 
AquaLog / 
2010 Full natural language WordNet, 
PowerAqua 
Lexicon 
YES YES YES NO YES 
FREyA 2012 Full natural language WordNet YES NO YES YES NO
NLI Implementation 
• Query: “Who wrote The Neverending Story?” 
• PowerAqua triple: 
<[person,organization], wrote,Neverending Story> 
• Triple Matching from Dbpedia: 
<Writer, IS A,Person> 
<Writer, author,The Neverending Story> 
• Answer: “Michael Ende”
NLI Challenges 
(Unger et al., 2012) 
1. 
(a) Which cities have more than three universities? 
(b) <[cities],more than,universities three> 
(c) SELECT ?y WHERE { 
?x rdf:type onto:University . ?x onto:city ?y . 
} HAVING (COUNT(?x) > 3) 
2. 
(a) Who produced the most films? 
(b) <[person,organization], produced,most films> 
(c) SELECT ?y WHERE { 
?x rdf:type onto:Film . ?x onto:producer ?y . 
} ORDER BY DESC(COUNT(?x)) OFFSET 0 LIMIT 1
NLI Challenges 
• Layer 1: Query understanding 
– E.g: Complex query: negation, subqueries, 
arithmetic operation, etc 
• Layer 2: Query-KB granularity homogenisation 
– E.g: Different format/styles 
– E.g: Mismatch in concept name 
• Layer 3: Result presentation 
– E.g: ranking
Query Understanding 
• Input type 
– Current 
• Guided query: controlled natural language, query 
indicator (e.g: WH-terms) 
• Graphical query construction 
– Problem 
• Confusing 
• Requires a degree of background knowledge 
• Constrained search
Query Understanding 
• Compositional Density 
– Current 
• Triple generated by PowerAqua for Give me five albums 
by Pink Lloyd 
– <[albums, five], null, Lloyd Pink>, 
– <[five], null, albums>, 
– <[Pink], null, Lloyd> 
– Potential Works 
• Negation (e.g: not, outside, except) 
• Arithmetic (e.g: sum of, how many, largest) 
• Auxiliary (e.g: largest, latest, top)
Query Understanding 
• Ambiguity Reduction 
– Triple identification 
– Stanford Parser 
– WordNet 
– Similarity Matching 
– Clarification Dialogue 
– Entity Identification
Types of queries 
(Ferre & Hermann, 2011) 
• Visualization 
– exploration of the facet hierarchy 
• Selection 
– count or list items that have a particular feature 
• Path 
– subjects had to follow a path of properties. 
• Disjunction 
– required the use of unions 
• Negation 
– required the use of exclusions 
• Inverse 
– required the crossing of the inverse of properties 
• Cycle 
– required the use of co-reference variables (naming and reference navigation 
links)
Query-KB granularity homogenisation 
• KB variation 
– Format (e.g: RDF, OWL) 
– Style (e.g: with/without schema) 
– Concept names (e.g: length) 
– Query-triple conversion 
– Sources supported (single/multi sources, LOD) 
– Disambiguat 
• WordNet, Similarity Matching, Clarification Dialogue
Result Understanding 
• Ranking result 
– List vs. finite answer 
– Degree of confidence / hit score 
– Learnability
Part 3 
• Practical Examples 
– Mooneys Geography Dataset 
– Automatic SPARQL Construction for Natural 
Language-based Search in Semantic Database
Geography.owl 
Class 
DataTypeProperty ObjectProperty 
Name Domain Range Name Domain Range 
City cityPopulation City float borders State State 
Capital statePopulation State float isCityOf City State 
State statePopDensity State float hasCity State City 
HiPoint abbreviation State string isCapitalOf Capital State 
LoPoint stateArea State float hasCapital State Capital 
Mountain lakeArea Lake float isMountainOf Mountain State 
Lake height Mountain float hasMountain State Mountain 
River hiElevation HiPoint float isHighestPointOf HiPoint State 
Road loElevation LoPoint float hasHighPoint State HiPoint 
length River float isLowestPointOf LoPoint State 
number Road float hasLowPoint State LoPoint 
isLakeOf Lake State 
hasLake State Lake 
runsThrough River State 
hasRiver State River 
passesThrough Road State 
hasRoad State Road
Can you tell me the capital of texas? How large is texas? 
Give me all the states of usa? How long is rio grande? 
Give me the cities in texas? How long is the colorado river? 
Give me the cities which are in texas? How long is the mississippi? 
Give me the lakes in california? How long is the mississippi river? 
Give me the states that border utah? How long is the mississippi river in miles? 
Give me the number of rivers in california? How many capitals does rhode island have? 
How many citizens in alabama? How many cities does texas have? 
How many citizens live in california? How many cities does the usa have? 
Give me the longest river that passes through the 
us? 
How many citizens does the biggest city have in 
the usa? 
Give me the largest state? How high are the highest points of all the states? 
Could you tell me what is the highest point in the 
state of oregon? How high is the highest point in america? 
Count the states which have elevations lower than 
what alabama has? How high is the highest point in montana? 
How big is texas? How high is the highest point in the largest state? 
How big is the city of new york? How large is the largest city in alaska? 
How many colorado rivers are there? How long is the longest river in california? 
How high is guadalupe peak? How long is the longest river in the usa? 
How high is mount mckinley? How long is the shortest river in the usa? 
How many cities named austin are there in the 
usa? How many big cities are in pennsylvania?
Approach 
• Can you tell me the capital of texas? 
– POS: Can/MD you/PRP tell/VB me/PRP the/DT capital/NN of/IN texas/NNS ?/. 
– Triple: <capital,?,texas> 
– SPARQL: 
"PREFIX geo:<http://www.mooney.net/geo#>"+ 
"SELECT ?s "+ 
"WHERE "+ 
"{?s geo:isCapitalOf geo:texas . }"; 
– Answer: geo:austinTx 
• Give me all the states of usa? 
– POS: Give/VB me/PRP all/PDT the/DT states/NNS of/IN usa/NN ?/. 
– Triple: <states, ?, usa> 
– SPARQL: 
"PREFIX geo:<http://www.mooney.net/geo#>"+ 
"SELECT ?s "+ 
"WHERE "+ 
"{?s a geo:State . }"; 
– Answer: geo:kansas, geo:rhodeIsland, geo:montana, geo:tennessee, geo:arkansas, 
geo:newMexico, …(all the states)
POS tagging 
• Give/VB me/PRP the/DT 
cities/NNS which/WDT 
are/VBP in/IN texas/NNS ?/. 
• Give/VB me/PRP the/DT 
lakes/NNS in/IN california/NN 
?/. 
• Give/VB me/PRP the/DT 
states/NNS that/WDT 
border/NN utah/NN ?/. 
• Give/VB me/PRP the/DT 
number/NN of/IN rivers/NNS 
in/IN california/NN ?/. 
• How/WRB many/JJ 
citizens/NNS in/IN 
alabama/NN ?/.
More to Do 
• Domain dependent/independent? 
• Is the heuristics that POS and KB compliance 
enough for SPARQL generation? 
• More complex queries 
– Arithmetic operation (COUNT, SUB-QUERY) 
– Aggregation (requires FILTER, OPTIONAL, HAVING) 
– Auxiliary (e.g: latest, earliest)
Conclusion 
• NLI is a potential area 
• Highlight: ambiguity reduction, query 
understanding, query-KB matching 
• Focus: SPARQL generation and optimization 
• Potential sub-area: negation, arithmetic, 
temporal, complex queries
References 
• Ferre, S., & Hermann, A. (2011). Semantic Search : 
Reconciling Expressive Querying and Exploratory 
Search. ISWC11 Proceedings of the 10th international 
conference on The semantic web (pp. 177-192). 
• Unger, C., Bühmann, L., Lehmann, J., Ngonga Ngomo, 
A.-C., Gerber, D., & Cimiano, P. (2012). Template-based 
question answering over RDF data. Proceedings of the 
21st international conference on World Wide Web - 
WWW 12, 639. New York, New York, USA: ACM Press. 
doi:10.1145/2187836.2187923
Contact 
Nurfadhlina Mohd Sharef 
• Postdoctoral Fellow, Knowledge Technology Group, 
Centre of Artifical Intelligence, Universiti Kebangsaan 
Malaysia 
(Room 4.4, Level 4, Block H) 
• Department of Computer Science, Faculty of 
Computer Science and Information Technology, 
Universiti Putra Malaysia 
(Room C2.08, Level 2, Block C) 
• fadhlinams81@gmail.com

Contenu connexe

Tendances

Tendances (9)

Neno/Fhat: Semantic Network Programming Language and Virtual Machine Specific...
Neno/Fhat: Semantic Network Programming Language and Virtual Machine Specific...Neno/Fhat: Semantic Network Programming Language and Virtual Machine Specific...
Neno/Fhat: Semantic Network Programming Language and Virtual Machine Specific...
 
Linked Data and Knowledge Graphs -- Constructing and Understanding Knowledge ...
Linked Data and Knowledge Graphs -- Constructing and Understanding Knowledge ...Linked Data and Knowledge Graphs -- Constructing and Understanding Knowledge ...
Linked Data and Knowledge Graphs -- Constructing and Understanding Knowledge ...
 
Introduction to RDF
Introduction to RDFIntroduction to RDF
Introduction to RDF
 
Corrib.org - OpenSource and Research
Corrib.org - OpenSource and ResearchCorrib.org - OpenSource and Research
Corrib.org - OpenSource and Research
 
Tutorial on Semantic Digital Libraries (WWW'2007)
Tutorial on Semantic Digital Libraries (WWW'2007)Tutorial on Semantic Digital Libraries (WWW'2007)
Tutorial on Semantic Digital Libraries (WWW'2007)
 
Ontology development in protégé-آنتولوژی در پروتوغه
Ontology development in protégé-آنتولوژی در پروتوغهOntology development in protégé-آنتولوژی در پروتوغه
Ontology development in protégé-آنتولوژی در پروتوغه
 
Owl web ontology language
Owl  web ontology languageOwl  web ontology language
Owl web ontology language
 
The Semantic Web
The Semantic WebThe Semantic Web
The Semantic Web
 
Semantic Web
Semantic WebSemantic Web
Semantic Web
 

En vedette

ORDER INDEPENDENT INCREMENTAL EVOLVING FUZZY GRAMMAR FRAGMENT LEARNER
ORDER INDEPENDENTINCREMENTAL EVOLVING FUZZY GRAMMAR FRAGMENT LEARNERORDER INDEPENDENTINCREMENTAL EVOLVING FUZZY GRAMMAR FRAGMENT LEARNER
ORDER INDEPENDENT INCREMENTAL EVOLVING FUZZY GRAMMAR FRAGMENT LEARNER
Nurfadhlina Mohd Sharef
 
Tajemná krajina severovýchodních Čech
Tajemná krajina severovýchodních ČechTajemná krajina severovýchodních Čech
Tajemná krajina severovýchodních Čech
BloxxterMagick
 

En vedette (10)

Incremental Evolving Grammar Fragments
Incremental Evolving Grammar FragmentsIncremental Evolving Grammar Fragments
Incremental Evolving Grammar Fragments
 
ORDER INDEPENDENT INCREMENTAL EVOLVING FUZZY GRAMMAR FRAGMENT LEARNER
ORDER INDEPENDENTINCREMENTAL EVOLVING FUZZY GRAMMAR FRAGMENT LEARNERORDER INDEPENDENTINCREMENTAL EVOLVING FUZZY GRAMMAR FRAGMENT LEARNER
ORDER INDEPENDENT INCREMENTAL EVOLVING FUZZY GRAMMAR FRAGMENT LEARNER
 
A review of sentiment analysis approaches in big
A review of sentiment analysis approaches in bigA review of sentiment analysis approaches in big
A review of sentiment analysis approaches in big
 
Proceeding of Brunei International Conference on Engineering and Technology 2012
Proceeding of Brunei International Conference on Engineering and Technology 2012Proceeding of Brunei International Conference on Engineering and Technology 2012
Proceeding of Brunei International Conference on Engineering and Technology 2012
 
Incremental Evolving Grammar Fragments
Incremental Evolving Grammar FragmentsIncremental Evolving Grammar Fragments
Incremental Evolving Grammar Fragments
 
7 bran Simonova Necronomiconu
7 bran Simonova Necronomiconu7 bran Simonova Necronomiconu
7 bran Simonova Necronomiconu
 
Krystalická hrůza H. P. Lovecrafta ve filmu
Krystalická hrůza H. P. Lovecrafta ve filmuKrystalická hrůza H. P. Lovecrafta ve filmu
Krystalická hrůza H. P. Lovecrafta ve filmu
 
Tajemná krajina severovýchodních Čech
Tajemná krajina severovýchodních ČechTajemná krajina severovýchodních Čech
Tajemná krajina severovýchodních Čech
 
Self adaptive based natural language interface for disambiguation of
Self adaptive based natural language interface for disambiguation ofSelf adaptive based natural language interface for disambiguation of
Self adaptive based natural language interface for disambiguation of
 
OSGi Blueprint Services
OSGi Blueprint ServicesOSGi Blueprint Services
OSGi Blueprint Services
 

Similaire à semantic web & natural language

Knowledge Representation, Semantic Web
Knowledge Representation, Semantic WebKnowledge Representation, Semantic Web
Knowledge Representation, Semantic Web
Serendipity Seraph
 
SPARQL in the Semantic Web
SPARQL in the Semantic WebSPARQL in the Semantic Web
SPARQL in the Semantic Web
Jan Beeck
 
A hands on overview of the semantic web
A hands on overview of the semantic webA hands on overview of the semantic web
A hands on overview of the semantic web
Marakana Inc.
 
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
 

Similaire à semantic web & natural language (20)

sw owl
 sw owl sw owl
sw owl
 
20181106 survey on challenges of question answering in the semantic web saltlux
20181106 survey on challenges of question answering in the semantic web saltlux20181106 survey on challenges of question answering in the semantic web saltlux
20181106 survey on challenges of question answering in the semantic web saltlux
 
Semantic Web: From Representations to Applications
Semantic Web: From Representations to ApplicationsSemantic Web: From Representations to Applications
Semantic Web: From Representations to Applications
 
Publishing and Using Linked Open Data - Day 2
Publishing and Using Linked Open Data - Day 2Publishing and Using Linked Open Data - Day 2
Publishing and Using Linked Open Data - Day 2
 
Integrating a Domain Ontology Development Environment and an Ontology Search ...
Integrating a Domain Ontology Development Environment and an Ontology Search ...Integrating a Domain Ontology Development Environment and an Ontology Search ...
Integrating a Domain Ontology Development Environment and an Ontology Search ...
 
Knowledge Representation, Semantic Web
Knowledge Representation, Semantic WebKnowledge Representation, Semantic Web
Knowledge Representation, Semantic Web
 
SPARQL in the Semantic Web
SPARQL in the Semantic WebSPARQL in the Semantic Web
SPARQL in the Semantic Web
 
Web ontology language (owl)
Web ontology language (owl)Web ontology language (owl)
Web ontology language (owl)
 
Semantic Web: introduction & overview
Semantic Web: introduction & overviewSemantic Web: introduction & overview
Semantic Web: introduction & overview
 
Knowledge mangement
Knowledge mangementKnowledge mangement
Knowledge mangement
 
20110728 datalift-rpi-troy
20110728 datalift-rpi-troy20110728 datalift-rpi-troy
20110728 datalift-rpi-troy
 
A hands on overview of the semantic web
A hands on overview of the semantic webA hands on overview of the semantic web
A hands on overview of the semantic web
 
From ontology to wiki
From ontology to wikiFrom ontology to wiki
From ontology to wiki
 
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...
 
A review of the state of the art in Machine Learning on the Semantic Web
A review of the state of the art in Machine Learning on the Semantic WebA review of the state of the art in Machine Learning on the Semantic Web
A review of the state of the art in Machine Learning on the Semantic Web
 
Linked Open Data
Linked Open DataLinked Open Data
Linked Open Data
 
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
 
Analysis on semantic web layer cake entities
Analysis on semantic web layer cake entitiesAnalysis on semantic web layer cake entities
Analysis on semantic web layer cake entities
 
Using and learning phrases
Using and learning phrasesUsing and learning phrases
Using and learning phrases
 
CS6010 Social Network Analysis Unit II
CS6010 Social Network Analysis   Unit IICS6010 Social Network Analysis   Unit II
CS6010 Social Network Analysis Unit II
 

Plus de Nurfadhlina Mohd Sharef

CIKGUAIBOT: A CHATBOT TO TEACH ARTIFICIAL INTELLIGENCE IN MALAY
CIKGUAIBOT: A CHATBOT TO TEACH ARTIFICIAL INTELLIGENCE IN MALAYCIKGUAIBOT: A CHATBOT TO TEACH ARTIFICIAL INTELLIGENCE IN MALAY
CIKGUAIBOT: A CHATBOT TO TEACH ARTIFICIAL INTELLIGENCE IN MALAY
Nurfadhlina Mohd Sharef
 

Plus de Nurfadhlina Mohd Sharef (20)

Regenerating learning experience with AI
Regenerating learning experience with AIRegenerating learning experience with AI
Regenerating learning experience with AI
 
Enhancing academic productivity using Gen AI
Enhancing academic productivity using Gen AIEnhancing academic productivity using Gen AI
Enhancing academic productivity using Gen AI
 
ChatGPT in Teaching and Learning
ChatGPT in Teaching and LearningChatGPT in Teaching and Learning
ChatGPT in Teaching and Learning
 
Struggle to success: How generative ai can transform your university experience?
Struggle to success: How generative ai can transform your university experience?Struggle to success: How generative ai can transform your university experience?
Struggle to success: How generative ai can transform your university experience?
 
Ada Apa Dengan ChatGPT
Ada Apa Dengan ChatGPTAda Apa Dengan ChatGPT
Ada Apa Dengan ChatGPT
 
Teaching with ChatGPT-Practical Tips and Strategies
Teaching with ChatGPT-Practical Tips and StrategiesTeaching with ChatGPT-Practical Tips and Strategies
Teaching with ChatGPT-Practical Tips and Strategies
 
Artificial Intelligence in Education
Artificial Intelligence in EducationArtificial Intelligence in Education
Artificial Intelligence in Education
 
Usage of ChatGPT at Higher Learning Institutions.pptx
Usage of ChatGPT at Higher Learning Institutions.pptxUsage of ChatGPT at Higher Learning Institutions.pptx
Usage of ChatGPT at Higher Learning Institutions.pptx
 
ChatGPT: Friend or Foe?
ChatGPT: Friend or Foe?ChatGPT: Friend or Foe?
ChatGPT: Friend or Foe?
 
Meaningful Online Learning Experience
Meaningful Online Learning ExperienceMeaningful Online Learning Experience
Meaningful Online Learning Experience
 
Online Instructional Design
Online Instructional DesignOnline Instructional Design
Online Instructional Design
 
Introduction to eLearning at Universiti Putra Malaysia
Introduction to eLearning at Universiti Putra MalaysiaIntroduction to eLearning at Universiti Putra Malaysia
Introduction to eLearning at Universiti Putra Malaysia
 
Data raya dan kecerdasan buatan
Data raya dan kecerdasan buatanData raya dan kecerdasan buatan
Data raya dan kecerdasan buatan
 
CIKGUAIBOT: A CHATBOT TO TEACH ARTIFICIAL INTELLIGENCE IN MALAY
CIKGUAIBOT: A CHATBOT TO TEACH ARTIFICIAL INTELLIGENCE IN MALAYCIKGUAIBOT: A CHATBOT TO TEACH ARTIFICIAL INTELLIGENCE IN MALAY
CIKGUAIBOT: A CHATBOT TO TEACH ARTIFICIAL INTELLIGENCE IN MALAY
 
Learning analytics based intelligent simulator for personalised learning slide
Learning analytics based intelligent simulator for personalised learning slideLearning analytics based intelligent simulator for personalised learning slide
Learning analytics based intelligent simulator for personalised learning slide
 
ICADEIS 2020 keynote
ICADEIS 2020 keynoteICADEIS 2020 keynote
ICADEIS 2020 keynote
 
Basketball players performance analytic as experiential learning approach
Basketball players performance analytic as experiential learning approachBasketball players performance analytic as experiential learning approach
Basketball players performance analytic as experiential learning approach
 
Enhancing Multi-Aspect Collaborative Filtering for Personalized Recommendation
Enhancing Multi-Aspect Collaborative Filtering for Personalized RecommendationEnhancing Multi-Aspect Collaborative Filtering for Personalized Recommendation
Enhancing Multi-Aspect Collaborative Filtering for Personalized Recommendation
 
Aspect Extraction Performance With Common Pattern of Dependency Relation in ...
Aspect Extraction Performance With Common Pattern of  Dependency Relation in ...Aspect Extraction Performance With Common Pattern of  Dependency Relation in ...
Aspect Extraction Performance With Common Pattern of Dependency Relation in ...
 
Temporal Relations Mining Approach to Improve Dengue Outbreak and Intrusion T...
Temporal Relations Mining Approach to Improve Dengue Outbreak and Intrusion T...Temporal Relations Mining Approach to Improve Dengue Outbreak and Intrusion T...
Temporal Relations Mining Approach to Improve Dengue Outbreak and Intrusion T...
 

Dernier

6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
@Chandigarh #call #Girls 9053900678 @Call #Girls in @Punjab 9053900678
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
soniya singh
 
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
soniya singh
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
Diya Sharma
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Sheetaleventcompany
 

Dernier (20)

6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
 
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
 
Call Now ☎ 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.
 
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
 
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
Russian Call Girls in %(+971524965298  )#  Call Girls in DubaiRussian Call Girls in %(+971524965298  )#  Call Girls in Dubai
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
 
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
 
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
 
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
Real Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirtReal Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirt
 
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
 
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
 
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
 
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts SweatshirtTrump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
 
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
 

semantic web & natural language

  • 1. Natural Language Interface: Challenges and Partial Solutions NURFADHLINA MOHD SHAREF (PhD) Postdoctoral Fellow Knowledge Technology Group Centre of Artificial Intelligence Faculty of Technology and Information Science Universiti Kebangsaan Malaysia fadhlinams81@gmail.com
  • 2. Outline • Part 1: Introduction to Semantic Web – RDF – OWL – SPARQL • Part 2: Natural Language Interface – Semantic Web Search Engine – NLI Applications – Challenges and Partial Solutions – Potential Works • Part 3: Practical Examples – Mooneys Geography Dataset – Automatic SPARQL Construction for Natural Language-based Search in Semantic Database
  • 3. Part 1 • Introduction to Semantic Web – RDF – OWL – SPARQL
  • 4.
  • 5. Semantic Web: “a web of data that can be processed directly and indirectly by machines (Tim Berners-Lee) ” 5
  • 6. RDF (Resource Description Framework) • Talk about resources – Resources can be pretty much anything – Resources are identified by Uniform Resource Identifiers (URIs) – Things (in a broad sense) are labelled with URIs – URIs act as globally valid names – Sets of names are organized in vocabularies – Vocabularies are demarcated by namespaces • Information is encoded in Triples= subject-predicate-object patterns – Malaysia has capital Kuala Lumpur – Participant has course Semantic Technology Taken from: http://www.w3.org/2009/Talks/1030-Philadelphia-IH/Tut6orial.ppt
  • 7. 7 http://.../KualaLumpur :hasShoppingMall ShoppingMall Resource /Subject Properties / Predicate Literals KLCC Object Imbi_Plaza Literals
  • 9. Properties of the resource - The elements, artist, country, company, price, and year are defined in the http://www.recshop.fake/cd# namespace. RDF Example 9 XML Declaration namespace
  • 12. Ontology in Information Science • An ontology is an engineering artefact consisting of: – A vocabulary used to describe (a particular view of) some domain – An explicit specification of the intended meaning of the vocabulary. • Often includes classification based information – Constraints capturing background knowledge about the domain • Ideally, an ontology should: – Capture a shared understanding of a domain of interest – Provide a formal and machine manipulateable model 12
  • 13. OWL • built on top of RDF • for processing information on the web • designed to be interpreted by computers • was not designed for being read by people • written in XML • is a W3C standard • Based on predecessors (DAML+OIL) • A Web Language: Based on RDF(S) • An Ontology Language: Based on logic 13
  • 14. OWL vs RDF • OWL and RDF are much of the same thing, but OWL is a stronger language with greater machine interpretability than RDF. • OWL comes with a larger vocabulary and stronger syntax than RDF. – specific relations between classes, cardinality, equality, richer typing of properties, characteristics of properties, and enumerated classes. • OWL comes in three increasingly expressive layers that are designed for different groups of users – OWL Lite, OWL DL, and OWL Full 14
  • 16. KualaLumpurInfo.owl 16 http://.../KualaLumpur :hasShoppingMall ShoppingMall KLCC Imbi_Plaza Thing rdf:type i :hasPublicTransport land rail :hasPublicTransport ExpressGrocers i Seven Eleven rdfs:subClassOf :railTransport :railTransport i ERL LRT i i owl:equivalentOf rdfs:subPropertyOf rdfs:domain rdfs:range
  • 17. 17
  • 18. 18
  • 19. name mbox Johnny Lee Outlaw <mailto:jlow@example.com> Peter Goodguy <mailto:peter@example.org> 19
  • 20. 20
  • 21. The SPARQL Query Language ?name ?faculty Joe “CS“ Fred “CS“ 21 SELECT ?name ?faculty WHERE { ?teacher rdf:type Teachers. ?teacher name ?name. ?teacher faculty ?faculty. } Operator AND („.“) Teachers t1 t2 faculty faculty name name Joe “CS“ Fred “CS“
  • 22. The SPARQL Query Language ?name ?faculty Joe “CS“ 22 SELECT ?name ?faculty WHERE { ?teacher rdf:type Teachers. ?teacher name ?name. ?teacher faculty ?faculty. FILTER (?name=„Joe“) } Operator FILTER Teachers t1 t2 faculty faculty name name Joe “CS“ Fred “CS“
  • 23. The SPARQL Query Language ?name ?faculty ?title Joe “CS“ Fred “CS“ “Professor“ 23 SELECT ?name ?faculty ?title WHERE { ?teacher rdf:type Teachers. ?teacher name ?name. ?teacher faculty ?faculty. OPTIONAL { ?teacher title ?title. } } Operator OPTIONAL „Professor“ title Teachers t1 t2 faculty faculty name name Joe “CS“ Fred “CS“
  • 24. Part 2 • Natural Language Interface – Semantic Web Search Engine – NLI Applications – Challenges and Partial Solutions – Potential Works
  • 25. Semantic Web Search Engine • to provide ability to understand the intent of the searcher and return result in the context of the query meaning. • distinguished from standard search engine because the sources of the documents are in the RDF, OWL and RDF-extended HTML documents. • E.g: Swoogle, Serene, Watson
  • 26. Natural Language Interface (NLI) • allows user to query in human-like sentences, without requiring them to be aware of the underlying schema, vocabulary and query language • Famous for question answering • three types of NLI – with structured data such as database and ontologies, – with a semi or unstructured data such as text documents, – interactive setting as conversational system • Approaches – Controlled Natural Language for query construction – Visual-based query construction – NL query mapping to triple representation
  • 27. NLI Example - NLPReduce
  • 28. NLI Example – Semantic Crystal
  • 29. NLI Example – GINO & Ginseng
  • 30. NLI Example - Querix
  • 31. NLI Example - AquaLog
  • 32. NLI Example - PowerAqua
  • 33. NLI Example - FREyA
  • 34. Comparison Year Input type Synonym support Syntactic analysis Calculate string similarity Clarification dialogue Learnability Support KB Heterogeneity Semantic Crystal 1993 Graphical based query NO NO NO NO NO NO GINO / Ginseng 2006 Controlled natural language based interface WordNet YES NO NO NO NO Querix 2006 Query by example WordNet NO NO YES NO NO NLPReduce 2007 Keywords, sentence fragments and full sentences NO NO NO NO NO NO QuestIO 2008 Full natural language Gazetteer YES YES NO NO NO ORAKEL 2008 Factual question Lexicon NO NO NO NO NO AquaLog / 2010 Full natural language WordNet, PowerAqua Lexicon YES YES YES NO YES FREyA 2012 Full natural language WordNet YES NO YES YES NO
  • 35. NLI Implementation • Query: “Who wrote The Neverending Story?” • PowerAqua triple: <[person,organization], wrote,Neverending Story> • Triple Matching from Dbpedia: <Writer, IS A,Person> <Writer, author,The Neverending Story> • Answer: “Michael Ende”
  • 36.
  • 37. NLI Challenges (Unger et al., 2012) 1. (a) Which cities have more than three universities? (b) <[cities],more than,universities three> (c) SELECT ?y WHERE { ?x rdf:type onto:University . ?x onto:city ?y . } HAVING (COUNT(?x) > 3) 2. (a) Who produced the most films? (b) <[person,organization], produced,most films> (c) SELECT ?y WHERE { ?x rdf:type onto:Film . ?x onto:producer ?y . } ORDER BY DESC(COUNT(?x)) OFFSET 0 LIMIT 1
  • 38. NLI Challenges • Layer 1: Query understanding – E.g: Complex query: negation, subqueries, arithmetic operation, etc • Layer 2: Query-KB granularity homogenisation – E.g: Different format/styles – E.g: Mismatch in concept name • Layer 3: Result presentation – E.g: ranking
  • 39. Query Understanding • Input type – Current • Guided query: controlled natural language, query indicator (e.g: WH-terms) • Graphical query construction – Problem • Confusing • Requires a degree of background knowledge • Constrained search
  • 40. Query Understanding • Compositional Density – Current • Triple generated by PowerAqua for Give me five albums by Pink Lloyd – <[albums, five], null, Lloyd Pink>, – <[five], null, albums>, – <[Pink], null, Lloyd> – Potential Works • Negation (e.g: not, outside, except) • Arithmetic (e.g: sum of, how many, largest) • Auxiliary (e.g: largest, latest, top)
  • 41. Query Understanding • Ambiguity Reduction – Triple identification – Stanford Parser – WordNet – Similarity Matching – Clarification Dialogue – Entity Identification
  • 42.
  • 43.
  • 44.
  • 45. Types of queries (Ferre & Hermann, 2011) • Visualization – exploration of the facet hierarchy • Selection – count or list items that have a particular feature • Path – subjects had to follow a path of properties. • Disjunction – required the use of unions • Negation – required the use of exclusions • Inverse – required the crossing of the inverse of properties • Cycle – required the use of co-reference variables (naming and reference navigation links)
  • 46.
  • 47. Query-KB granularity homogenisation • KB variation – Format (e.g: RDF, OWL) – Style (e.g: with/without schema) – Concept names (e.g: length) – Query-triple conversion – Sources supported (single/multi sources, LOD) – Disambiguat • WordNet, Similarity Matching, Clarification Dialogue
  • 48.
  • 49. Result Understanding • Ranking result – List vs. finite answer – Degree of confidence / hit score – Learnability
  • 50. Part 3 • Practical Examples – Mooneys Geography Dataset – Automatic SPARQL Construction for Natural Language-based Search in Semantic Database
  • 51. Geography.owl Class DataTypeProperty ObjectProperty Name Domain Range Name Domain Range City cityPopulation City float borders State State Capital statePopulation State float isCityOf City State State statePopDensity State float hasCity State City HiPoint abbreviation State string isCapitalOf Capital State LoPoint stateArea State float hasCapital State Capital Mountain lakeArea Lake float isMountainOf Mountain State Lake height Mountain float hasMountain State Mountain River hiElevation HiPoint float isHighestPointOf HiPoint State Road loElevation LoPoint float hasHighPoint State HiPoint length River float isLowestPointOf LoPoint State number Road float hasLowPoint State LoPoint isLakeOf Lake State hasLake State Lake runsThrough River State hasRiver State River passesThrough Road State hasRoad State Road
  • 52. Can you tell me the capital of texas? How large is texas? Give me all the states of usa? How long is rio grande? Give me the cities in texas? How long is the colorado river? Give me the cities which are in texas? How long is the mississippi? Give me the lakes in california? How long is the mississippi river? Give me the states that border utah? How long is the mississippi river in miles? Give me the number of rivers in california? How many capitals does rhode island have? How many citizens in alabama? How many cities does texas have? How many citizens live in california? How many cities does the usa have? Give me the longest river that passes through the us? How many citizens does the biggest city have in the usa? Give me the largest state? How high are the highest points of all the states? Could you tell me what is the highest point in the state of oregon? How high is the highest point in america? Count the states which have elevations lower than what alabama has? How high is the highest point in montana? How big is texas? How high is the highest point in the largest state? How big is the city of new york? How large is the largest city in alaska? How many colorado rivers are there? How long is the longest river in california? How high is guadalupe peak? How long is the longest river in the usa? How high is mount mckinley? How long is the shortest river in the usa? How many cities named austin are there in the usa? How many big cities are in pennsylvania?
  • 53. Approach • Can you tell me the capital of texas? – POS: Can/MD you/PRP tell/VB me/PRP the/DT capital/NN of/IN texas/NNS ?/. – Triple: <capital,?,texas> – SPARQL: "PREFIX geo:<http://www.mooney.net/geo#>"+ "SELECT ?s "+ "WHERE "+ "{?s geo:isCapitalOf geo:texas . }"; – Answer: geo:austinTx • Give me all the states of usa? – POS: Give/VB me/PRP all/PDT the/DT states/NNS of/IN usa/NN ?/. – Triple: <states, ?, usa> – SPARQL: "PREFIX geo:<http://www.mooney.net/geo#>"+ "SELECT ?s "+ "WHERE "+ "{?s a geo:State . }"; – Answer: geo:kansas, geo:rhodeIsland, geo:montana, geo:tennessee, geo:arkansas, geo:newMexico, …(all the states)
  • 54. POS tagging • Give/VB me/PRP the/DT cities/NNS which/WDT are/VBP in/IN texas/NNS ?/. • Give/VB me/PRP the/DT lakes/NNS in/IN california/NN ?/. • Give/VB me/PRP the/DT states/NNS that/WDT border/NN utah/NN ?/. • Give/VB me/PRP the/DT number/NN of/IN rivers/NNS in/IN california/NN ?/. • How/WRB many/JJ citizens/NNS in/IN alabama/NN ?/.
  • 55. More to Do • Domain dependent/independent? • Is the heuristics that POS and KB compliance enough for SPARQL generation? • More complex queries – Arithmetic operation (COUNT, SUB-QUERY) – Aggregation (requires FILTER, OPTIONAL, HAVING) – Auxiliary (e.g: latest, earliest)
  • 56. Conclusion • NLI is a potential area • Highlight: ambiguity reduction, query understanding, query-KB matching • Focus: SPARQL generation and optimization • Potential sub-area: negation, arithmetic, temporal, complex queries
  • 57. References • Ferre, S., & Hermann, A. (2011). Semantic Search : Reconciling Expressive Querying and Exploratory Search. ISWC11 Proceedings of the 10th international conference on The semantic web (pp. 177-192). • Unger, C., Bühmann, L., Lehmann, J., Ngonga Ngomo, A.-C., Gerber, D., & Cimiano, P. (2012). Template-based question answering over RDF data. Proceedings of the 21st international conference on World Wide Web - WWW 12, 639. New York, New York, USA: ACM Press. doi:10.1145/2187836.2187923
  • 58. Contact Nurfadhlina Mohd Sharef • Postdoctoral Fellow, Knowledge Technology Group, Centre of Artifical Intelligence, Universiti Kebangsaan Malaysia (Room 4.4, Level 4, Block H) • Department of Computer Science, Faculty of Computer Science and Information Technology, Universiti Putra Malaysia (Room C2.08, Level 2, Block C) • fadhlinams81@gmail.com