Skip to content

Adding conditional rules#52

Merged
cmungall merged 11 commits intomainfrom
conditional-rules
Oct 26, 2021
Merged

Adding conditional rules#52
cmungall merged 11 commits intomainfrom
conditional-rules

Conversation

@cmungall
Copy link
Copy Markdown
Member

@cmungall cmungall commented Oct 15, 2021

Partly replaces #21. See also linkml/linkml#75

This provides a simple set of conditional rules that apply to instances of classes. It is roughly equivalent to schema conditionals in json-schema. It is less expressive than what is proposed in #21 and linkml/linkml#75 but could provide a path to further extension.

It is also generally less expressive than https://www.w3.org/TR/shacl-af/#condition at this time

it does provide some features not in json-schema. These include the ability to auto-classify. E.g. an Employee is a person that has specified value for employed_by.

rules can also be specified as open or closed world

cmungall added a commit to linkml/linkml that referenced this pull request Oct 16, 2021
cmungall added a commit to linkml/linkml-runtime that referenced this pull request Oct 25, 2021
@cmungall cmungall merged commit f3ab1e4 into main Oct 26, 2021
@cmungall cmungall deleted the conditional-rules branch October 26, 2021 00:57
cmungall added a commit to linkml/linkml-runtime that referenced this pull request Oct 26, 2021
iQuxLE pushed a commit to linkml/linkml that referenced this pull request Aug 18, 2025
iQuxLE pushed a commit to linkml/linkml that referenced this pull request Aug 18, 2025
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