SlideShare ist ein Scribd-Unternehmen logo
1 von 50
Downloaden Sie, um offline zu lesen
KIT – University of the State of Baden-Wuerttemberg and
National Research Center of the Helmholtz Association
Institute of Applied Informatics and Formal Description Metthods (AIFB)
www.kit.edu
?uri
?string?states
?population
yago:AfricanCountries
dbo:capital rdfs:label
<1000000
LANG=en
optional
SPARTIQULATION
Verbalizing SPARQL queries
Basil Ell, Denny Vrandečić, Elena Simperl
International Workshop on Interacting with Linked Data, Extended Semantic Web Conference 2012
28 May 2012
Institute of Applied Informatics and Formal Description Methods2 29.05.2012
MOTIVATION
Basil Ell – Verbalizing SPARQL queries
Institute of Applied Informatics and Formal Description Methods3 29.05.2012
Motivation
Basil Ell – Verbalizing SPARQL queries
SPARQL
[QALD 2011]
[Haase et al., 2009]
[Shekarpour et al., 2011]
Institute of Applied Informatics and Formal Description Methods4 29.05.2012
Motivation
Basil Ell – Verbalizing SPARQL queries
SPARQL
SPARQL
[QALD 2011]
[Haase et al., 2009]
[Shekarpour et al., 2011]
Institute of Applied Informatics and Formal Description Methods5 29.05.2012
Motivation
Basil Ell – Verbalizing SPARQL queries
SPARQL
SPARQLText
[QALD 2011]
[Haase et al., 2009]
[Shekarpour et al., 2011]
Institute of Applied Informatics and Formal Description Methods6 29.05.2012
Motivation
Basil Ell – Verbalizing SPARQL queries
SPARQL
SPARQLText
[QALD 2011]
[Haase et al., 2009]
[Shekarpour et al., 2011]
Institute of Applied Informatics and Formal Description Methods7 29.05.2012
APROACH
Basil Ell – Verbalizing SPARQL queries
Institute of Applied Informatics and Formal Description Methods8 29.05.2012
The pipeline architecture
Basil Ell – Verbalizing SPARQL queries
Document
Planner
Microplanner
Surface
Realizer
Content determination
Document structuring
Lexicalization
Referring expression generation
Aggregation
Linguistic realization
Surface realization
SPARQL
Text
DP
TS
[Reiter and Dale, 2000]
Institute of Applied Informatics and Formal Description Methods9 29.05.2012
The pipeline architecture
Basil Ell – Verbalizing SPARQL queries
Document
Planner
Microplanner
Surface
Realizer
Content determination
Document structuring
Lexicalization
Referring expression generation
Aggregation
Linguistic realization
Surface realization
SPARQL
Text
DP
TS
1. Select the information to communicate
2. Constructing messages and deciding
for their ordering and structure
[Reiter and Dale, 2000]
Institute of Applied Informatics and Formal Description Methods10 29.05.2012
The pipeline architecture
Basil Ell – Verbalizing SPARQL queries
Document
Planner
Microplanner
Surface
Realizer
Content determination
Document structuring
Lexicalization
Referring expression generation
Aggregation
Linguistic realization
Surface realization
SPARQL
Text
DP
TS
1. Select the information to communicate
2. Constructing messages and deciding
for their ordering and structure
3. Decide which words to use in order to
express the content
4. Decide how to refer to an entity
5. Map to linguistic structures
[Reiter and Dale, 2000]
Institute of Applied Informatics and Formal Description Methods11 29.05.2012
The pipeline architecture
Basil Ell – Verbalizing SPARQL queries
Document
Planner
Microplanner
Surface
Realizer
Content determination
Document structuring
Lexicalization
Referring expression generation
Aggregation
Linguistic realization
Surface realization
SPARQL
Text
DP
TS
1. Select the information to communicate
2. Constructing messages and deciding
for their ordering and structure
3. Decide which words to use in order to
express the content
4. Decide how to refer to an entity
5. Map to linguistic structures
6. Create natural language
7. Add structure to text such as
HTML elements
[Reiter and Dale, 2000]
Institute of Applied Informatics and Formal Description Methods12 29.05.2012
The pipeline architecture
Basil Ell – Verbalizing SPARQL queries
Document
Planner
Microplanner
Surface
Realizer
Content determination
Document structuring
Lexicalization
Referring expression generation
Aggregation
Linguistic realization
Surface realization
SPARQL
Text
DP
TS
1. Select the information to communicate
2. Constructing messages and deciding
for their ordering and structure
3. Decide which words to use in order to
express the content
4. Decide how to refer to an entity
5. Map to linguistic structures
6. Create natural language
7. Add structure to text such as
HTML elements
[Reiter and Dale, 2000]
Institute of Applied Informatics and Formal Description Methods13 29.05.2012
Restrictions
Basil Ell – Verbalizing SPARQL queries
SPARQL 1.0 SELECT
Institute of Applied Informatics and Formal Description Methods14 29.05.2012
Restrictions
Basil Ell – Verbalizing SPARQL queries
SPARQL 1.0 SELECT
UNION and GROUP BY queries
Institute of Applied Informatics and Formal Description Methods15 29.05.2012
Restrictions
Basil Ell – Verbalizing SPARQL queries
SPARQL 1.0 SELECT
UNION and GROUP BY queries
„Disconnected“ query graphs
Institute of Applied Informatics and Formal Description Methods16 29.05.2012
Restrictions
Basil Ell – Verbalizing SPARQL queries
SPARQL 1.0 SELECT
UNION and GROUP BY queries
„Disconnected“ query graphs
Regular expressions etc.
Institute of Applied Informatics and Formal Description Methods17 29.05.2012
Example – SPARQL query
Basil Ell – Verbalizing SPARQL queries
01 PREFIX dbo: <http://dbpedia.org/ontology/>
02 PREFIX yago: <http://dbpedia.org/class/yago/>
03 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
04 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
05 PREFIX dbp: <http://dbpedia.org/property/>
06 SELECT DISTINCT ?uri ?string
07 WHERE {
08 ?states rdf:type yago:AfricanCountries .
09 ?states dbo:capital ?uri .
10 ?uri dbp:population ?population .
11 FILTER ( ?population < 1000000 ) .
12 OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') }
13 }
Institute of Applied Informatics and Formal Description Methods18 29.05.2012
Example query – graph representation
Basil Ell – Verbalizing SPARQL queries
?uri
?string?states
?population
yago:AfricanCountries
dbo:capital rdfs:label
<1000000
LANG=en
optional
?var
?var
resource
filter
selected var
variable
Institute of Applied Informatics and Formal Description Methods19 29.05.2012
Document structuring – 4 Steps
Basil Ell – Verbalizing SPARQL queries
Main entity
identification
Graph
trans-
formation
Message
creation
Create
Document
Plan
Institute of Applied Informatics and Formal Description Methods20 29.05.2012
Example – identify main entity
Basil Ell – Verbalizing SPARQL queries
?uri
?string?states
?population
yago:AfricanCountries
dbo:capital rdfs:label
<1000000
LANG=en
optional
?var
?var
resource
filter
selected var
variable
Select a variable that is verbalized as subject
Institute of Applied Informatics and Formal Description Methods21 29.05.2012
Example – identify main entity
Basil Ell – Verbalizing SPARQL queries
?uri
?string?states
?population
yago:AfricanCountries
dbo:capital rdfs:label
<1000000
LANG=en
optional
?var
?var
resource
filter
selected var
variable
Select a variable that is verbalized as subject
Institute of Applied Informatics and Formal Description Methods22 29.05.2012
Example – identify main entity
Basil Ell – Verbalizing SPARQL queries
?uri
?string?states
?population
yago:AfricanCountries
dbo:capital rdfs:label
<1000000
LANG=en
optional
?var
?var
resource
filter
selected var
variable
Select a variable that is verbalized as subject
?string Labels if available of capitals of African countries ...
Bad: subject is optional.
Institute of Applied Informatics and Formal Description Methods23 29.05.2012
Example – identify main entity
Basil Ell – Verbalizing SPARQL queries
?uri
?string?states
?population
yago:AfricanCountries
dbo:capital rdfs:label
<1000000
LANG=en
optional
?var
?var
resource
filter
selected var
variable
Select a variable that is verbalized as subject
?popu-
lation
Population < 10^6 of capitals of African countries ...
Bad: variable is not selected.
Institute of Applied Informatics and Formal Description Methods24 29.05.2012
Example – identify main entity
Basil Ell – Verbalizing SPARQL queries
?uri
?string?states
?population
yago:AfricanCountries
dbo:capital rdfs:label
<1000000
LANG=en
optional
?var
?var
resource
filter
selected var
variable
Select a variable that is verbalized as subject
?states African countries having capitals that have populations < 10^6 ...
Bad: variable is not selected.
Institute of Applied Informatics and Formal Description Methods25 29.05.2012
Example – identify main entity
Basil Ell – Verbalizing SPARQL queries
?uri
?string?states
?population
yago:AfricanCountries
dbo:capital rdfs:label
<1000000
LANG=en
optional
?var
?var
resource
filter
selected var
variable
Select a variable that is verbalized as subject
?uri Capitals of African countries having population < 10^6 ...
Good: Label for main entity is requested.
Institute of Applied Informatics and Formal Description Methods26 29.05.2012
Graph transformation
Idea: Reduce the set of message types
to simplify verbalization
Main entity is transformed into root node
Reversal of some edges necessary
Basil Ell – Verbalizing SPARQL queries
Institute of Applied Informatics and Formal Description Methods27 29.05.2012
Graph transformation
Idea: Reduce the set of message types
to simplify verbalization
Main entity is transformed into root node
Reversal of some edges necessary
Basil Ell – Verbalizing SPARQL queries
Institute of Applied Informatics and Formal Description Methods28 29.05.2012
Example – transformed graph
Basil Ell – Verbalizing SPARQL queries
?uri
?string?states
?population
yago:AfricanCountries
dbo:capital
- rdfs:label
<1000000
LANG=en
optional
?var
?var
resource
filter
selected var
variable
Institute of Applied Informatics and Formal Description Methods29 29.05.2012
Message creation
Cut graph into independently verbalizable parts
Filters are stored in VAR messages
Basil Ell – Verbalizing SPARQL queries
1
1
Messages (1-9) represent paths,
message types are path classes
Institute of Applied Informatics and Formal Description Methods30 29.05.2012
Example – messages
Basil Ell – Verbalizing SPARQL queries
?uri
?string?states
?population
yago:AfricanCountries
dbo:capital
- rdfs:label
<1000000
LANG=en
optional
?var
?var
resource
filter
selected var
variable
Institute of Applied Informatics and Formal Description Methods31 29.05.2012
Example – messages
Basil Ell – Verbalizing SPARQL queries
?uri
?string?states
?population
yago:AfricanCountries
dbo:capital
- rdfs:label
<1000000
LANG=en
optional
?var
?var
resource
filter
selected var
variable
(5) M(RV)*RlV
Institute of Applied Informatics and Formal Description Methods32 29.05.2012
Example – messages
Basil Ell – Verbalizing SPARQL queries
?uri
?string?states
?population
yago:AfricanCountries
dbo:capital
- rdfs:label
<1000000
LANG=en
optional
?var
?var
resource
filter
selected var
variable
(3) M(RV)*RV
(5) M(RV)*RlV
Institute of Applied Informatics and Formal Description Methods33 29.05.2012
Example – messages
Basil Ell – Verbalizing SPARQL queries
?uri
?string?states
?population
yago:AfricanCountries
dbo:capital
- rdfs:label
<1000000
LANG=en
optional
?var
?var
resource
filter
selected var
variable
(7) M(RV)*RtR
(3) M(RV)*RV
(5) M(RV)*RlV
Institute of Applied Informatics and Formal Description Methods34 29.05.2012
Example – messages
Basil Ell – Verbalizing SPARQL queries
?uri
?string?states
?population
yago:AfricanCountries
dbo:capital
- rdfs:label
<1000000
LANG=en
optional
?var
?var
resource
filter
selected var
variable
(7) M(RV)*RtR
(3) M(RV)*RV
(5) M(RV)*RlV
(10) VAR+4 x
Institute of Applied Informatics and Formal Description Methods35 29.05.2012
Document Plan
Basil Ell – Verbalizing SPARQL queries
constraints requests modifiers
DP
1 2 3
Institute of Applied Informatics and Formal Description Methods36 29.05.2012
Document Plan
Basil Ell – Verbalizing SPARQL queries
constraints requests modifiers
DP
1 2 3
Constraits for main entity, e.g. its class,
having population < 10^6
Institute of Applied Informatics and Formal Description Methods37 29.05.2012
Document Plan
Basil Ell – Verbalizing SPARQL queries
constraints requests modifiers
DP
1 2 3
Requested information, e.g. its name
Constraits for main entity, e.g. its class,
having population < 10^6
Institute of Applied Informatics and Formal Description Methods38 29.05.2012
Document Plan
Basil Ell – Verbalizing SPARQL queries
constraints requests modifiers
DP
1 2 3
Modifiers, e.g. LIMIT, ORDER BY ...
Requested information, e.g. its name
Constraits for main entity, e.g. its class,
having population < 10^6
Institute of Applied Informatics and Formal Description Methods39 29.05.2012
Example - verbalization
Basil Ell – Verbalizing SPARQL queries
?uri
?states
yago:AfricanCountries
dbo:capital
-
M(RV)*RtR (cons)
Institute of Applied Informatics and Formal Description Methods40 29.05.2012
Example - verbalization
Basil Ell – Verbalizing SPARQL queries
?uri
?states
yago:AfricanCountries
dbo:capital
-
M(RV)*RtR
Capitals of African countries
(cons)
Institute of Applied Informatics and Formal Description Methods41 29.05.2012
Example - verbalization
Basil Ell – Verbalizing SPARQL queries
?uri
?states
yago:AfricanCountries
dbo:capital
-
M(RV)*RtR
Capitals of African countries
?uri
?population <1000000
M(RV)*RV
(cons)
(cons)
Institute of Applied Informatics and Formal Description Methods42 29.05.2012
Example - verbalization
Basil Ell – Verbalizing SPARQL queries
?uri
?states
yago:AfricanCountries
dbo:capital
-
M(RV)*RtR
Capitals of African countries
?uri
?population <1000000
M(RV)*RV
that are having populations that are less
than 1000000
(cons)
(cons)
Institute of Applied Informatics and Formal Description Methods43 29.05.2012
Example - verbalization
Basil Ell – Verbalizing SPARQL queries
?uri
?states
yago:AfricanCountries
dbo:capital
-
M(RV)*RtR
Capitals of African countries
?uri
?population <1000000
M(RV)*RV
that are having populations that are less
than 1000000
?uri
?stringrdfs:label
LANG=en
optional
M(RV)*RlV
(cons)
(cons)
(req)
Institute of Applied Informatics and Formal Description Methods44 29.05.2012
Example - verbalization
Basil Ell – Verbalizing SPARQL queries
?uri
?states
yago:AfricanCountries
dbo:capital
-
M(RV)*RtR
Capitals of African countries
?uri
?population <1000000
M(RV)*RV
that are having populations that are less
than 1000000
?uri
?stringrdfs:label
LANG=en
optional
M(RV)*RlV
where available their English labels.and
(cons)
(cons)
(req)
Institute of Applied Informatics and Formal Description Methods45 29.05.2012
SUMMARY AND FUTURE WORK
Basil Ell – Verbalizing SPARQL queries
Institute of Applied Informatics and Formal Description Methods46 29.05.2012
Summary and Future Work
Summary:
Presented an approach for explaining SPARQL
SELECT queries in natural language
Schema-agnostic
Basil Ell – Verbalizing SPARQL queries
Institute of Applied Informatics and Formal Description Methods47 29.05.2012
Summary and Future Work
Summary:
Presented an approach for explaining SPARQL
SELECT queries in natural language
Schema-agnostic
Directions for future work:
Tackle challenges in the two missing pipeline
components
Exploitation of linguistic features of labels
Evaluation
Basil Ell – Verbalizing SPARQL queries
Institute of Applied Informatics and Formal Description Methods48 29.05.2012
?QUESTIONS
http://km.aifb.kit.edu/projects/spartiqulator/
Basil Ell – Verbalizing SPARQL queries
?uri
?string?states
?population
yago:AfricanCountries
dbo:capital rdfs:label
<1000000
LANG=en
optional
The work presented here is supported by the European Union's 7th
Framework Programme (FP7/2007-2013) under Grant Agreement 257790.
http://bit.ly/KGuDTL
Institute of Applied Informatics and Formal Description Methods49 29.05.2012
REFERENCES
Basil Ell – Verbalizing SPARQL queries
Institute of Applied Informatics and Formal Description Methods50 29.05.2012
References
Basil Ell – Verbalizing SPARQL queries
S. Shekarpour, S. Auer, A.-C. Ngonga Ngomo, D. Gerber, S. Hellmann,
and C. Stadler. Keyword-driven SPARQL Query Generation Leveraging
Background Knowledge. In International Conference on Web Intelligence,
2011.
E. Reiter and R. Dale. Building Natural Language Generation Systems.
Natural Language Processing. Cambridge University Press, 2000.
P. Haase, D. M. Herzig, M. Musen, and D. T. Tran. Semantic Wiki Search.
In L. A. P. et al., editor, 6th Annual European Semantic Web Conference,
ESWC2009, Heraklion, Crete, Greece, volume 5554 of LNCS, pages 445-
460. Springer Verlag, Juni 2009.
QALD 2011: http://www.sc.cit-ec.uni-bielefeld.de/qald-1

Weitere ähnliche Inhalte

Was ist angesagt?

RDF Tutorial - SPARQL 20091031
RDF Tutorial - SPARQL 20091031RDF Tutorial - SPARQL 20091031
RDF Tutorial - SPARQL 20091031kwangsub kim
 
SHACL: Shaping the Big Ball of Data Mud
SHACL: Shaping the Big Ball of Data MudSHACL: Shaping the Big Ball of Data Mud
SHACL: Shaping the Big Ball of Data MudRichard Cyganiak
 
Jarrar: RDF Stores -Challenges and Solutions
Jarrar: RDF Stores -Challenges and SolutionsJarrar: RDF Stores -Challenges and Solutions
Jarrar: RDF Stores -Challenges and SolutionsMustafa Jarrar
 
Two graph data models : RDF and Property Graphs
Two graph data models : RDF and Property GraphsTwo graph data models : RDF and Property Graphs
Two graph data models : RDF and Property Graphsandyseaborne
 
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIsJosef Petrák
 
The Semantic Web meets the Code of Federal Regulations
The Semantic Web meets the Code of Federal RegulationsThe Semantic Web meets the Code of Federal Regulations
The Semantic Web meets the Code of Federal Regulationstbruce
 
Ks2008 Semanticweb In Action
Ks2008 Semanticweb In ActionKs2008 Semanticweb In Action
Ks2008 Semanticweb In ActionRinke Hoekstra
 
RDF Validation Future work and applications
RDF Validation Future work and applicationsRDF Validation Future work and applications
RDF Validation Future work and applicationsJose Emilio Labra Gayo
 
A year on the Semantic Web @ W3C
A year on the Semantic Web @ W3CA year on the Semantic Web @ W3C
A year on the Semantic Web @ W3CIvan Herman
 
Special Topics: Recording Methods and Transcription Guidelines (July 2019)
Special Topics: Recording Methods and Transcription Guidelines (July 2019)Special Topics: Recording Methods and Transcription Guidelines (July 2019)
Special Topics: Recording Methods and Transcription Guidelines (July 2019)ALAeLearningSolutions
 
Graph Data -- RDF and Property Graphs
Graph Data -- RDF and Property GraphsGraph Data -- RDF and Property Graphs
Graph Data -- RDF and Property Graphsandyseaborne
 

Was ist angesagt? (17)

RDF Tutorial - SPARQL 20091031
RDF Tutorial - SPARQL 20091031RDF Tutorial - SPARQL 20091031
RDF Tutorial - SPARQL 20091031
 
SHACL: Shaping the Big Ball of Data Mud
SHACL: Shaping the Big Ball of Data MudSHACL: Shaping the Big Ball of Data Mud
SHACL: Shaping the Big Ball of Data Mud
 
RDF Data Model
RDF Data ModelRDF Data Model
RDF Data Model
 
Jarrar: RDF Stores -Challenges and Solutions
Jarrar: RDF Stores -Challenges and SolutionsJarrar: RDF Stores -Challenges and Solutions
Jarrar: RDF Stores -Challenges and Solutions
 
Two graph data models : RDF and Property Graphs
Two graph data models : RDF and Property GraphsTwo graph data models : RDF and Property Graphs
Two graph data models : RDF and Property Graphs
 
Data in RDF
Data in RDFData in RDF
Data in RDF
 
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
 
Introduction to SPARQL
Introduction to SPARQLIntroduction to SPARQL
Introduction to SPARQL
 
The Semantic Web meets the Code of Federal Regulations
The Semantic Web meets the Code of Federal RegulationsThe Semantic Web meets the Code of Federal Regulations
The Semantic Web meets the Code of Federal Regulations
 
Jpl presentation
Jpl presentationJpl presentation
Jpl presentation
 
Ks2008 Semanticweb In Action
Ks2008 Semanticweb In ActionKs2008 Semanticweb In Action
Ks2008 Semanticweb In Action
 
RDF Validation Future work and applications
RDF Validation Future work and applicationsRDF Validation Future work and applications
RDF Validation Future work and applications
 
A year on the Semantic Web @ W3C
A year on the Semantic Web @ W3CA year on the Semantic Web @ W3C
A year on the Semantic Web @ W3C
 
Special Topics: Recording Methods and Transcription Guidelines (July 2019)
Special Topics: Recording Methods and Transcription Guidelines (July 2019)Special Topics: Recording Methods and Transcription Guidelines (July 2019)
Special Topics: Recording Methods and Transcription Guidelines (July 2019)
 
RDF and OWL
RDF and OWLRDF and OWL
RDF and OWL
 
Graph Data -- RDF and Property Graphs
Graph Data -- RDF and Property GraphsGraph Data -- RDF and Property Graphs
Graph Data -- RDF and Property Graphs
 
SPIN in Five Slides
SPIN in Five SlidesSPIN in Five Slides
SPIN in Five Slides
 

Ähnlich wie SPARTIQULATION - Verbalizing SPARQL queries

SPARQL Query Verbalization for Explaining Semantic Search Engine Queries
SPARQL Query Verbalization for Explaining Semantic Search Engine QueriesSPARQL Query Verbalization for Explaining Semantic Search Engine Queries
SPARQL Query Verbalization for Explaining Semantic Search Engine QueriesBasil Ell
 
A language-independent method for the extraction of RDF verbalization templat...
A language-independent method for the extraction of RDF verbalization templat...A language-independent method for the extraction of RDF verbalization templat...
A language-independent method for the extraction of RDF verbalization templat...Basil Ell
 
Build Knowledge Graphs with Oracle RDF to Extract More Value from Your Data
Build Knowledge Graphs with Oracle RDF to Extract More Value from Your DataBuild Knowledge Graphs with Oracle RDF to Extract More Value from Your Data
Build Knowledge Graphs with Oracle RDF to Extract More Value from Your DataJean Ihm
 
“Publishing and Consuming Linked Data. (Lessons learnt when using LOD in an a...
“Publishing and Consuming Linked Data. (Lessons learnt when using LOD in an a...“Publishing and Consuming Linked Data. (Lessons learnt when using LOD in an a...
“Publishing and Consuming Linked Data. (Lessons learnt when using LOD in an a...Marta Villegas
 
Data Integration And Visualization
Data Integration And VisualizationData Integration And Visualization
Data Integration And VisualizationIvan Ermilov
 
Introduction to linked data and the semantic web
Introduction to linked data and the semantic webIntroduction to linked data and the semantic web
Introduction to linked data and the semantic webDave Reynolds
 
CSHALS 2010 W3C Semanic Web Tutorial
CSHALS 2010 W3C Semanic Web TutorialCSHALS 2010 W3C Semanic Web Tutorial
CSHALS 2010 W3C Semanic Web TutorialLeeFeigenbaum
 
RDFa Semantic Web
RDFa Semantic WebRDFa Semantic Web
RDFa Semantic WebRob Paok
 
Re-using Media on the Web: Media fragment re-mixing and playout
Re-using Media on the Web: Media fragment re-mixing and playoutRe-using Media on the Web: Media fragment re-mixing and playout
Re-using Media on the Web: Media fragment re-mixing and playoutMediaMixerCommunity
 
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 technologySteve Ray
 
Finding knowledge, data and answers on the Semantic Web
Finding knowledge, data and answers on the Semantic WebFinding knowledge, data and answers on the Semantic Web
Finding knowledge, data and answers on the Semantic Webebiquity
 
SPARQL in the Semantic Web
SPARQL in the Semantic WebSPARQL in the Semantic Web
SPARQL in the Semantic WebJan Beeck
 
Efficient source selection for sparql endpoint federation
Efficient source selection for sparql endpoint federationEfficient source selection for sparql endpoint federation
Efficient source selection for sparql endpoint federationMuhammad Saleem
 
The Semantic Web #10 - SPARQL
The Semantic Web #10 - SPARQLThe Semantic Web #10 - SPARQL
The Semantic Web #10 - SPARQLMyungjin Lee
 

Ähnlich wie SPARTIQULATION - Verbalizing SPARQL queries (20)

SPARQL Query Verbalization for Explaining Semantic Search Engine Queries
SPARQL Query Verbalization for Explaining Semantic Search Engine QueriesSPARQL Query Verbalization for Explaining Semantic Search Engine Queries
SPARQL Query Verbalization for Explaining Semantic Search Engine Queries
 
A language-independent method for the extraction of RDF verbalization templat...
A language-independent method for the extraction of RDF verbalization templat...A language-independent method for the extraction of RDF verbalization templat...
A language-independent method for the extraction of RDF verbalization templat...
 
Build Knowledge Graphs with Oracle RDF to Extract More Value from Your Data
Build Knowledge Graphs with Oracle RDF to Extract More Value from Your DataBuild Knowledge Graphs with Oracle RDF to Extract More Value from Your Data
Build Knowledge Graphs with Oracle RDF to Extract More Value from Your Data
 
“Publishing and Consuming Linked Data. (Lessons learnt when using LOD in an a...
“Publishing and Consuming Linked Data. (Lessons learnt when using LOD in an a...“Publishing and Consuming Linked Data. (Lessons learnt when using LOD in an a...
“Publishing and Consuming Linked Data. (Lessons learnt when using LOD in an a...
 
Data Integration And Visualization
Data Integration And VisualizationData Integration And Visualization
Data Integration And Visualization
 
Introduction to linked data and the semantic web
Introduction to linked data and the semantic webIntroduction to linked data and the semantic web
Introduction to linked data and the semantic web
 
CSHALS 2010 W3C Semanic Web Tutorial
CSHALS 2010 W3C Semanic Web TutorialCSHALS 2010 W3C Semanic Web Tutorial
CSHALS 2010 W3C Semanic Web Tutorial
 
Querying Linked Data
Querying Linked DataQuerying Linked Data
Querying Linked Data
 
RDFa Semantic Web
RDFa Semantic WebRDFa Semantic Web
RDFa Semantic Web
 
Re-using Media on the Web: Media fragment re-mixing and playout
Re-using Media on the Web: Media fragment re-mixing and playoutRe-using Media on the Web: Media fragment re-mixing and playout
Re-using Media on the Web: Media fragment re-mixing and playout
 
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
 
Jpl presentation
Jpl presentationJpl presentation
Jpl presentation
 
Jpl presentation
Jpl presentationJpl presentation
Jpl presentation
 
NISO/DCMI September 25 Webinar: Implementing Linked Data in Developing Countr...
NISO/DCMI September 25 Webinar: Implementing Linked Data in Developing Countr...NISO/DCMI September 25 Webinar: Implementing Linked Data in Developing Countr...
NISO/DCMI September 25 Webinar: Implementing Linked Data in Developing Countr...
 
Finding knowledge, data and answers on the Semantic Web
Finding knowledge, data and answers on the Semantic WebFinding knowledge, data and answers on the Semantic Web
Finding knowledge, data and answers on the Semantic Web
 
Linked Open Data
Linked Open DataLinked Open Data
Linked Open Data
 
SPARQL in the Semantic Web
SPARQL in the Semantic WebSPARQL in the Semantic Web
SPARQL in the Semantic Web
 
Efficient source selection for sparql endpoint federation
Efficient source selection for sparql endpoint federationEfficient source selection for sparql endpoint federation
Efficient source selection for sparql endpoint federation
 
The Semantic Web #10 - SPARQL
The Semantic Web #10 - SPARQLThe Semantic Web #10 - SPARQL
The Semantic Web #10 - SPARQL
 

Kürzlich hochgeladen

CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIACURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIADr. TATHAGAT KHOBRAGADE
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bSérgio Sacani
 
Dr. E. Muralinath_ Blood indices_clinical aspects
Dr. E. Muralinath_ Blood indices_clinical  aspectsDr. E. Muralinath_ Blood indices_clinical  aspects
Dr. E. Muralinath_ Blood indices_clinical aspectsmuralinath2
 
300003-World Science Day For Peace And Development.pptx
300003-World Science Day For Peace And Development.pptx300003-World Science Day For Peace And Development.pptx
300003-World Science Day For Peace And Development.pptxryanrooker
 
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...Monika Rani
 
Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....
Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....
Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....muralinath2
 
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort ServiceCall Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort Serviceshivanisharma5244
 
Genome sequencing,shotgun sequencing.pptx
Genome sequencing,shotgun sequencing.pptxGenome sequencing,shotgun sequencing.pptx
Genome sequencing,shotgun sequencing.pptxSilpa
 
THE ROLE OF BIOTECHNOLOGY IN THE ECONOMIC UPLIFT.pptx
THE ROLE OF BIOTECHNOLOGY IN THE ECONOMIC UPLIFT.pptxTHE ROLE OF BIOTECHNOLOGY IN THE ECONOMIC UPLIFT.pptx
THE ROLE OF BIOTECHNOLOGY IN THE ECONOMIC UPLIFT.pptxANSARKHAN96
 
GBSN - Biochemistry (Unit 2) Basic concept of organic chemistry
GBSN - Biochemistry (Unit 2) Basic concept of organic chemistry GBSN - Biochemistry (Unit 2) Basic concept of organic chemistry
GBSN - Biochemistry (Unit 2) Basic concept of organic chemistry Areesha Ahmad
 
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsSérgio Sacani
 
Factory Acceptance Test( FAT).pptx .
Factory Acceptance Test( FAT).pptx       .Factory Acceptance Test( FAT).pptx       .
Factory Acceptance Test( FAT).pptx .Poonam Aher Patil
 
Use of mutants in understanding seedling development.pptx
Use of mutants in understanding seedling development.pptxUse of mutants in understanding seedling development.pptx
Use of mutants in understanding seedling development.pptxRenuJangid3
 
PSYCHOSOCIAL NEEDS. in nursing II sem pptx
PSYCHOSOCIAL NEEDS. in nursing II sem pptxPSYCHOSOCIAL NEEDS. in nursing II sem pptx
PSYCHOSOCIAL NEEDS. in nursing II sem pptxSuji236384
 
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and SpectrometryFAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and SpectrometryAlex Henderson
 
Module for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learningModule for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learninglevieagacer
 
Genetics and epigenetics of ADHD and comorbid conditions
Genetics and epigenetics of ADHD and comorbid conditionsGenetics and epigenetics of ADHD and comorbid conditions
Genetics and epigenetics of ADHD and comorbid conditionsbassianu17
 

Kürzlich hochgeladen (20)

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIACURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
CURRENT SCENARIO OF POULTRY PRODUCTION IN INDIA
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
 
Dr. E. Muralinath_ Blood indices_clinical aspects
Dr. E. Muralinath_ Blood indices_clinical  aspectsDr. E. Muralinath_ Blood indices_clinical  aspects
Dr. E. Muralinath_ Blood indices_clinical aspects
 
300003-World Science Day For Peace And Development.pptx
300003-World Science Day For Peace And Development.pptx300003-World Science Day For Peace And Development.pptx
300003-World Science Day For Peace And Development.pptx
 
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS  ESCORT SERVICE In Bhiwan...
Bhiwandi Bhiwandi ❤CALL GIRL 7870993772 ❤CALL GIRLS ESCORT SERVICE In Bhiwan...
 
PATNA CALL GIRLS 8617370543 LOW PRICE ESCORT SERVICE
PATNA CALL GIRLS 8617370543 LOW PRICE ESCORT SERVICEPATNA CALL GIRLS 8617370543 LOW PRICE ESCORT SERVICE
PATNA CALL GIRLS 8617370543 LOW PRICE ESCORT SERVICE
 
Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....
Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....
Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....
 
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort ServiceCall Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
 
Site Acceptance Test .
Site Acceptance Test                    .Site Acceptance Test                    .
Site Acceptance Test .
 
Genome sequencing,shotgun sequencing.pptx
Genome sequencing,shotgun sequencing.pptxGenome sequencing,shotgun sequencing.pptx
Genome sequencing,shotgun sequencing.pptx
 
THE ROLE OF BIOTECHNOLOGY IN THE ECONOMIC UPLIFT.pptx
THE ROLE OF BIOTECHNOLOGY IN THE ECONOMIC UPLIFT.pptxTHE ROLE OF BIOTECHNOLOGY IN THE ECONOMIC UPLIFT.pptx
THE ROLE OF BIOTECHNOLOGY IN THE ECONOMIC UPLIFT.pptx
 
GBSN - Biochemistry (Unit 2) Basic concept of organic chemistry
GBSN - Biochemistry (Unit 2) Basic concept of organic chemistry GBSN - Biochemistry (Unit 2) Basic concept of organic chemistry
GBSN - Biochemistry (Unit 2) Basic concept of organic chemistry
 
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
 
Factory Acceptance Test( FAT).pptx .
Factory Acceptance Test( FAT).pptx       .Factory Acceptance Test( FAT).pptx       .
Factory Acceptance Test( FAT).pptx .
 
Use of mutants in understanding seedling development.pptx
Use of mutants in understanding seedling development.pptxUse of mutants in understanding seedling development.pptx
Use of mutants in understanding seedling development.pptx
 
PSYCHOSOCIAL NEEDS. in nursing II sem pptx
PSYCHOSOCIAL NEEDS. in nursing II sem pptxPSYCHOSOCIAL NEEDS. in nursing II sem pptx
PSYCHOSOCIAL NEEDS. in nursing II sem pptx
 
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and SpectrometryFAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
 
Module for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learningModule for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learning
 
Genetics and epigenetics of ADHD and comorbid conditions
Genetics and epigenetics of ADHD and comorbid conditionsGenetics and epigenetics of ADHD and comorbid conditions
Genetics and epigenetics of ADHD and comorbid conditions
 

SPARTIQULATION - Verbalizing SPARQL queries

  • 1. KIT – University of the State of Baden-Wuerttemberg and National Research Center of the Helmholtz Association Institute of Applied Informatics and Formal Description Metthods (AIFB) www.kit.edu ?uri ?string?states ?population yago:AfricanCountries dbo:capital rdfs:label <1000000 LANG=en optional SPARTIQULATION Verbalizing SPARQL queries Basil Ell, Denny Vrandečić, Elena Simperl International Workshop on Interacting with Linked Data, Extended Semantic Web Conference 2012 28 May 2012
  • 2. Institute of Applied Informatics and Formal Description Methods2 29.05.2012 MOTIVATION Basil Ell – Verbalizing SPARQL queries
  • 3. Institute of Applied Informatics and Formal Description Methods3 29.05.2012 Motivation Basil Ell – Verbalizing SPARQL queries SPARQL [QALD 2011] [Haase et al., 2009] [Shekarpour et al., 2011]
  • 4. Institute of Applied Informatics and Formal Description Methods4 29.05.2012 Motivation Basil Ell – Verbalizing SPARQL queries SPARQL SPARQL [QALD 2011] [Haase et al., 2009] [Shekarpour et al., 2011]
  • 5. Institute of Applied Informatics and Formal Description Methods5 29.05.2012 Motivation Basil Ell – Verbalizing SPARQL queries SPARQL SPARQLText [QALD 2011] [Haase et al., 2009] [Shekarpour et al., 2011]
  • 6. Institute of Applied Informatics and Formal Description Methods6 29.05.2012 Motivation Basil Ell – Verbalizing SPARQL queries SPARQL SPARQLText [QALD 2011] [Haase et al., 2009] [Shekarpour et al., 2011]
  • 7. Institute of Applied Informatics and Formal Description Methods7 29.05.2012 APROACH Basil Ell – Verbalizing SPARQL queries
  • 8. Institute of Applied Informatics and Formal Description Methods8 29.05.2012 The pipeline architecture Basil Ell – Verbalizing SPARQL queries Document Planner Microplanner Surface Realizer Content determination Document structuring Lexicalization Referring expression generation Aggregation Linguistic realization Surface realization SPARQL Text DP TS [Reiter and Dale, 2000]
  • 9. Institute of Applied Informatics and Formal Description Methods9 29.05.2012 The pipeline architecture Basil Ell – Verbalizing SPARQL queries Document Planner Microplanner Surface Realizer Content determination Document structuring Lexicalization Referring expression generation Aggregation Linguistic realization Surface realization SPARQL Text DP TS 1. Select the information to communicate 2. Constructing messages and deciding for their ordering and structure [Reiter and Dale, 2000]
  • 10. Institute of Applied Informatics and Formal Description Methods10 29.05.2012 The pipeline architecture Basil Ell – Verbalizing SPARQL queries Document Planner Microplanner Surface Realizer Content determination Document structuring Lexicalization Referring expression generation Aggregation Linguistic realization Surface realization SPARQL Text DP TS 1. Select the information to communicate 2. Constructing messages and deciding for their ordering and structure 3. Decide which words to use in order to express the content 4. Decide how to refer to an entity 5. Map to linguistic structures [Reiter and Dale, 2000]
  • 11. Institute of Applied Informatics and Formal Description Methods11 29.05.2012 The pipeline architecture Basil Ell – Verbalizing SPARQL queries Document Planner Microplanner Surface Realizer Content determination Document structuring Lexicalization Referring expression generation Aggregation Linguistic realization Surface realization SPARQL Text DP TS 1. Select the information to communicate 2. Constructing messages and deciding for their ordering and structure 3. Decide which words to use in order to express the content 4. Decide how to refer to an entity 5. Map to linguistic structures 6. Create natural language 7. Add structure to text such as HTML elements [Reiter and Dale, 2000]
  • 12. Institute of Applied Informatics and Formal Description Methods12 29.05.2012 The pipeline architecture Basil Ell – Verbalizing SPARQL queries Document Planner Microplanner Surface Realizer Content determination Document structuring Lexicalization Referring expression generation Aggregation Linguistic realization Surface realization SPARQL Text DP TS 1. Select the information to communicate 2. Constructing messages and deciding for their ordering and structure 3. Decide which words to use in order to express the content 4. Decide how to refer to an entity 5. Map to linguistic structures 6. Create natural language 7. Add structure to text such as HTML elements [Reiter and Dale, 2000]
  • 13. Institute of Applied Informatics and Formal Description Methods13 29.05.2012 Restrictions Basil Ell – Verbalizing SPARQL queries SPARQL 1.0 SELECT
  • 14. Institute of Applied Informatics and Formal Description Methods14 29.05.2012 Restrictions Basil Ell – Verbalizing SPARQL queries SPARQL 1.0 SELECT UNION and GROUP BY queries
  • 15. Institute of Applied Informatics and Formal Description Methods15 29.05.2012 Restrictions Basil Ell – Verbalizing SPARQL queries SPARQL 1.0 SELECT UNION and GROUP BY queries „Disconnected“ query graphs
  • 16. Institute of Applied Informatics and Formal Description Methods16 29.05.2012 Restrictions Basil Ell – Verbalizing SPARQL queries SPARQL 1.0 SELECT UNION and GROUP BY queries „Disconnected“ query graphs Regular expressions etc.
  • 17. Institute of Applied Informatics and Formal Description Methods17 29.05.2012 Example – SPARQL query Basil Ell – Verbalizing SPARQL queries 01 PREFIX dbo: <http://dbpedia.org/ontology/> 02 PREFIX yago: <http://dbpedia.org/class/yago/> 03 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 04 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 05 PREFIX dbp: <http://dbpedia.org/property/> 06 SELECT DISTINCT ?uri ?string 07 WHERE { 08 ?states rdf:type yago:AfricanCountries . 09 ?states dbo:capital ?uri . 10 ?uri dbp:population ?population . 11 FILTER ( ?population < 1000000 ) . 12 OPTIONAL { ?uri rdfs:label ?string. FILTER (lang(?string) = 'en') } 13 }
  • 18. Institute of Applied Informatics and Formal Description Methods18 29.05.2012 Example query – graph representation Basil Ell – Verbalizing SPARQL queries ?uri ?string?states ?population yago:AfricanCountries dbo:capital rdfs:label <1000000 LANG=en optional ?var ?var resource filter selected var variable
  • 19. Institute of Applied Informatics and Formal Description Methods19 29.05.2012 Document structuring – 4 Steps Basil Ell – Verbalizing SPARQL queries Main entity identification Graph trans- formation Message creation Create Document Plan
  • 20. Institute of Applied Informatics and Formal Description Methods20 29.05.2012 Example – identify main entity Basil Ell – Verbalizing SPARQL queries ?uri ?string?states ?population yago:AfricanCountries dbo:capital rdfs:label <1000000 LANG=en optional ?var ?var resource filter selected var variable Select a variable that is verbalized as subject
  • 21. Institute of Applied Informatics and Formal Description Methods21 29.05.2012 Example – identify main entity Basil Ell – Verbalizing SPARQL queries ?uri ?string?states ?population yago:AfricanCountries dbo:capital rdfs:label <1000000 LANG=en optional ?var ?var resource filter selected var variable Select a variable that is verbalized as subject
  • 22. Institute of Applied Informatics and Formal Description Methods22 29.05.2012 Example – identify main entity Basil Ell – Verbalizing SPARQL queries ?uri ?string?states ?population yago:AfricanCountries dbo:capital rdfs:label <1000000 LANG=en optional ?var ?var resource filter selected var variable Select a variable that is verbalized as subject ?string Labels if available of capitals of African countries ... Bad: subject is optional.
  • 23. Institute of Applied Informatics and Formal Description Methods23 29.05.2012 Example – identify main entity Basil Ell – Verbalizing SPARQL queries ?uri ?string?states ?population yago:AfricanCountries dbo:capital rdfs:label <1000000 LANG=en optional ?var ?var resource filter selected var variable Select a variable that is verbalized as subject ?popu- lation Population < 10^6 of capitals of African countries ... Bad: variable is not selected.
  • 24. Institute of Applied Informatics and Formal Description Methods24 29.05.2012 Example – identify main entity Basil Ell – Verbalizing SPARQL queries ?uri ?string?states ?population yago:AfricanCountries dbo:capital rdfs:label <1000000 LANG=en optional ?var ?var resource filter selected var variable Select a variable that is verbalized as subject ?states African countries having capitals that have populations < 10^6 ... Bad: variable is not selected.
  • 25. Institute of Applied Informatics and Formal Description Methods25 29.05.2012 Example – identify main entity Basil Ell – Verbalizing SPARQL queries ?uri ?string?states ?population yago:AfricanCountries dbo:capital rdfs:label <1000000 LANG=en optional ?var ?var resource filter selected var variable Select a variable that is verbalized as subject ?uri Capitals of African countries having population < 10^6 ... Good: Label for main entity is requested.
  • 26. Institute of Applied Informatics and Formal Description Methods26 29.05.2012 Graph transformation Idea: Reduce the set of message types to simplify verbalization Main entity is transformed into root node Reversal of some edges necessary Basil Ell – Verbalizing SPARQL queries
  • 27. Institute of Applied Informatics and Formal Description Methods27 29.05.2012 Graph transformation Idea: Reduce the set of message types to simplify verbalization Main entity is transformed into root node Reversal of some edges necessary Basil Ell – Verbalizing SPARQL queries
  • 28. Institute of Applied Informatics and Formal Description Methods28 29.05.2012 Example – transformed graph Basil Ell – Verbalizing SPARQL queries ?uri ?string?states ?population yago:AfricanCountries dbo:capital - rdfs:label <1000000 LANG=en optional ?var ?var resource filter selected var variable
  • 29. Institute of Applied Informatics and Formal Description Methods29 29.05.2012 Message creation Cut graph into independently verbalizable parts Filters are stored in VAR messages Basil Ell – Verbalizing SPARQL queries 1 1 Messages (1-9) represent paths, message types are path classes
  • 30. Institute of Applied Informatics and Formal Description Methods30 29.05.2012 Example – messages Basil Ell – Verbalizing SPARQL queries ?uri ?string?states ?population yago:AfricanCountries dbo:capital - rdfs:label <1000000 LANG=en optional ?var ?var resource filter selected var variable
  • 31. Institute of Applied Informatics and Formal Description Methods31 29.05.2012 Example – messages Basil Ell – Verbalizing SPARQL queries ?uri ?string?states ?population yago:AfricanCountries dbo:capital - rdfs:label <1000000 LANG=en optional ?var ?var resource filter selected var variable (5) M(RV)*RlV
  • 32. Institute of Applied Informatics and Formal Description Methods32 29.05.2012 Example – messages Basil Ell – Verbalizing SPARQL queries ?uri ?string?states ?population yago:AfricanCountries dbo:capital - rdfs:label <1000000 LANG=en optional ?var ?var resource filter selected var variable (3) M(RV)*RV (5) M(RV)*RlV
  • 33. Institute of Applied Informatics and Formal Description Methods33 29.05.2012 Example – messages Basil Ell – Verbalizing SPARQL queries ?uri ?string?states ?population yago:AfricanCountries dbo:capital - rdfs:label <1000000 LANG=en optional ?var ?var resource filter selected var variable (7) M(RV)*RtR (3) M(RV)*RV (5) M(RV)*RlV
  • 34. Institute of Applied Informatics and Formal Description Methods34 29.05.2012 Example – messages Basil Ell – Verbalizing SPARQL queries ?uri ?string?states ?population yago:AfricanCountries dbo:capital - rdfs:label <1000000 LANG=en optional ?var ?var resource filter selected var variable (7) M(RV)*RtR (3) M(RV)*RV (5) M(RV)*RlV (10) VAR+4 x
  • 35. Institute of Applied Informatics and Formal Description Methods35 29.05.2012 Document Plan Basil Ell – Verbalizing SPARQL queries constraints requests modifiers DP 1 2 3
  • 36. Institute of Applied Informatics and Formal Description Methods36 29.05.2012 Document Plan Basil Ell – Verbalizing SPARQL queries constraints requests modifiers DP 1 2 3 Constraits for main entity, e.g. its class, having population < 10^6
  • 37. Institute of Applied Informatics and Formal Description Methods37 29.05.2012 Document Plan Basil Ell – Verbalizing SPARQL queries constraints requests modifiers DP 1 2 3 Requested information, e.g. its name Constraits for main entity, e.g. its class, having population < 10^6
  • 38. Institute of Applied Informatics and Formal Description Methods38 29.05.2012 Document Plan Basil Ell – Verbalizing SPARQL queries constraints requests modifiers DP 1 2 3 Modifiers, e.g. LIMIT, ORDER BY ... Requested information, e.g. its name Constraits for main entity, e.g. its class, having population < 10^6
  • 39. Institute of Applied Informatics and Formal Description Methods39 29.05.2012 Example - verbalization Basil Ell – Verbalizing SPARQL queries ?uri ?states yago:AfricanCountries dbo:capital - M(RV)*RtR (cons)
  • 40. Institute of Applied Informatics and Formal Description Methods40 29.05.2012 Example - verbalization Basil Ell – Verbalizing SPARQL queries ?uri ?states yago:AfricanCountries dbo:capital - M(RV)*RtR Capitals of African countries (cons)
  • 41. Institute of Applied Informatics and Formal Description Methods41 29.05.2012 Example - verbalization Basil Ell – Verbalizing SPARQL queries ?uri ?states yago:AfricanCountries dbo:capital - M(RV)*RtR Capitals of African countries ?uri ?population <1000000 M(RV)*RV (cons) (cons)
  • 42. Institute of Applied Informatics and Formal Description Methods42 29.05.2012 Example - verbalization Basil Ell – Verbalizing SPARQL queries ?uri ?states yago:AfricanCountries dbo:capital - M(RV)*RtR Capitals of African countries ?uri ?population <1000000 M(RV)*RV that are having populations that are less than 1000000 (cons) (cons)
  • 43. Institute of Applied Informatics and Formal Description Methods43 29.05.2012 Example - verbalization Basil Ell – Verbalizing SPARQL queries ?uri ?states yago:AfricanCountries dbo:capital - M(RV)*RtR Capitals of African countries ?uri ?population <1000000 M(RV)*RV that are having populations that are less than 1000000 ?uri ?stringrdfs:label LANG=en optional M(RV)*RlV (cons) (cons) (req)
  • 44. Institute of Applied Informatics and Formal Description Methods44 29.05.2012 Example - verbalization Basil Ell – Verbalizing SPARQL queries ?uri ?states yago:AfricanCountries dbo:capital - M(RV)*RtR Capitals of African countries ?uri ?population <1000000 M(RV)*RV that are having populations that are less than 1000000 ?uri ?stringrdfs:label LANG=en optional M(RV)*RlV where available their English labels.and (cons) (cons) (req)
  • 45. Institute of Applied Informatics and Formal Description Methods45 29.05.2012 SUMMARY AND FUTURE WORK Basil Ell – Verbalizing SPARQL queries
  • 46. Institute of Applied Informatics and Formal Description Methods46 29.05.2012 Summary and Future Work Summary: Presented an approach for explaining SPARQL SELECT queries in natural language Schema-agnostic Basil Ell – Verbalizing SPARQL queries
  • 47. Institute of Applied Informatics and Formal Description Methods47 29.05.2012 Summary and Future Work Summary: Presented an approach for explaining SPARQL SELECT queries in natural language Schema-agnostic Directions for future work: Tackle challenges in the two missing pipeline components Exploitation of linguistic features of labels Evaluation Basil Ell – Verbalizing SPARQL queries
  • 48. Institute of Applied Informatics and Formal Description Methods48 29.05.2012 ?QUESTIONS http://km.aifb.kit.edu/projects/spartiqulator/ Basil Ell – Verbalizing SPARQL queries ?uri ?string?states ?population yago:AfricanCountries dbo:capital rdfs:label <1000000 LANG=en optional The work presented here is supported by the European Union's 7th Framework Programme (FP7/2007-2013) under Grant Agreement 257790. http://bit.ly/KGuDTL
  • 49. Institute of Applied Informatics and Formal Description Methods49 29.05.2012 REFERENCES Basil Ell – Verbalizing SPARQL queries
  • 50. Institute of Applied Informatics and Formal Description Methods50 29.05.2012 References Basil Ell – Verbalizing SPARQL queries S. Shekarpour, S. Auer, A.-C. Ngonga Ngomo, D. Gerber, S. Hellmann, and C. Stadler. Keyword-driven SPARQL Query Generation Leveraging Background Knowledge. In International Conference on Web Intelligence, 2011. E. Reiter and R. Dale. Building Natural Language Generation Systems. Natural Language Processing. Cambridge University Press, 2000. P. Haase, D. M. Herzig, M. Musen, and D. T. Tran. Semantic Wiki Search. In L. A. P. et al., editor, 6th Annual European Semantic Web Conference, ESWC2009, Heraklion, Crete, Greece, volume 5554 of LNCS, pages 445- 460. Springer Verlag, Juni 2009. QALD 2011: http://www.sc.cit-ec.uni-bielefeld.de/qald-1