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

Handle more translation of LinkML constraints to schematic validation rules syntax #16

Open
anngvu opened this issue May 16, 2024 · 0 comments

Comments

@anngvu
Copy link
Owner

anngvu commented May 16, 2024

Currently, data modelers who write LinkML but are schematic-conscious include schematic validation rules directly as annotations in YAML for the most straightforward interop. However, there are LinkML modelers who do not necessarily think of schematic JSON-LD as a main target and specify constraints in pure LinkML. So an example min-max constraint in LinkML like:

age:
  description: Human age in years.
  range: float
  minimum_value: 0
  maximum_value: 120

would be translated to schematic syntax: inRange 0 120 error.

However, not all translations are possible. A lot of translation from LinkML constraints to schematic validation rules will be approximate or impossible, so this will cover the easy subset that can be translated well.

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

No branches or pull requests

1 participant