Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,21 @@
"license": "https://spdx.org/licenses/MIT",
"isPartOf": "https://github.com/openMetadataInitiative",
"codeRepository": "https://github.com/openMetadataInitiative/openMINDS_MATLAB",
"url": "https://openminds-documentation.readthedocs.io",
"readme": "https://github.com/openMetadataInitiative/openMINDS_MATLAB/blob/main/README.md",
"installUrl": "https://www.mathworks.com/matlabcentral/fileexchange/134212-openminds-metadata-models-for-matlab",
"contIntegration": "https://github.com/openMetadataInitiative/openMINDS_MATLAB/actions",
"issueTracker": "https://github.com/openMetadataInitiative/openMINDS_MATLAB/issues",
"name": "openMINDS MATLAB",
"description": "openMINDS MATLAB is a toolbox to support the creation and use of openMINDS metadata models and schemas in MATLAB, with import and export in JSON-LD format. The package contains all openMINDS schemas as MATLAB classes in addition to schema base classes and utility methods.",
"applicationCategory": "neuroscience",
"releaseNotes": "https://github.com/openMetadataInitiative/openMINDS_MATLAB/releases",
"keywords": [
"openMINDS",
"metadata",
"linked-data",
"neuroscience"
],
"releaseNotes": "https://github.com/openMetadataInitiative/openMINDS_MATLAB/releases#release-v0.12.0",
"funding": "https://cordis.europa.eu/project/id/945539",
"developmentStatus": "active",
"funder": {
Expand All @@ -24,9 +33,7 @@
"Windows",
"macOS"
],
"softwareRequirements": [
"MATLAB R2022b or later"
],
"runtimePlatform": "MATLAB R2022a or later",
"relatedLink": [
"https://openminds-documentation.readthedocs.io"
],
Expand All @@ -38,7 +45,15 @@
"familyName": "Hennestad"
}
],
"maintainer": {
"@type": "Person",
"@id": "https://orcid.org/0000-0002-8297-1753",
"givenName": "Eivind",
"familyName": "Hennestad"
},
"version": "0.12.0",
"downloadUrl": "https://github.com/openMetadataInitiative/openMINDS_MATLAB/releases/download/v0.12.0/openMINDS_MATLAB_v0_12_0.mltbx",
"dateCreated": "2023-08-22",
"datePublished": "2023-09-26",
"dateModified": "2026-09-11"
}
14 changes: 14 additions & 0 deletions tools/tasks/updateCodeMetaFile.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,23 @@
codeMetaFilePath = fullfile(projectRootDirectory, 'codemeta.json');
codeMetaInfo = jsondecode( fileread(codeMetaFilePath) );

% The toolbox packaging file is the source of truth for the supported
% MATLAB releases, so read it from there instead of keeping a copy here.
toolboxInfoFilePath = fullfile(projectRootDirectory, 'tools', 'MLToolboxInfo.json');
toolboxInfo = jsondecode( fileread(toolboxInfoFilePath) );
assert(isempty(toolboxInfo.ToolboxOptions.MaximumMatlabRelease), ...
'runtimePlatform assumes no maximum MATLAB release. Update this task if one is set.')
minimumMatlabRelease = string(toolboxInfo.ToolboxOptions.MinimumMatlabRelease);

codeMetaInfo.version = versionStringNumeric;
codeMetaInfo.downloadUrl = sprintf("https://github.com/openMetadataInitiative/openMINDS_MATLAB/releases/download/%s/openMINDS_MATLAB_%s.mltbx", ...
versionString, strrep(versionString, '.', '_'));
% GitHub anchors each release section on the releases page by its tag,
% so the release notes link can point at this version's notes directly.
releasesPageUrl = "https://github.com/openMetadataInitiative/openMINDS_MATLAB/releases";
codeMetaInfo.releaseNotes = releasesPageUrl + "#release-" + versionString;
codeMetaInfo.runtimePlatform = "MATLAB " + minimumMatlabRelease + " or later";
% datePublished is the first release date, so it is left untouched here.
codeMetaInfo.dateModified = string(datetime('today', 'Format', 'yyyy-MM-dd'));

if isscalar(codeMetaInfo.author)
Expand Down
Loading