Skip to content

feat(provenance): add duo_codes field to DatasetModelBase#345

Open
SanjeevLakhwani wants to merge 1 commit into
masterfrom
feat/dataset-duo-codes
Open

feat(provenance): add duo_codes field to DatasetModelBase#345
SanjeevLakhwani wants to merge 1 commit into
masterfrom
feat/dataset-duo-codes

Conversation

@SanjeevLakhwani

Copy link
Copy Markdown
Contributor

Summary

  • Add duo_codes: list[OntologyClass] | None to DatasetModelBase for Data Use Ontology (DUO) codes describing dataset access conditions
  • CURIE-prefix resource validation added in check_keyword_resources, consistent with existing keywords/taxa pattern
  • Test coverage for valid, missing-resource, and None cases

Add DUO (Data Use Ontology) codes as an optional list of OntologyClass
entries on DatasetModelBase, with CURIE-prefix resource validation
consistent with the existing keywords/taxa pattern.
@codecov

codecov Bot commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (74b9885) to head (77ef41c).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #345   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           82        82           
  Lines         2544      2549    +5     
  Branches       234       236    +2     
=========================================
+ Hits          2544      2549    +5     
Files with missing lines Coverage Δ
bento_lib/provenance/dataset.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant