# Region connection calculus

(Redirected from Region Connection Calculus)

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.

## Axioms

RCC is governed by two axioms.[1]

• for any region x, x connects with itself
• for any region x, y, if x connects with y, y will 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.[2] 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:

o DC EC PO TPP NTPP TPPi NTPPi EQ
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.

## 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
house2 { DC, EC } property1
house2 NTPP property2
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 with the second property, or is even (tangential) part of it.

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[clarification needed] implemented in GeoSPARQL as described below:

A graphical representation of Region Connection Calculus (RCC: Randell, Cui and Cohn, 1992) and the links to the equivalent naming by the Open Geospatial Consortium (OGC) with their equivalent URIs.

## Implementations

• GQR is a reasoner for RCC-5, RCC-8, and RCC-25 (as well as other calculi for spatial and temporal reasoning)

## References

1. ^ Randell et. al. 1992
2. ^ Dong 2008
• Randell, D.A.; Cui, Z; Cohn, A.G. (1992). "A spatial logic based on regions and connection". 3rd Int. Conf. on Knowledge Representation and Reasoning. Morgan Kaufmann. pp. 165–176.
• Anthony G. Cohn; Brandon Bennett; John Gooday; Micholas Mark Gotts (1997). "Qualitative Spatial Representation and Reasoning with the Region Connection Calculus". GeoInformatica. 1: 275–316..
• Renz, J. (2002). Qualitative Spatial Reasoning with Topological Information. Springer Verlag.
• Dong, Tiansi (2008). "A COMMENT ON RCC: FROM RCC TO RCC⁺⁺". Journal of Philosophic Logic. 34 (2): 319–352. JSTOR 41217909..