Allen Interval Relation Classifier

Classify the 13 Allen relations between finite positive-length intervals, with A relative to B and exact endpoint equality.

Description

Classify the 13 Allen relations between finite positive-length intervals, with A relative to B and exact endpoint equality.

Allen's interval relations distinguish thirteen arrangements of two positive-length intervals. The classification separates before/after, touching, containment, equal and partial-overlap cases.

When to use this tool

Classify the 13 Allen relations between finite positive-length intervals, with A relative to B and exact endpoint equality.

  • Prepare the supplied aStart, aEnd, bStart, bEnd fields for this operation.
  • Compare the complete example with the representation used by your own input before carrying the result into another step.

How to use the tool and how it works

  1. Enter aStart, aEnd, bStart, bEnd. Use the exact text syntax, units and index conventions explained below.
  2. Run the tool. If input validation fails, correct the supplied fields before interpreting any result.
  3. Read result.relation. Interpret false, null and empty lists using the distinctions below; they can be valid outputs.

Require each end to exceed its start. Compare exact endpoints in a fixed decision tree and return the matching relation, including inverse pairs such as starts/started-by and meets/met-by.1

Input fieldMeaning and representationAccepted input
aStarta start.Finite number
aEnda end.Finite number
bStartb start.Finite number
bEndb end.Finite number
Output fieldInterpretation
resultObject containing the named outputs below.
result.relationThe relation value under the stated formula or text convention.
json
{
  "input": {
    "aStart": 0,
    "aEnd": 2,
    "bStart": 1,
    "bEnd": 3
  },
  "output": {
    "result": {
      "relation": "overlaps"
    }
  }
}

Limitations and assumptions

  • Degenerate intervals and endpoint inclusion flags are outside this model. Measured values receive no tolerance, and the tool returns one relation rather than temporal uncertainty.
  • Interval-array rows contain exactly two finite endpoints in start/end order, with at most 128 intervals per collection. Individual operations state when positive length, integer endpoints or explicit inclusion flags are required.
  • Every declared top-level field is required and unexpected fields are rejected. Numeric inputs must be finite; ordinary text fields are bounded to 8,192 UTF-16 code units, with tighter operation-specific limits where stated.
  • Ordinary string lists have at most 128 entries of at most 128 code units each; numeric lists and matrices have separate bounded size checks. Nonfinite results and excessively large serialized outputs are rejected.
  • Indexes are zero-based and spans have an exclusive end unless explicitly stated otherwise. A valid false, null or empty-list result is distinct from malformed input.

Alternative or Complementary methods

Retain the endpoint convention with every result. Continuous length, integer point counts and open/closed membership differ; merge returned cells separately when a canonical minimal interval collection is required.

References

  1. Tool behavior and example: Allen Interval Relation Classifier — tool.io

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies