INCATools / INCATools/dead_simple_owl_design_patterns
Extend schema to allow specification of default values for vars
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 49
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
It would be useful to have a way to specify default values for vars, with DOSDP_tools allowing TSVs that lack columns for vars with default values (A bit like kwargs in Python) and also allowing for the cells in columns for vars with a default value to be empty.
See https://github.com/INCATools/dosdp-tools/issues/136 for an example use case with a data_var. This could also potentially be useful for patterns where compositional entities are allowed, but not always used. In that case a regular var could specify a default general differentium for the compositional entity (e.g. where a an anatomical entity may be X part_of some Y that default for Y could be 'organism'. Could be very generic
```yaml
default_value: { some value }
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the schema definition and TSV parsing/validation paths in DOSDP_tools. Determine how the proposed default_value syntax should behave when a variable column is absent or empty, then verify that both cases produce the intended patterns without changing existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100