Skip to content

Extract metadata from CITATION.cff - #90

Merged
apdavison merged 14 commits into
openMetadataInitiative:mainfrom
Raphael-Gazzotti:citation-file-handling
May 31, 2026
Merged

apdavison merged 14 commits into
openMetadataInitiative:mainfrom
Raphael-Gazzotti:citation-file-handling

Conversation

@Raphael-Gazzotti

@Raphael-Gazzotti Raphael-Gazzotti commented Oct 29, 2025 •

Copy link
Copy Markdown
Member

Extracts metadata from CITATION.cff including:

  • DOI
  • authors (with ORCID, email, affiliation)
  • license
  • title -fullName, shortName-
  • versionIdentifier

Also lays groundwork for extracting additional information such as preferred-citation.

Closes #89

…, license, title -fullName, shortName-, versionIdentifier
@Raphael-Gazzotti Raphael-Gazzotti self-assigned this Oct 29, 2025
@Raphael-Gazzotti Raphael-Gazzotti added the enhancement New feature or request label Oct 29, 2025
@Peyman-N

Copy link
Copy Markdown
Member

The pull request seems reasonable. Can you add some tests for it, please?

Comment thread bids2openminds/main.py Outdated
Comment thread bids2openminds/main.py Outdated
@Raphael-Gazzotti

Copy link
Copy Markdown
Member Author

@Peyman-N I added some tests to cover the new extraction.

@lzehl lzehl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@apdavison or @Peyman-N please one of you double check. It looks good from my side and can be merged by the next one confirming the PR

Comment thread bids2openminds/converter.py
Comment thread test/test_dataset_version.py
@Raphael-Gazzotti
Raphael-Gazzotti force-pushed the citation-file-handling branch 2 times, most recently from 8692e9e to e8efa81 Compare January 21, 2026 11:21
Raphael-Gazzotti and others added 3 commits May 28, 2026 08:26

@apdavison apdavison left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed a few more things.

Comment thread bids2openminds/converter.py Outdated
Comment thread bids2openminds/converter.py Outdated
Comment thread bids2openminds/main.py
Comment thread bids2openminds/main.py
Comment thread pyproject.toml Outdated
Comment thread test/test_dataset_version.py
Raphael-Gazzotti and others added 2 commits May 29, 2026 08:51
Co-authored-by: Andrew Davison <apd.automated@gmail.com>
@apdavison
apdavison merged commit c09cbf5 into openMetadataInitiative:main May 31, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Metadata extraction from CITATION.cff file

4 participants