Skip to content

DATR

A declarative node–path–value equation language for compact lexical knowledge bases with default inheritance, override, path extension, and query evaluation.

Version
v2 · 2026-09-06 · History
Domain-specific #
1626
Origin domain
computer science
Subdomain
computational linguistics
Aliases
DATR language

Core Idea

DATR is a declarative language for lexical knowledge representation. A theory consists chiefly of equations associating a named node and an attribute path with a value or with another node–path description. More specific path equations override inherited general ones, enabling compact nonmonotonic default inheritance.

Evaluation answers a query such as a node at a path by selecting the most specific applicable definition, extending paths where required, and recursively resolving local or global inheritance. The language deliberately remains small while representing morphology, phonology, syntax, lexical rules, ambiguity, and reusable paradigms.

Scope of Application

DATR has represented inflectional paradigms, lexical entries, phonological alternations, morphological rules, typed feature-like structures, finite-state transductions, and nonlinguistic inheritance networks. Its compactness is strongest where many entries share defaults but retain structured exceptions. It has also been integrated as a lexical component for feature-based grammar environments.

Cycles, undefined paths, implementation-specific quoting, and external interfaces require explicit handling. Use today is specialist and historical, but the abstraction remains a clear design point in knowledge representation.

Clarity

Provide the DATR version or reference specification, exact equations, query node/path, and expected value. Distinguish local from global inheritance and literal from evaluable descriptions. Explain which shorter path licenses extension and why a more specific definition overrides a default.

Manages Complexity

DATR factors repeated lexical information into inheritance nodes while preserving exceptions close to the affected path. A small evaluator computes the effective entry rather than materializing all inherited facts. Path extension provides structured reuse finer than whole-record inheritance.

Abstract Reasoning

  1. Identify the node and query path.
  2. Find the longest prefix with an applicable equation.
  3. Retain any remaining path suffix for extension.
  4. Resolve local or global inheritance under its context rule.
  5. Recursively evaluate the resulting descriptor.
  6. Apply the suffix and assemble the value.
  7. Detect undefined or cyclic evaluation.
  8. Verify that overrides affect only their intended paths.
  9. Compare implementations against the reference semantics.

Knowledge Transfer

The portable pattern is inherit defaults at path granularity, then compute the effective value by the most specific applicable equation. It transfers to prototype systems, configuration inheritance, cascading styles, lexical paradigms, and sparse exception tables. The proposed immediate parent is Inheritance.

Relationships to Other Abstractions

Local relationship map for DATRParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.DATRDOMAINPrime abstraction: Inheritance — is a kind ofInheritancePRIME

Current abstraction DATR Domain-specific

Parents (1) — more general patterns this builds on

  • DATR is a kind of Inheritance Prime

    Inheritance is the proposed immediate parent.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

DATR sits in a sparse region of the domain-specific corpus (81st percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Automata, Model Checking & Formal Semantics (10 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-09-08