On Graph Queries and Modal Constraints
Abstract
Some fundamental problems in database theory and knowledge representation can be viewed as instances of the query entailment problem. While query evaluation asks whether a given query holds in a specific structure, query entailment consists in determining whether the query holds in every model of a given theory that extends that structure. The input structure represents the raw data stored in a database; the theory captures contextual information such as a set of database constraints or an ontology; and the query is used to extract specific information of interest.
The recent proliferation of graph databases has brought the database and knowledge representation communities closer together, as many key problems in both fields involve the same structures – labelled graphs – and similar combinations of formalisms for theories and queries. A notable example is the combination of description logics and conjunctive regular path queries. Description logics are a family of formalisms based on fragments of first order logic, akin to modal logics. They are among the most prominent ontology languages and they are capable of expressing most kinds of constraints relevant in graph databases. Conjunctive regular path queries extend conjunctive queries (primitive positive first-order formulas) by allowing regular expressions over binary predicates to be used as atoms. They form the core of practical query languages employed in graph database systems and the Semantic Web.
What distinguishes the two fields is the approach to infinity: knowledge representation embraces infinite models, whereas database theory focuses on finite models. Although many cases of the entailment problem have long been solved over unrestricted (finite or infinite) models, their finite-model counterparts have only recently seen progress, and many questions remain open.
Keywords and phrases:
conjunctive regular path queries, query entailment, query containment, graph databases, database schemas, integrity constraints, description logics, finite-model reasoning, ontology-mediated query answering, static analysisCategory:
Invited Talk2012 ACM Subject Classification:
Theory of computation Logic and databases ; Theory of computation Description logicsAcknowledgements:
I am deeply grateful to Magdalena Ortiz and Mantas Šimkus for opening the door to description logics for me.Funding:
Poland’s NCN grant 2018/30/E/ST6/00042.Editors:
Paweł Gawrychowski, Filip Mazowiecki, and Michał SkrzypczakSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
References
- [1] Franz Baader, Ian Horrocks, Carsten Lutz, and Ulrike Sattler. An Introduction to Description Logic. Cambridge University Press, 2017.
- [2] Angela Bonifati, George H. L. Fletcher, Hannes Voigt, and Nikolay Yakovets. Querying Graphs. Synthesis Lectures on Data Management. Morgan & Claypool Publishers, 2018. doi:10.2200/S00873ED1V01Y201808DTM051.
- [3] Filip Murlak. Finite-Model Reasoning for Graph Queries and Description Logics. In Marco Console and Boris Konev, editors, Reasoning Web. Declarative Artificial Intelligence: Knowledge, Rules, Logic - 19th International Summer School 2023 Oslo, Norway, September 21-24, 2023, Tutorial Lectures, volume 15400 of Lecture Notes in Computer Science, pages 23–53. Springer, 2023. doi:10.1007/978-3-031-80283-6_2.
