Skip to content

v0.3.0: Full DataCite kernel-4.6 alignment - #7

Merged
neuromechanist merged 5 commits into
mainfrom
feature/datacite-4.6-alignment
Feb 18, 2026
Merged

neuromechanist merged 5 commits into
mainfrom
feature/datacite-4.6-alignment

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Summary

  • Move universal scholarly metadata from dataCite extension to core: keywords[], related_identifiers[], contributors[], dates[], rights[], language
  • Add 5 new definition schemas: subject, relatedIdentifier, contributor, structuredDate, rights
  • Extend person with name_type enum (Personal/Organizational)
  • Extend funding[] with funder_identifier, funder_identifier_type, award_uri
  • Refactor dataCite extension: add publisher_identifier, publisher_identifier_scheme, related_items[] (property 20); update enums to kernel-4.6
  • Relax dataset_id pattern from ^ds[0-9]+$ to ^[a-z]{2}[0-9]+$ (supports nm prefix)
  • Rewrite adapter-datacite.md mapping all 20 DataCite properties
  • Add NEMAR DataCite metadata guidelines doc
  • Add nm000108 (HySER EMG) example with all fields populated
  • 60 tests pass including 20 new v0.3.0 validation tests

Test plan

  • All 60 pytest tests pass (uv run pytest tests/ -v)
  • nm000108 example validates against dataset schema and root schema
  • Relaxed dataset_id pattern accepts both ds and nm prefixes
  • DataCite extension test updated for moved fields (no regressions)
  • New definition schemas validate with full field sets and reject missing required fields

Closes #5

Move universal scholarly metadata to core (keywords, related_identifiers,
contributors, dates, rights, language). Extend funding with funder
identifiers and award URIs. Add related_items and publisher identifiers
to dataCite extension. Relax dataset_id pattern for nm-prefix IDs.

New definition schemas: subject, relatedIdentifier, contributor,
structuredDate, rights. Updated person with name_type enum.

Adds adapter mapping docs, NEMAR DataCite guidelines, nm000108
dataset example with all 20 DataCite properties populated.

60 tests pass including 20 new v0.3.0 field validation tests.

Closes #5
- Remove InputOutput from resourceTypeGeneral enums (not in
  DataCite kernel-4.6 XSD, verified against authoritative source)
- Add Translator to contributorType enum (new in kernel-4.6)
- Add required constraint on related_item_identifier.identifier
- Fix adapter docs enum changelog
- Add SER to typos allow-list (appears in HySER dataset name)
- Use actions/setup-python instead of uv python install to
  avoid externally-managed Python errors on Ubuntu runners
@neuromechanist
neuromechanist merged commit 343dbf7 into main Feb 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add DataCite-compatible metadata fields to schema

1 participant