Safe constraint queries

We cxlend some of the classical characterization theorems of the relational theory particularly those related to query safety to the context where database elements come with fixed interpreted structure, and where formulae over elements of that structure can be used in queries. We show that the addition of common interpreted functions such as real addition and multiplication to the relational calculus preserves important characterization theorems of the relational calculus, and also preserves certain combinatorial properlies of queries. Our main result of the first kind is that there is a syntactic characterization of the collection of safe queries over the relational calculus supplemented by a wide class of interpreted functions a class that includes addition, multiplication, and exponcntiation and that this characterization gives us an interpreted analog of the concept of range-restricted query from the uninterpreted setting. Furthermore, our range-restricted queries are particularly intuitive for the relational calculus with real arithmetic, and give a natural syntax for safe queries in the presence of polynomial functions, We use these characterizations to show that safety is decidable for Boolean combinations of conjuncLive queries for a large class of interpreted structures. WC show a dichotomy theorem that sets a polynomial bound on the growth of the output of a query that might refer to addition, multiplication and exponentiation. We apply the above results for finite databases to get results on finitely representable databases. We obtain syntactic characterizations of the queries on finitely rcprcscntablc databases that preserve certain geometric conditions, such as being convex polytopes, polyhedra, and compact semi-linear sets. The latter corresponds to many spatial applications. We show how to give an cffectivc syntax to safe queries, and prove decidability of preservation properties for conjunctive queries.

[1]  Martin Davis On the number of solutions of Diophantine equations , 1972 .

[2]  丸山 徹 Convex Analysisの二,三の進展について , 1977 .

[3]  Peter Z. Revesz,et al.  Safe query languages for constraint databases , 1998, TODS.

[4]  Marc Gyssens,et al.  On the decidability of semi-linearity for semi-algebraic sets and its implications for spatial databases (extended abstract) , 1997, PODS '97.

[5]  Michael Kifer,et al.  On Safety, Domain Independence, and Capturability of Database Queries (Preliminary Report) , 1988, JCDKB.

[6]  Gabriel M. Kuper,et al.  Constraint Query Languages , 1995, J. Comput. Syst. Sci..

[7]  Jeffrey D. Uuman Principles of database and knowledge- base systems , 1989 .

[8]  Jeffrey D. Ullman,et al.  Information integration using logical views , 1997, Theor. Comput. Sci..

[9]  Dan Suciu,et al.  Deciding containment for queries with complex objects (extended abstract) , 1997, ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems.

[10]  A. Wilkie Model completeness results for expansions of the ordered field of real numbers by restricted Pfaffian functions and the exponential function , 1996 .

[11]  Abraham Silberschatz,et al.  An axiomatic approach to deciding query safety in deductive databases , 1988, PODS '88.

[12]  Gabriel M. Kuper,et al.  Eucil, Tarski, and Engler Encompassed (Preliminary Report) , 1997, DBPL.

[13]  Rodney W. Topor,et al.  Safety and translation of relational calculus , 1991, TODS.

[14]  D. V. Gucht,et al.  First-order queries on finite structures over the reals , 1995, Proceedings of Tenth Annual IEEE Symposium on Logic in Computer Science.

[15]  Marc Gyssens,et al.  On the Decidability of Semilinearity for Semialgebraic Sets and Its Implications for Spatial Databases , 1999, J. Comput. Syst. Sci..

[16]  Michael Benedikt,et al.  Languages for relational databases over interpreted structures , 1997, PODS '97.

[17]  Yoram Hirshfeld,et al.  On first order database query languages , 1991, [1991] Proceedings Sixth Annual IEEE Symposium on Logic in Computer Science.

[18]  Jan Van den Bussche,et al.  Towards a theory of spatial database queries (extended abstract) , 1994, PODS '94.

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

[20]  Moshe Y. Vardi The Decision Problem for Database Dependencies , 1981, Inf. Process. Lett..

[21]  Abraham Silberschatz,et al.  Safety of recursive Horn clauses with infinite relations , 1987, PODS '87.

[22]  Limsoon Wong,et al.  Relational expressive power of constraint query languages , 1996, PODS.

[23]  Jianwen Su,et al.  Finitely Representable Databases , 1997, J. Comput. Syst. Sci..

[24]  Marc Gyssens,et al.  On Query Languages for Linear Queries Definable with Polynomial Constraints , 1996, CP.

[25]  Joseph O'Rourke,et al.  Computational Geometry in C. , 1995 .

[26]  A. Pillay,et al.  Definable sets in ordered structures , 1984 .

[27]  Marc Gyssens,et al.  On the Desirability and Limitations of Linear Spatial Database Models , 1995, SSD.

[28]  R. Tijdeman,et al.  The Number of Solutions of Diophantine Equations , 2022 .

[29]  Richard Hull,et al.  Safety and translation of calculus queries with scalar functions , 1993, PODS.

[30]  Michael A. Taitslin,et al.  Finite queries do not have effective syntax , 1995, Inf. Comput..

[31]  Jianwen Su,et al.  Linear Constraint Query Languages: Expressive Power and Complexity , 1994, LCC.

[32]  A. K. Ailamazyan,et al.  Reduction of a relational model with infinite domains to the finite-domain case , 1986 .

[33]  Mihalis Yannakakis,et al.  Equivalence among Relational Expressions with the Union and Difference Operation , 1978, VLDB.

[34]  Hanspeter Bieri,et al.  Elementary Set Operations with d-Dimensional Polyhedra , 1988, Workshop on Computational Geometry.

[35]  L. Dries Remarks on Tarski's problem concerning (R, +, *, exp) , 1984 .

[36]  Chen C. Chang,et al.  Model Theory: Third Edition (Dover Books On Mathematics) By C.C. Chang;H. Jerome Keisler;Mathematics , 1966 .

[37]  Michael A. Taitslin,et al.  Linear vs. order constraint queries over rational databases (extended abstract) , 1996, PODS.

[38]  Jan Van den Bussche,et al.  First-Order Queries on Finite Structures Over the Reals , 1998, SIAM J. Comput..

[39]  Gabriel M. Kuper,et al.  Linear vs Polynomial Constraints in Database Query Languages , 1994, PPCP.

[40]  Michael Benedikt,et al.  Safe Constraint Queries , 2000, SIAM J. Comput..

[41]  Marc Gyssens,et al.  An expressive language for linear spatial database queries , 1998, J. Comput. Syst. Sci..

[42]  Michael A. Taitslin,et al.  Safe stratified Datalog with integer order does not have syntax , 1998, TODS.

[43]  Mihalis Yannakakis,et al.  Equivalences Among Relational Expressions with the Union and Difference Operators , 1980, J. ACM.

[44]  Raimund Seidel,et al.  On the difficulty of triangulating three-dimensional Nonconvex Polyhedra , 1992, Discret. Comput. Geom..

[45]  Michael Benedikt,et al.  On the structure of queries in constraint query languages , 1996, Proceedings 11th Annual IEEE Symposium on Logic in Computer Science.

[46]  Anand Pillay,et al.  Model theory of fields , 1996 .

[47]  Alexei P. Stolboushkin,et al.  Linear vs. Order Contstrained Queries Over Rational Databases. , 1996, ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems.

[48]  Jan Paredaens,et al.  Towards a theory of spatial database queries (extended abstract) , 1994, PODS.

[49]  Oscar H. Ibarra,et al.  On the containment and equivalence of database queries with linear constraints (extended abstract) , 1997, PODS '97.

[50]  J. G. Pierce,et al.  Geometric Algorithms and Combinatorial Optimization , 2016 .