Skip to content

Deterministic EZID DOI naming (dataset-based identifiers) #111

Closed

Description

@neuromechanist

Summary

Switch EZID DOI creation from random suffixes to deterministic, human-readable identifiers based on dataset IDs.

Current: 10.82901/NEMAR.xk4p2 (random suffix from mintIdentifier)
Target: 10.82901/NEMAR.NM000104 (concept), 10.82901/NEMAR.NM000104.V1.0.0 (version)

Approach

Use EZID's PUT /id/{identifier} (create with exact ID) instead of POST /shoulder/{shoulder} (auto-generated suffix). Verified on sandbox that this works and EZID normalizes to uppercase.

Key Benefits

  • Human-readable DOIs that map directly to dataset IDs
  • No more placeholder-then-update two-step pattern (the DOI is known before creation)
  • Collision detection built in (EZID returns error if identifier already exists)

Changes

  • Add createIdentifier() to ezid.ts
  • Add buildConceptIdentifier() and buildVersionIdentifier() to doi.ts
  • Refactor createEzidConceptDoi and createEzidVersionDoi to use deterministic naming
  • Add unit tests for identifier builders
  • Add sandbox tests for createIdentifier

Parent Issue

Sub-issue of #105 (EZID DOI Integration epic)

Activity

  1. added
    feature
    cli
    on Feb 11, 2026
  2. added 2 commits that reference this issue on Feb 11, 2026
    a2bd1f0
    ab48b0e
  3. neuromechanist commented on Feb 11, 2026

    @neuromechanist
    ContributorAuthor

    Completed in #114

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    clifeature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions