Expressing Topological Connectivity of Spatial Databases

We consider two-dimensional spatial databases defined in terms of polynomial inequalities and focus on the potential of programming languages for such databases to express queries related to topological connectivity. It is known that the topological connectivity test is not first-order expressible. One approach to obtain a language in which connectivity queries can be expressed would be to extend FO+Poly with a generalized (or Lindstrom) quantifier expressing that two points belong to the same connected component of a given database. For the expression of topological connectivity, extensions of first-order languages with recursion have been studied (in analogy with the classical relational model). Two such languages are spatial Datalog and FO+Poly+WHILE. Although both languages allow the expression of non-terminating programs, their (proven for FO+Poly+WHILE and conjectured for spatial Datalog) computational completeness makes them interesting objects of study. Previously, spatial Datalog programs have been studied for more restrictive forms of connectivity (e.g., piece-wise linear connectivity) and these programs were proved to correctly test connectivity on restricted classes of spatial databases (e.g., linear databases) only. In this paper, we present a spatial Datalog program that correctly tests topological connectivity of arbitrary compact (i.e., closed and bounded) spatial databases. In particular, it is guaranteed to terminate on this class of databases. This program is based on a first-order description of a known topological property of spatial databases, namely that locally they are conical. We also give a very natural implementation of topological connectivity in FO+Poly+WHILE, that is based on a first-order implementation of the curve selection lemma, and that works correctly on arbitrary spatial databases inputs. Finally, we raise the question whether topological connectivity of arbitrary spatial databases can also be expressed in spatial Datalog.

[1]  Bart Kuijpers,et al.  On Expressing Topological Connectivity in Spatial Datalog , 1997, CDB.

[2]  M-F Roy,et al.  Géométrie algébrique réelle , 1987 .

[3]  Jan Van den Bussche,et al.  Complete geometrical query languages (extended abstract) , 1997, PODS '97.

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

[5]  Marie-Françoise Roy,et al.  Real algebraic geometry , 1992 .

[6]  Micha Sharir,et al.  Planning, geometry, and complexity of robot motion , 1986 .

[7]  J. T. Shwartz,et al.  On the Piano Movers' Problem : III , 1983 .

[8]  Tomás Recio,et al.  Algorithms in Real Algebraic Geometry and Applications to Computational Geometry , 1990, Discrete and Computational Geometry.

[9]  A. Tarski A Decision Method for Elementary Algebra and Geometry , 2023 .

[10]  Stéphane Grumbach,et al.  Constraint Databases , 1999, JFPLC.

[11]  Jan Van den Bussche,et al.  Topological elementary equivalence of closed semi-algebraic sets in the real plane , 2000, Journal of Symbolic Logic.

[12]  E. Moise Geometric Topology in Dimensions 2 and 3 , 1977 .

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

[14]  Gabriel M. Kuper,et al.  Constraint query languages (preliminary report) , 1990, PODS '90.

[15]  George E. Collins,et al.  Hauptvortrag: Quantifier elimination for real closed fields by cylindrical algebraic decomposition , 1975, Automata Theory and Formal Languages.

[16]  Jan Van den Bussche,et al.  Complete geometrical query languages , 1997, PODS 1997.

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

[18]  Joos Heintz,et al.  Description of the connected components of a semialgebraic set in single exponential time , 1994, Discret. Comput. Geom..

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

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

[21]  Jan Van den Bussche,et al.  Termination Properties of Spatial Datalog Programs , 1996, Logic in Databases.

[22]  B. F. Caviness,et al.  Quantifier Elimination and Cylindrical Algebraic Decomposition , 2004, Texts and Monographs in Symbolic Computation.

[23]  George E. Collins,et al.  Quantifier elimination for real closed fields by cylindrical algebraic decomposition , 1975 .

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