SlideShare a Scribd company logo
SPARQL and SQL technical aspects and synergy Relational model flat model, tabular form, typing is implicit (by convention, column definition) JOIN functions used to combine information from tables use of foreign keys to add semantics and graph-like structures each table has many columns = many attributes of objects RDF model may be viewed as flat  but because it is a graph can also be traversed hierarchically or arbitrarily explicit typing is common (by namespace definition) URIs instead of closed database table names explicit relationships via predicates (triple format: subj, pred, obj) relationships and references  are the key point   SPARQL designed to query collections of triples and to easily traverse relationships syntax vaguely resembles SQL (SELECT, WHERE, etc) it matches graph patterns SPARQL and SQL SPARQL can be translated to SQL
SPARQL “under the hood” Works with popular web and web services protocols:  HTTP  and  SOAP XML results format  (easy to transform, XSLT, XQuery) A SPARQL query consists of three parts: Pattern matching  (OPTIONAL, UNION, FILTER) Solution modifiers  (PROJECTION, DISTINCT, OFFSET, LIMIT) Output part  CONSTRUCT of new triples BGP  (Basic Graph Pattern) built-in mechanism Can work in conjunction with  RDFS ’s taxonomic reasoning (respects RDFS type checking and subsumption thus providing inference) Inference  system in RDFS (and through SPARQL) supports existential, sub-property, sub-class, and typing (implicit and explicit) inferences
SPARQL applications, engines, endpoints RDF engines (SPARQL to interrogate them) Oracle (will support SPARQL syntax), Allegrograph, OpenLink Virtuoso, ARQ/Joseki (HP), Boca (IBM), Rasqal for Redland, SWI-Prolog, Sesame, D2R Server Notable SPARQL users & applications (R&D and commercial) Garlik: SPARQL to built reports on people’s online credit reports, 500-2000 SPARQL queries to build a report, 1-2 seconds processing time, 8 big knowledge bases (>2bn triples), XML format) JSpace: an extension to mSpace, UI driven SPARQL firing, digital music domain POPS: expertise location service for NASA, federates 4 diverse data sources, 4.5M triples, pilot study for the Office of the Chief Engineer BIANCA: network asset management service, integrated view of applications, servers, networks and changes and their relations, deployed at NASA HCLS (Health Care and Life Sciences) interest group at W3C, 60 organisations members, Google maps based interface for Allen Brain Atlas, 20k genes, 400k images. Further resources and point of info: http://esw.w3.org/topic/SparqlImplementations
SPARQL and the Semantic Web - technical Relation of SPARQL to rules for the Semantic Web Rules: several proposals for rule systems usable on top of RDF/RDF (SWRL, N3, TRIPLE, SWI-Prolog, WSML, etc) Only a handful through W3C standardisation (SWRL) and already working on RIF (for interchanging rules) SPARQL is a query language (primarily) but can be used as a rule language (translation work underway for SPARQL to LP (Datalog) ) Example the RDFS entailment rule that can be expressed with SPARQL CONSTRUCT clause RIF charter states that it will be compatible with SPARQL
SPARQL and SQL technical aspects and synergy SQL Great for finding data from tabular representations, can get complex when many tables are involved in a given query SPARQL Good pattern matching paradigm, especially when relationships have to be used to answer a query Also add here: work on BGP for translating SPARQL to SQL (technical paper) Federated SPARQL endpoints and SPARQL validators, query resolvers, SPARQL APIs Use of SPARQL CONSTRUCTS as opposed to rules and inference engines Argument for SPARQL overarching SQL schemata: reduces computational workload with having to describe complex JOIN SQL queries; common namespaces and a match to underlying SQL schemata is the only workload Syndication and verticals to agree on common namespaces? Abstract layer from which to access merchant specific DBs Check sylvia’s slides from WSRI seminar – scalability of SPARQL and use cases – lack of SUM function, etc. – check also my slides Some examples of SPARQL at work? From the recent NaTii experiment and from e-response  - show them data provenance and typing examples (use of namespaces)

More Related Content

PPT
Portable Ontology Alignment Fragments - 2008
PPTX
Towards Flexible Indices for Distributed Graph Data: The Formal Schema-level...
PDF
OntoMaven Repositories and OMG API4KP
ODP
Poio API and GraF-XML @ Balisage 2013
PDF
Resume
PDF
Source-to-source transformations: Supporting tools and infrastructure
PDF
Using R for Cyber Security Part 1
PDF
Overview of the SPARQL-Generate language and latest developments
Portable Ontology Alignment Fragments - 2008
Towards Flexible Indices for Distributed Graph Data: The Formal Schema-level...
OntoMaven Repositories and OMG API4KP
Poio API and GraF-XML @ Balisage 2013
Resume
Source-to-source transformations: Supporting tools and infrastructure
Using R for Cyber Security Part 1
Overview of the SPARQL-Generate language and latest developments

Similar to SPARQL and SQL: technical aspects and synergy (20)

PDF
PPTX
A year on the Semantic Web @ W3C
PPTX
What;s Coming In SPARQL2?
PPTX
Triplestore and SPARQL
PDF
Spark and scala course content | Spark and scala course online training
PDF
Apache spark - Architecture , Overview & libraries
PPTX
SPARQL 1.1 Status
PDF
Ivan Herman - Semantic Web Activities @ W3C
PDF
RDF and Java
PDF
Learning spark ch01 - Introduction to Data Analysis with Spark
PPTX
Learning spark ch01 - Introduction to Data Analysis with Spark
PPTX
SPIN in Five Slides
PPT
Structured Dynamics' Semantic Technologies Product Stack
PDF
RDF APIs for .NET Framework
PDF
8th TUC Meeting - Zhe Wu (Oracle USA). Bridging RDF Graph and Property Graph...
PPTX
Spark SQL Tutorial | Spark SQL Using Scala | Apache Spark Tutorial For Beginn...
PPTX
Apache Spark Architecture | Apache Spark Architecture Explained | Apache Spar...
PDF
Let's start with Spark
PDF
Comparative Study That Aims Rdf Processing For The Java Platform
PDF
Composable Parallel Processing in Apache Spark and Weld
A year on the Semantic Web @ W3C
What;s Coming In SPARQL2?
Triplestore and SPARQL
Spark and scala course content | Spark and scala course online training
Apache spark - Architecture , Overview & libraries
SPARQL 1.1 Status
Ivan Herman - Semantic Web Activities @ W3C
RDF and Java
Learning spark ch01 - Introduction to Data Analysis with Spark
Learning spark ch01 - Introduction to Data Analysis with Spark
SPIN in Five Slides
Structured Dynamics' Semantic Technologies Product Stack
RDF APIs for .NET Framework
8th TUC Meeting - Zhe Wu (Oracle USA). Bridging RDF Graph and Property Graph...
Spark SQL Tutorial | Spark SQL Using Scala | Apache Spark Tutorial For Beginn...
Apache Spark Architecture | Apache Spark Architecture Explained | Apache Spar...
Let's start with Spark
Comparative Study That Aims Rdf Processing For The Java Platform
Composable Parallel Processing in Apache Spark and Weld
Ad

More from Yannis Kalfoglou (14)

PPT
Semantic technologies as an investment opportunity
PPT
Semantic technologies at work - 2007
PPT
Semantic technologies at work
PPT
Web 2.0 and mobile web
PPT
Semantic Technologies - 2007
PPT
E Res Akt Finalreview
PPT
Reasoning on the Semantic Web
PPT
Advanced Knowledge Technologies (AKT) -highlights 2006
PPT
Semantic Intensity Spectrum and Semantic Integration Algorithms
PPT
A Channel Theoretic Foundation for Ontology Coordination - 2004
PPT
On the Emergent Semantic Web and Overlooked Issues - 2004
PPT
Using Ontologies to Support and Critique Decisions - 2004
PPT
Initiating Organisational Memories using Ontology Network Analysis - 2002
PPT
Information Flow based Ontology Mapping - 2002
Semantic technologies as an investment opportunity
Semantic technologies at work - 2007
Semantic technologies at work
Web 2.0 and mobile web
Semantic Technologies - 2007
E Res Akt Finalreview
Reasoning on the Semantic Web
Advanced Knowledge Technologies (AKT) -highlights 2006
Semantic Intensity Spectrum and Semantic Integration Algorithms
A Channel Theoretic Foundation for Ontology Coordination - 2004
On the Emergent Semantic Web and Overlooked Issues - 2004
Using Ontologies to Support and Critique Decisions - 2004
Initiating Organisational Memories using Ontology Network Analysis - 2002
Information Flow based Ontology Mapping - 2002
Ad

Recently uploaded (20)

PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPT
Teaching material agriculture food technology
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Electronic commerce courselecture one. Pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Machine Learning_overview_presentation.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Approach and Philosophy of On baking technology
PPTX
Big Data Technologies - Introduction.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
MIND Revenue Release Quarter 2 2025 Press Release
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Programs and apps: productivity, graphics, security and other tools
Review of recent advances in non-invasive hemoglobin estimation
Advanced methodologies resolving dimensionality complications for autism neur...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Teaching material agriculture food technology
Building Integrated photovoltaic BIPV_UPV.pdf
Chapter 3 Spatial Domain Image Processing.pdf
A comparative analysis of optical character recognition models for extracting...
Electronic commerce courselecture one. Pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Machine Learning_overview_presentation.pptx
Spectral efficient network and resource selection model in 5G networks
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Approach and Philosophy of On baking technology
Big Data Technologies - Introduction.pptx
Network Security Unit 5.pdf for BCA BBA.
Agricultural_Statistics_at_a_Glance_2022_0.pdf
NewMind AI Weekly Chronicles - August'25-Week II
MIND Revenue Release Quarter 2 2025 Press Release
The AUB Centre for AI in Media Proposal.docx
Programs and apps: productivity, graphics, security and other tools

SPARQL and SQL: technical aspects and synergy

  • 1. SPARQL and SQL technical aspects and synergy Relational model flat model, tabular form, typing is implicit (by convention, column definition) JOIN functions used to combine information from tables use of foreign keys to add semantics and graph-like structures each table has many columns = many attributes of objects RDF model may be viewed as flat but because it is a graph can also be traversed hierarchically or arbitrarily explicit typing is common (by namespace definition) URIs instead of closed database table names explicit relationships via predicates (triple format: subj, pred, obj) relationships and references are the key point SPARQL designed to query collections of triples and to easily traverse relationships syntax vaguely resembles SQL (SELECT, WHERE, etc) it matches graph patterns SPARQL and SQL SPARQL can be translated to SQL
  • 2. SPARQL “under the hood” Works with popular web and web services protocols: HTTP and SOAP XML results format (easy to transform, XSLT, XQuery) A SPARQL query consists of three parts: Pattern matching (OPTIONAL, UNION, FILTER) Solution modifiers (PROJECTION, DISTINCT, OFFSET, LIMIT) Output part CONSTRUCT of new triples BGP (Basic Graph Pattern) built-in mechanism Can work in conjunction with RDFS ’s taxonomic reasoning (respects RDFS type checking and subsumption thus providing inference) Inference system in RDFS (and through SPARQL) supports existential, sub-property, sub-class, and typing (implicit and explicit) inferences
  • 3. SPARQL applications, engines, endpoints RDF engines (SPARQL to interrogate them) Oracle (will support SPARQL syntax), Allegrograph, OpenLink Virtuoso, ARQ/Joseki (HP), Boca (IBM), Rasqal for Redland, SWI-Prolog, Sesame, D2R Server Notable SPARQL users & applications (R&D and commercial) Garlik: SPARQL to built reports on people’s online credit reports, 500-2000 SPARQL queries to build a report, 1-2 seconds processing time, 8 big knowledge bases (>2bn triples), XML format) JSpace: an extension to mSpace, UI driven SPARQL firing, digital music domain POPS: expertise location service for NASA, federates 4 diverse data sources, 4.5M triples, pilot study for the Office of the Chief Engineer BIANCA: network asset management service, integrated view of applications, servers, networks and changes and their relations, deployed at NASA HCLS (Health Care and Life Sciences) interest group at W3C, 60 organisations members, Google maps based interface for Allen Brain Atlas, 20k genes, 400k images. Further resources and point of info: http://esw.w3.org/topic/SparqlImplementations
  • 4. SPARQL and the Semantic Web - technical Relation of SPARQL to rules for the Semantic Web Rules: several proposals for rule systems usable on top of RDF/RDF (SWRL, N3, TRIPLE, SWI-Prolog, WSML, etc) Only a handful through W3C standardisation (SWRL) and already working on RIF (for interchanging rules) SPARQL is a query language (primarily) but can be used as a rule language (translation work underway for SPARQL to LP (Datalog) ) Example the RDFS entailment rule that can be expressed with SPARQL CONSTRUCT clause RIF charter states that it will be compatible with SPARQL
  • 5. SPARQL and SQL technical aspects and synergy SQL Great for finding data from tabular representations, can get complex when many tables are involved in a given query SPARQL Good pattern matching paradigm, especially when relationships have to be used to answer a query Also add here: work on BGP for translating SPARQL to SQL (technical paper) Federated SPARQL endpoints and SPARQL validators, query resolvers, SPARQL APIs Use of SPARQL CONSTRUCTS as opposed to rules and inference engines Argument for SPARQL overarching SQL schemata: reduces computational workload with having to describe complex JOIN SQL queries; common namespaces and a match to underlying SQL schemata is the only workload Syndication and verticals to agree on common namespaces? Abstract layer from which to access merchant specific DBs Check sylvia’s slides from WSRI seminar – scalability of SPARQL and use cases – lack of SUM function, etc. – check also my slides Some examples of SPARQL at work? From the recent NaTii experiment and from e-response - show them data provenance and typing examples (use of namespaces)