Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ro crate data model API #436

Merged
merged 4 commits into from
Oct 18, 2024
Merged

Ro crate data model API #436

merged 4 commits into from
Oct 18, 2024

Conversation

kMutagene
Copy link
Member

@kMutagene kMutagene commented Sep 6, 2024

This PR will bundle the work for closing #433

We decided to merge this before full completion to unblock other PRs, will continue on another PR

- instance methods and static methods for set/tryGet/remove
- tests for all classes
@kMutagene kMutagene marked this pull request as ready for review October 18, 2024 07:50
src/ROCrate/ISAProfile/LabProcess.fs Outdated Show resolved Hide resolved
src/ROCrate/ROCrateObject.fs Outdated Show resolved Hide resolved

let inline hasProperty (propertyName: string) (obj: #DynamicObj) = DynObj.tryGetPropertyValue propertyName obj |> Option.isSome

let inline getMandatoryDynamicPropertyOrThrow<'TPropertyValue> (className:string) (propertyName: string) (obj: #DynamicObj) =
Copy link
Member

Choose a reason for hiding this comment

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

Nice 👍

@HLWeil HLWeil merged commit 444df04 into main Oct 18, 2024
2 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.

[Feature Request] RO Crate Datamodel - ISA Profile: Add typed getter/setter APIs for known fields
2 participants