Skip to content

Move nemar_metadata.json into .nemar/ directory #135

Closed

Description

@neuromechanist

Summary

Currently nemar_metadata.json (AI summaries, keywords, author ORCIDs, DataCite enrichment) is stored at the dataset repo root. It should live under .nemar/ to keep all NEMAR-generated files in one place and reduce reliance on .bidsignore.

Current state

  • nemar_metadata.json at repo root, excluded via .bidsignore
  • .nemar/ directory already used for validation output and other CI artifacts

Proposed change

  • Move to .nemar/metadata.json (or .nemar/nemar_metadata.json)
  • Update all references in CLI upload, backend routes, repo-metadata service, datacite service, enrichment endpoint
  • Add migration logic: read from new path, fall back to old path for backward compatibility with existing datasets

Files to update

  • src/commands/dataset.ts - upload writes nemar_metadata.json
  • backend/src/routes/admin.ts - enrichment endpoint reads/writes it
  • backend/src/services/repo-metadata.ts - reads from GitHub tree
  • backend/src/services/datacite.ts - NemarMetadata type
  • shared/datacite-constants.ts - schema definition
  • backend/src/db/migrations/0008_enrichment.sql - comment reference

Notes

  • Existing datasets have nemar_metadata.json at root; need fallback reads
  • .bidsignore entry for nemar_metadata.json can be removed once migrated

Activity

  1. neuromechanist commented on Feb 18, 2026

    @neuromechanist
    ContributorAuthor

    Shipped in v0.6.0 (PR #152, .nemar/metadata.json v2)

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions