adding funding to flat data #89

Open
msz wants to merge 3 commits from grant into main

3 commits

Author SHA1 Message Date
38aa80653a Add validation examples for grant and dataset
All checks were successful
Codespell / Check for spelling errors (pull_request) Successful in 20s
Model checks / lint (pull_request) Successful in 1m54s
Validate examples and verify unmodified conversion / lint (pull_request) Successful in 3m21s
This adds an example of flat-data Dataset and Grant (with funding) and
validation configuration. YAML was written by hand, json got
generated. The grant example is named -2 in anticipation of an already
proposed PR which contains Dataset-1.

As far as I can understand, the relations slot is mostly intended as
illustration (to define the curies used in the validated class
proper), linkml is not as clever as to check the range of these
slots (other than verifying that multivalued is an array).

This also makes it apparent that it is not so easy to add
identifiers (inherited from CurationAid mixin) - they'd need to be
blank nodes (?) containing an IssuedIdentifier definition (?). I
decided to leave them out.

GenAI use disclaimer: the titles for the grant and dataset were
generated with Llama3 405 via helmholtz-blablador. Hope that is OK.
2025-08-13 19:28:45 +02:00
3ed8d518b2 Add funding_sources slot to flat-data Dataset 2025-08-13 19:28:21 +02:00
d1f35033b3 Add a basic grant class
There is a Grant in dlres, but we probably want to have a simpler
definition here.

As far as crucial slots go: grant inherits from a Thing, which already
has a description (but no name) and CurationAid, which has
identifiers. Therefore, name and funding_organization seem to be the
two required ones.

Although in dlres grants are sponsored by Agents, it seems a
reasonable concession to limit the range to an Organization (inherited
here from flat-base). A grant would usually come from a single
organization, so the slot is not multivalued.
2025-08-13 19:21:31 +02:00