Allen's interval algebra
Allen's interval algebra is a calculus for temporal reasoning that was introduced by James F. Allen in 1983. The calculus defines possible relations between time intervals and provides a composition table that can be used as a basis for reasoning about temporal descriptions of events. Formal descriptionRelationsThe following 13 base relations capture the possible relations between two intervals. To see that the 13 relations are exhaustive, note that each point of can be at 5 possible locations relative to : before, at the start, within, at the end, after. These give possible relative positions for the start and the end of . Of these, we cannot have since , and similarly we cannot have , thus giving us 13 possible relations. In general, the number of different relations between n intervals, starting with n = 0, is 1, 1, 13, 409, 23917, 2244361... OEIS A055203. The special case shown above is for n = 2. Composition of relations between intervalsFor reasoning about the relations between temporal intervals, Allen's interval algebra provides a composition table. Given the relation between and and the relation between and , the composition table allows for concluding about the relation between and . Together with a converse operation, this turns Allen's interval algebra into a relation algebra. Using this calculus, given facts can be formalized and then used for automatic reasoning. Relations between intervals are formalized as sets of base relations. The sentences
are formalized in Allen's Interval Algebra as follows:
For the example, one can infer . ExtensionsAllen's interval algebra can be used for the description of both temporal intervals and spatial configurations. For the latter use, the relations are interpreted as describing the relative position of spatial objects. This also works for three-dimensional objects by listing the relation for each coordinate separately. The study of overlapping markup uses a similar algebra (see [1]). Its models have more variations depending on whether endpoints of document structures are permitted to be truly co-located, or merely [tangent]. Temporal primitivesIn the cultural heritage ontology CIDOC CRM, Allen relations are replaced by so-called temporal primitives, which facilitate the formulation of attestable statements as well as reasoning about these statements.[2] Temporal primitives split up the Allen relations into individual statements about the start or end of the intervals. For example, X overlaps with Y () can be split as follows:
In addition, the equal to of the Allen relations is replaced by before or with and after or with. A simple example:
In the example, it is not necessary to specify whether Harold II was killed at the beginning or during or at the end of the battle, i.e. whether , or applies (disjunctions such as cannot be expressed in CIDOC CRM, except in queries). If it is relevant for a particular historical question, it can be specified later by adding e.g. ends after the start of. CIDOC CRM distinguishes between events and their corresponding time intervals. Allen relations and temporal primitives are statements between events and only as a consequence between their time intervals. Another difference is that temporal, spatial and spatiotemporal entities in CIDOC CRM are seen as having fuzzy borders. Especially statements about exact simultaneity are otherwise extremely rare. Implementations
See alsoReferences
Sources
|