INCATools / INCATools/dead_simple_owl_design_patterns

Extend schema to allow specification of default values for vars

Open
#50 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.