Expressive Languages for Querying the Semantic Web

The problem of querying RDF data is a central issue for the development of the Semantic Web. The query language SPARQL has become the standard language for querying RDF since its W3C standardization in 2008. However, the 2008 version of this language missed some important functionalities: reasoning capabilities to deal with RDFS and OWL vocabularies, navigational capabilities to exploit the graph structure of RDF data, and a general form of recursion much needed to express some natural queries. To overcome these limitations, a new version of SPARQL, called SPARQL 1.1, was released in 2013, which includes entailment regimes for RDFS and OWL vocabularies, and a mechanism to express navigation patterns through regular expressions. Unfortunately, there are a number of useful navigation patterns that cannot be expressed in SPARQL 1.1, and the language lacks a general mechanism to express recursive queries. To the best of our knowledge, no efficient RDF query language that combines the above functionalities is known. It is the aim of this work to fill this gap. To this end, we focus on a core fragment of the OWL 2 QL profile of OWL 2 and show that every SPARQL query enriched with the above features can be naturally translated into a query expressed in a language that is based on an extension of Datalog, which allows for value invention and stratified negation. However, the query evaluation problem for this language is highly intractable, which is not surprising since it is expressive enough to encode some inherently hard queries. We identify a natural fragment of it, and we show it to be tractable and powerful enough to define SPARQL queries enhanced with the desired functionalities.

[1]  Catriel Beeri,et al.  The Implication Problem for Data Dependencies , 1981, ICALP.

[2]  Moshe Y. Vardi The complexity of relational query languages (Extended Abstract) , 1982, STOC '82.

[3]  Letizia Tanca,et al.  Logic Programming and Databases , 1990, Surveys in Computer Science.

[4]  Serge Abiteboul,et al.  Foundations of Databases , 1994 .

[5]  Sergio Greco,et al.  Querying Graph Databases , 2000, EDBT.

[6]  Georg Gottlob,et al.  Complexity and expressive power of logic programming , 2001, CSUR.

[7]  Deborah L. McGuinness,et al.  OWL Web ontology language overview , 2004 .

[8]  Dan Brickley,et al.  Rdf vocabulary description language 1.0 : Rdf schema , 2004 .

[9]  Tim Furche,et al.  RDF Querying: Language Constructs and Evaluation Methods Compared , 2006, Reasoning Web.

[10]  Diego Calvanese,et al.  Tractable Reasoning and Efficient Query Answering in Description Logics: The DL-Lite Family , 2007, Journal of Automated Reasoning.

[11]  Simon Schenk,et al.  A SPARQL Semantics Based on Datalog , 2007, KI.

[12]  Axel Polleres,et al.  From SPARQL to rules (and back) , 2007, WWW '07.

[13]  Claudio Gutiérrez,et al.  The Expressive Power of SPARQL , 2008, SEMWEB.

[14]  Boris Motik,et al.  OWL 2 Web Ontology Language: structural specification and functional-style syntax , 2008 .

[15]  Andrea Calì,et al.  Taming the Infinite Chase: Query Answering under Expressive Relational Constraints , 2008, Description Logics.

[16]  Andrea Calì,et al.  A general datalog-based framework for tractable query answering over ontologies , 2009, SEBD.

[17]  Shiyong Lu,et al.  Semantics preserving SPARQL-to-SQL translation , 2009, Data Knowl. Eng..

[18]  Bernardo Cuenca Grau,et al.  OWL 2 Web Ontology Language: Profiles , 2009 .

[19]  Jean-François Baget,et al.  Extending SPARQL with regular expression patterns (for querying RDF) , 2009, J. Web Semant..

[20]  Marcelo Arenas,et al.  Foundations of RDF Databases , 2008, Reasoning Web.

[21]  Marcelo Arenas,et al.  Semantics and complexity of SPARQL , 2006, TODS.

[22]  Peter F. Patel-Schneider,et al.  OWL 2 Web Ontology Language Mapping to RDF Graphs , 2009 .

[23]  Andrea Calì,et al.  Datalog+/-: A Family of Logical Knowledge Representation and Query Languages for New Applications , 2010, 2010 25th Annual IEEE Symposium on Logic in Computer Science.

[24]  Marcelo Arenas,et al.  nSPARQL: A navigational language for RDF , 2010, J. Web Semant..

[25]  Ian Horrocks,et al.  SPARQL Query Answering over OWL Ontologies , 2011, ESWC.

[26]  E. Prud hommeaux,et al.  SPARQL query language for RDF , 2011 .

[27]  Jean-François Baget,et al.  On rules with existential variables: Walking the decidability line , 2011, Artif. Intell..

[28]  Giorgio Orsi,et al.  Ontological queries: Rewriting and optimization , 2011, 2011 IEEE 27th International Conference on Data Engineering.

[29]  Andrea Calì,et al.  Towards more expressive ontology languages: The query answering problem , 2012, Artif. Intell..

[30]  Claudio Gutiérrez,et al.  Semantic navigation on the web of data: specification of routes, web fragments and actions , 2011, WWW.

[31]  Pablo Barceló Baeza Querying graph databases , 2013, PODS 2013.

[32]  Leonid Libkin,et al.  Trial for RDF: adapting graph query languages for RDF data , 2013, PODS '13.

[33]  Sebastian Rudolph,et al.  Flag & check: data access with monadically defined queries , 2013, PODS '13.

[34]  Georg Gottlob,et al.  Well-founded semantics for extended datalog and ontological reasoning , 2013, PODS '13.

[35]  Georg Gottlob,et al.  Expressiveness of guarded existential rule languages , 2014, PODS.

[36]  Axel Polleres,et al.  Everything you always wanted to know about blank nodes , 2014, J. Web Semant..

[37]  Georg Gottlob,et al.  Expressive languages for querying the semantic web , 2014, PODS.

[38]  Juan L. Reutter,et al.  Recursion in SPARQL , 2015, SEMWEB.

[39]  Georg Gottlob,et al.  Beyond SPARQL under OWL 2 QL Entailment Regime: Rules to the Rescue , 2015, IJCAI.

[40]  Luigi Bellomarini,et al.  Swift Logic for Big Data and Knowledge Graphs - Overview of Requirements, Language, and System , 2017, SOFSEM.

[41]  Luigi Bellomarini,et al.  The Vadalog System: Datalog-based Reasoning for Knowledge Graphs , 2018, Proc. VLDB Endow..

[42]  Georg Gottlob,et al.  Datalog: Bag Semantics via Set Semantics , 2019, ICDT.

[43]  Georg Gottlob,et al.  The Space-Efficient Core of Vadalog , 2018, PODS.