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

Specify default values? #12

Open
jakebeal opened this issue Jun 21, 2021 · 2 comments
Open

Specify default values? #12

jakebeal opened this issue Jun 21, 2021 · 2 comments
Milestone

Comments

@jakebeal
Copy link
Contributor

Is there a way to specify default values for fields?
For example, a UML behavior has an "isReentrant" field that defaults to true unless otherwise specified.
Is this something we'd like to be able to encode SBOL factory?

@bbartley
Copy link
Contributor

SHACL supports sh:defaultValue which may be used by user interface tools to pre-populate input widgets. This is a nice off-the-shelf solution, although it's kind of a bummer that it must be specified in a file separate from the ontology. Also, SBOLFactory would have to be modified to query the SHACL file.

@jakebeal
Copy link
Contributor Author

I do think we'd want to put this in the ontology. Is there a way to add a statement to a property definition, which could encode this concept?

@jakebeal jakebeal added this to the Future Tasks milestone Oct 28, 2021
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

2 participants