]> dreyeck.freedombox.rocks Git - topic-maps.git/commit
feat(tmdm): readers for the TMDM 7.2/7.3 relationships; tests for both default name...
authorClaude <noreply@anthropic.com>
Wed, 11 Nov 2026 20:06:29 +0000 (20:06 +0000)
committerClaude <noreply@anthropic.com>
Wed, 11 Nov 2026 20:06:29 +0000 (20:06 +0000)
commitf46c8a00d5b52a8f2bb31ee18f9b8884b789127d
treee6c4b4849a3dd040a932432435ad92bee115bde1
parent88994c1b9e1edbf13e665e984a5c9c3b2cdf7575
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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014ewLGkKYU24V8KWmZKpjGx
scripts/check-core-relationships.py [new file with mode: 0644]
scripts/fresh-sbcl.lisp
scripts/test.sh
src/tmdm/core-relationships.lisp [new file with mode: 0644]
src/tmdm/package.lisp
tests/core-relationships.lisp [new file with mode: 0644]
tests/default-name-types.lisp [new file with mode: 0644]
topic-maps.asd