A tuple-generating dependency is a sentence in first-order logic of the form:1
where ϕ {\displaystyle \phi } is a possibly empty and ψ {\displaystyle \psi } is a non-empty conjunction of relational atoms. A relational atom has the form R ( w 1 , … , w h ) {\displaystyle R(w_{1},\ldots ,w_{h})} , where each of the terms w , … , w h {\displaystyle w,\ldots ,w_{h}} are variables or constants.
Several fragments of TGDs have been defined. For instance, full TGDs are TGDs which do not use the existential quantifier. Full TGDs can equivalently be seen as programs in the Datalog query language.
There are also some fragments of TGDs that can be expressed in guarded logic, in particular:234
The expressive power of these fragments and TGDs has been studied in depth. For example, Heng Zhang et al.6, as well as Marco Console and Phokion G. Kolaitis,7 have developed a series of model-theoretic characterizations for these languages. In addition, Heng Zhang and Guifei Jiang have provided characterizations of the program expressive power of TGDs, several of their extensions, and Linear TGDs, specifically in the context of query answering.8
In SQL, inclusion dependencies are typically expressed by means of a stronger constraint called foreign key, which forces the frontier variables to be a candidate key in the table corresponding to the relational atom of ψ {\displaystyle \psi } .
Fagin, Ronald (2009). "Tuple-Generating Dependencies". In LIU, LING; ÖZSU, M. TAMER (eds.). Encyclopedia of Database Systems. Springer US. pp. 3201–3202. doi:10.1007/978-0-387-39940-9_1274. ISBN 9780387355443. 9780387355443 ↩
Benedikt, Michael; Bourhis, Pierre; Jachiet, Louis; Thomazo, Michaël (Aug 2019). Reasoning about Disclosure in Data Integration in the Presence of Source Constraints. IJCAI 2019 - 28th International Joint Conference on Artificial Intelligence. Macao, China. pp. 1551–1557. arXiv:1906.00624. doi:10.24963/ijcai.2019/215. /wiki/ArXiv_(identifier) ↩
Zhang, Heng; Zhang, Yan; Jiang, Guifei (2020-07-09). "Model-theoretic Characterizations of Existential Rule Languages". Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence. 2: 1940–1946. arXiv:2001.08688. doi:10.24963/ijcai.2020/269. https://www.ijcai.org/proceedings/2020/269 ↩
Console, Marco; Kolaitis, Phokion G.; Pieris, Andreas (June 2021). Model-theoretic Characterizations of Rule-based Ontologies. Symposium on Principles of Database Systems. PODS'21: Proceedings of the 40th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems. Virtual Event, China. pp. 416–428. doi:10.1145/3452021.3458310. hdl:11573/1568516. /wiki/Doi_(identifier) ↩
Kolaitis, Phokion G. "A Tutorial on Database Dependencies" (PDF). University of California Santa Cruz & IBM Research - Almaden. Archived from the original (PDF) on February 20, 2015. Retrieved 2021-12-10. https://web.archive.org/web/20150220105559/https://www.knaw.nl/shared/resources/actueel/bestanden/kolaitis.pdf#page=5 ↩
Zhang, Heng; Jiang, Guifei (2022-06-28). "Characterizing the Program Expressive Power of Existential Rule Languages". Proceedings of the AAAI Conference on Artificial Intelligence. 36 (5): 5950–5957. arXiv:2112.08136. doi:10.1609/aaai.v36i5.20540. ISSN 2374-3468. https://ojs.aaai.org/index.php/AAAI/article/view/20540 ↩