Published online by Cambridge University Press: 01 June 2011
Introduction
In this chapter, we consider spatial databases that are modeled as semi-algebraic sets and we present some logic-based languages to query them. We discuss various properties of these query languages, mainly concerning their expressive power.
The basic query language in this context is first-order logic over the real numbers extended with predicates to address the spatial database relations (Section 2.2). We discuss geometric properties that are expressible in this logic (Section 2.3) and then focus on first-order expressible topological properties of 2-dimensional spatial datasets. A property is called topological if it is invariant under homeomorphisms of the ambient space. We give a characterization of topological elementary equivalence and present a point-based language, called cone logic that captures exactly the topological queries expressible in first-order logic over the reals (Section 2.4 and 2.7). Next, we present another point-based language that captures the first-order queries that are invariant under affinities (Section 2.6).
The second half of this chapter is devoted to extensions of first-order logic over the reals with some form of recursion. We briefly discuss two such extensions: spatial Datalog and first-order logic extended with a while-loop (Section 2.8). We discuss in more detail extensions of first-order logic with different types of transitive-closure operators, with or without stop-conditions (Section 2.9) and investigate their expressive power (Section 2.10). The evaluation of queries expressed in transitive-closure logic with or without stop conditions may be non-terminating.
To save this book to your Kindle, first ensure [email protected] is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
Find out more about the Kindle Personal Document Service.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.