feat: introduce reusable types via types/unreleased #548

Closed
yarikoptic wants to merge 1 commit from rf-types into main

2026-03-11

Yaroslav Halchenko
feat: introduce reusable types via types/unreleased
Multiple schemas duplicated the same pattern definitions for identifiers
(ORCID, DOI, ISSN) and relative paths. This centralizes them as proper
LinkML types in types/unreleased, which can be imported by any schema
regardless of whether it goes through the things or flat schema chain.

types/unreleased is reworked from a stale DEPRECATED copy of types/v1
into a lean DRAFT extension with 4 new types: OrcidNotation,
DoiNotation, IssnNotation, and RelativePath. The original duplicate
type definitions (EmailAddress, HexBinary, NodeUriOrCurie,
NonNegativeInteger) and schema_type slot are removed — they already
exist in types/v1. The schema is renamed to types-development-schema
and its dltypes prefix aligned with types/v1 to avoid merge conflicts
when both are imported transitively.

W3CISO8601 remains in things/unreleased (moved from
things-properties/unreleased) rather than types/unreleased because
things-properties/v1 and temporal-mixin/unreleased each define it with
different URIs (dlthings:w3ctr-datetime vs w3ctr:NOTE-datetime), and
placing it in types/unreleased causes merge conflicts for schemas
importing both chains.

Specific changes per file:
- types/unreleased: reworked with 4 new types, DRAFT status
- things/unreleased: import types/unreleased, add W3CISO8601
- things-properties/unreleased: remove W3CISO8601 (now via things)
- things-publications/unreleased: range: DoiNotation/IssnNotation
- things-files/unreleased: range: RelativePath
- flat-files/unreleased: import types/unreleased, range: RelativePath
- demo-empirical-data/unreleased: import types/unreleased,
  range: OrcidNotation
- demo-research-assets/unreleased: import types/unreleased,
  range: OrcidNotation
- demo-rse-group/unreleased: import types/unreleased,
  range: OrcidNotation on ORCID.notation
- demo-research-information/unreleased: import types/unreleased,
  range: OrcidNotation on ORCID.notation

Co-Authored-By: Claude Code 2.1.63 / Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 13:11:26 -04:00