Region connection calculus

{{more footnotes needed|date=November 2016}}

The region connection calculus (RCC) is intended to serve for qualitative spatial representation and reasoning. RCC abstractly describes regions (in Euclidean space, or in a topological space) by their possible relations to each other. RCC8 consists of 8 basic relations that are possible between two regions:

  • disconnected (DC)
  • externally connected (EC)
  • equal (EQ)
  • partially overlapping (PO)
  • tangential proper part (TPP)
  • tangential proper part inverse (TPPi)
  • non-tangential proper part (NTPP)
  • non-tangential proper part inverse (NTPPi)

From these basic relations, combinations can be built. For example, proper part (PP) is the union of TPP and NTPP.

Image:RCC8.jpg

Axioms

RCC is governed by two axioms.{{sfn|Randell|Cui|Cohn|1992}}

  • for any region x, x connects with itself
  • for any region x, y, if x connects with y, y connects with x

Remark on the axioms

The two axioms describe two features of the connection relation, but not the characteristic feature of the connect relation.{{sfn|Dong|2008}} For example, we can say that an object is less than 10 meters away from itself and that if object A is less than 10 meters away from object B, object B will be less than 10 meters away from object A. So, the relation 'less-than-10-meters' also satisfies the above two axioms, but does not talk about the connection relation in the intended sense of RCC.

Composition table

The composition table of RCC8 are as follows:

class="wikitable" style="margin:1em auto; text-align:center;" border="1"

! R2(b, c)→

----R1(a, b)↓

! DC

ECPOTPPNTPPTPPiNTPPiEQ
DC

| * || DC, EC, PO, TPP, NTPP || DC, EC, PO, TPP, NTPP || DC, EC, PO, TPP, NTPP || DC, EC, PO, TPP, NTPP || DC || DC || DC

EC

| DC, EC, PO, TPPi, NTPPi || DC, EC, PO, TPP, TPPi, EQ || DC, EC, PO, TPP, NTPP || EC, PO, TPP, NTPP || PO, TPP, NTPP || DC, EC || DC || EC

PO

| DC, EC, PO, TPPi, NTPPi || DC, EC, PO, TPPi, NTPPi || * || PO, TPP, NTPP || PO, TPP, NTPP || DC, EC, PO, TPPi, NTPPi || DC, EC, PO, TPPi, NTPPi || PO

TPP

| DC || DC, EC || DC, EC, PO, TPP, NTPP || TPP, NTPP || NTPP || DC, EC, PO, TPP, TPPi, EQ || DC, EC, PO, TPPi, NTPPi || TPP

NTPP

| DC || DC || DC, EC, PO, TPP, NTPP || NTPP || NTPP || DC, EC, PO, TPP, NTPP|| * || NTPP

TPPi

| DC, EC, PO, TPPi, NTPPi || EC, PO, TPPi, NTPPi || PO, TPPi, NTPPi || PO, TPP, TPPi, EQ || PO, TPP, NTPP || TPPi, NTPPi || NTPPi || TPPi

NTPPi

| DC, EC, PO, TPPi, NTPPi || PO, TPPi, NTPPi || PO, TPPi, NTPPi || PO, TPPi, NTPPi || PO, TPP, NTPP, TPPi, NTPPi, EQ|| NTPPi || NTPPi || NTPPi

EQ

| DC || EC || PO || TPP || NTPP || TPPi || NTPPi || EQ

  • "*" denotes the universal relation, no relation can be discarded.

Usage example: if a TPP b and b EC c, (row 4, column 2) of the table says that a DC c or a EC c.

Examples

The RCC8 calculus is intended for reasoning about spatial configurations. Consider the following example: two houses are connected via a road. Each house is located on an own property. The first house possibly touches the boundary of the property; the second one surely does not. What can we infer about the relation of the second property to the road?

The spatial configuration can be formalized in RCC8 as the following constraint network:

house1 DC house2

house1 {TPP, NTPP} property1

house1 {DC, EC} property2

house1 EC road

house2 { DC, EC } property1

house2 NTPP property2

house2 EC road

property1 { DC, EC } property2

road { DC, EC, TPP, TPPi, PO, EQ, NTPP, NTPPi } property1

road { DC, EC, TPP, TPPi, PO, EQ, NTPP, NTPPi } property2

Using the RCC8 composition table and the path-consistency algorithm, we can refine the network in the following way:

road { PO, EC } property1

road { PO, TPP } property2

That is, the road either overlaps (PO) property2, or is a tangential proper part of it. But, if the road is a tangential proper part of property2, then the road can only be externally connected (EC) to property1. That is, road PO property1 is not possible when road TPP property2. This fact is not obvious, but can be deduced once we examine the consistent "singleton-labelings" of the constraint network. The following paragraph briefly describes singleton-labelings.

First, we note that the path-consistency algorithm will also reduce the possible properties between house2 and property1 from { DC, EC } to just DC. So, the path-consistency algorithm leaves multiple possible constraints on 5 of the edges in the constraint network. Since each of the multiple constraints involves 2 constraints, we can reduce the network to 32 (25) possible unique constraint networks, each containing only single labels on each edge ("singleton labelings"). However, of the 32 possible singleton labelings, only 9 are consistent. (See [https://github.com/alreich/qualreas#labelings qualreas] for details.) Only one of the consistent singleton labelings has the edge road TPP property2 and the same labeling includes road EC property1.

Other versions of the region connection calculus include RCC5 (with only five basic relations - the distinction whether two regions touch each other are ignored) and RCC23 (which allows reasoning about convexity).

RCC8 use in GeoSPARQL

RCC8 has been partially{{Clarify|date=January 2016}} implemented in GeoSPARQL as described below:

File:Region_Connection_Calculus_8_Relations_and_Open_Geospatial_Consortium_relations.svg (OGC) with their equivalent URIs.]]

Implementations

  • [https://github.com/m-westphal/gqr GQR] is a reasoner for RCC-5, RCC-8, and RCC-23 (as well as other calculi for spatial and temporal reasoning)
  • [https://github.com/alreich/qualreas qualreas] is a Python framework for qualitative reasoning over networks of relation algebras, such as RCC-8, Allen's interval algebra and more.

See also

References

{{Reflist}}

Bibliography

  • {{cite conference|last1=Randell|first1=D.A.|last2=Cui|first2=Z|last3=Cohn|first3=A.G.|title=A spatial logic based on regions and connection|book-title=3rd Int. Conf. on Knowledge Representation and Reasoning|publisher=Morgan Kaufmann|date=1992|pages=165–176}}
  • {{cite journal|title=Qualitative Spatial Representation and Reasoning with the Region Connection Calculus|author1=Anthony G. Cohn|author2=Brandon Bennett|author3=John Gooday|author4=Micholas Mark Gotts|journal=GeoInformatica|volume=1|issue=3|pages=275–316|date=1997|doi=10.1023/A:1009712514511|bibcode=1997GInfo...1..275C |s2cid=14841370 }}.
  • {{cite book |title=Qualitative Spatial Reasoning with Topological Information|first=J. |last= Renz |series=Lecture Notes in Computer Science|publisher=Springer Verlag|date=2002|volume=2293|doi=10.1007/3-540-70736-0|isbn=978-3-540-43346-0|s2cid=8236425 }}
  • {{cite journal|first=Tiansi |last= Dong |title=A Comment on RCC: From RCC to RCC⁺⁺|jstor=41217909|journal=Journal of Philosophical Logic|volume=34|issue=2|pages=319–352|date=2008|doi=10.1007/s10992-007-9074-y|s2cid=6243376 }}.

Category:Reasoning

Category:Knowledge representation

Category:Constraint programming

Category:Computational topology

Category:Logical calculi