Rewriting Count Queries over DL-Lite TBoxes with Number Restrictions

We propose a query rewriting algorithm for a restricted class of conjunctive queries evaluated under count semantics over a DL-Lite knowledge base. The target query language is an extension of relational algebra with aggregation and arithmetic functions, which can be translated into SQL. The algorithm supports number restrictions on the RHS of axioms in the input TBox, which can be used to encode statistics. The size of the output query remains linear in the binary encoding of these numbers, which improves upon previously proposed approaches.

[1]  Diego Calvanese,et al.  Ontology-Based Data Access: A Survey , 2018, IJCAI.

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

[3]  Reinhard Pichler,et al.  Tractable Counting of the Answers to Conjunctive Queries , 2013, AMW.

[4]  Egor V. Kostylev,et al.  Complexity of Answering Counting Aggregate Queries over DL-Lite , 2013, Description Logics.

[5]  Tova Milo,et al.  Towards Tractable Algebras for Bags , 1996, J. Comput. Syst. Sci..

[6]  Magdalena Ortiz,et al.  Ontology-Mediated Query Answering with Data-Tractable Description Logics , 2015, Reasoning Web.

[7]  CalvaneseDiego,et al.  Conjunctive query containment and answering under description logic constraints , 2008 .

[8]  Diego Calvanese,et al.  Counting Query Answers over a DL-Lite Knowledge Base , 2020, IJCAI.

[9]  Ian Horrocks,et al.  Foundations of ontology-based data access under bag semantics , 2019, Artif. Intell..

[10]  Diego Calvanese,et al.  The Description Logic Handbook: Theory, Implementation, and Applications , 2003, Description Logic Handbook.

[11]  Diego Calvanese,et al.  Aggregate queries over ontologies , 2008, ONISW '08.

[12]  Limsoon Wong,et al.  Query Languages for Bags and Aggregate Functions , 1997, J. Comput. Syst. Sci..

[13]  Diego Calvanese,et al.  The DL-Lite Family and Relations , 2009, J. Artif. Intell. Res..

[14]  Diego Calvanese,et al.  Counting Query Answers over a DL-Lite Knowledge Base (extended version) , 2020, ArXiv.

[15]  Hubie Chen,et al.  Counting Answers to Existential Positive Queries: A Complexity Classification , 2016, PODS.

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