From: Claude Date: Wed, 11 Nov 2026 20:06:29 +0000 (+0000) Subject: feat(tmdm): readers for the TMDM 7.2/7.3 relationships; tests for both default name... X-Git-Url: https://dreyeck.freedombox.rocks/gitweb/topic-maps.git/commitdiff_plain/f46c8a00d5b52a8f2bb31ee18f9b8884b789127d?hp=f46c8a00d5b52a8f2bb31ee18f9b8884b789127d feat(tmdm): readers for the TMDM 7.2/7.3 relationships; tests for both default name types Add six read-only functions to topic-maps.tmdm that recognize the type-instance (TMDM 7.2) and supertype-subtype (TMDM 7.3) Associations the CTM and XTM readers already create and store: type-instance-relationship, supertype-subtype-relationship, and four Topic readers that return the Associations in which a Topic is instance, type, subtype or supertype. An Association is recognized exactly when its type and its two Role types carry the clause's Subject Identifiers and it has exactly two Roles. The readers are added API, not a conformance repair: they intern no Topic, change nothing, evaluate no Scope and infer nothing. Sort names (7.4) are deferred. tests/core-relationships.lisp argues each expectation from its clause (50 checks, eleven original isa/ako inputs). scripts/check-core-relationships.py counts such Associations in the unchanged CXTM baselines; it evaluates serialized data and is not a proof of conformance. tests/default-name-types.lisp (21 checks) shows that both documented default name type Subject Identifiers, .../name-type and .../topic-name, are preserved on import and in CXTM, coexist, and are never equated automatically. It needs no production change. An explicit merge of the two type Topics and the unchanged Core Subject set are recorded as a characterization of current behaviour, not as a rule. Both suites are registered in topic-maps.asd and run by the offline launcher. Verified with SBCL 2.4.10: the unchanged baseline passed before these changes, and both new suites pass. The full launcher has not yet been re-run with them; the XTM suites were not run. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_014ewLGkKYU24V8KWmZKpjGx ---