Add workflow for generating up-to-date schemas and data #90

Open
opened 2025-04-18 09:31:58 +00:00 by jsheunis · 0 comments
jsheunis commented 2025-04-18 09:31:58 +00:00 (Migrated from github.com)

For the demo shacl-vue site, the config uses schemas generated from datalad concepts, from locally served files e.g. https://github.com/psychoinformatics-de/shacl-vue/blob/main/public/dlschemas_data.ttl.

The config also allows specifying a remote file URL, which is the case for e.g. the TRR379 deployment, but in those cases we control the hosting of the schemas and can allow specific origins to get around CORS issues. With the github hosting of concepts.datalad.org, we cant. So we need an alternative setup to be able to fetch or generate these files. This includes the shacl, owl, and sample data.

Current idea is to do the same as for the other concepts deployments where we have a linkml schema that imports schemas from dlconcepts and then from that we can generate the shacl and owl. For data, we will need to run the code to generate examples in ttl format, and then merge those into a file that shacl-vue can read.

We can lean heavily on the existing work in https://hub.psychoinformatics.de/inm7/inm7-concepts/src/branch/main/src/base/unreleased.yaml and https://hub.psychoinformatics.de/inm7/inm7-concepts/src/branch/main/Makefile

For the demo `shacl-vue` site, the config uses schemas generated from datalad concepts, from locally served files e.g. https://github.com/psychoinformatics-de/shacl-vue/blob/main/public/dlschemas_data.ttl. The config also allows specifying a remote file URL, which is the case for e.g. the TRR379 deployment, but in those cases we control the hosting of the schemas and can allow specific origins to get around CORS issues. With the github hosting of concepts.datalad.org, we cant. So we need an alternative setup to be able to fetch or generate these files. This includes the shacl, owl, and sample data. Current idea is to do the same as for the other concepts deployments where we have a linkml schema that imports schemas from dlconcepts and then from that we can generate the shacl and owl. For data, we will need to run the code to generate examples in ttl format, and then merge those into a file that shacl-vue can read. We can lean heavily on the existing work in https://hub.psychoinformatics.de/inm7/inm7-concepts/src/branch/main/src/base/unreleased.yaml and https://hub.psychoinformatics.de/inm7/inm7-concepts/src/branch/main/Makefile
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
orinoco/shacl-vue#90
No description provided.