regen-network / regen-data-standards

3 stars 2 forks source link

Integrate taxonomy with semantic enumerations #11

Open paul121 opened 1 month ago

paul121 commented 1 month ago

This PR integrates framework taxonomy terms into the schemas using semantic enumerations.

This works by using a simple python script to populate a new taxonomy.yaml schema file with enum values from the curated list of taxonomy terms. This was easy to do since Linkml provides a python API for interacting with schemas, SchemaView. I also considered manipulating the taxonomy.yaml file more manually but got this working so didn't explore that any further.

I added simple activity, impact and environmentType slots to the Project class just so these terms get pulled into the documentation in a meaningful way... I imagine we might want to reference these enums via different or even multiple slots? I left some related comments in #8

paul121 commented 1 month ago

Here is the EnvironmentTypeTypes enum documentation: https://semantic-enumerations.regen-data-standards.pages.dev/schema/EnvironmentTypeTypes

Unfortunately, it looks like the meaning URIs aren't being expanded and rendered here. If they were, you could quickly navigate over to a taxonomy term's page. I imagine this might be a simple contribution to add to the linkml doc generator.

cloudflare-workers-and-pages[bot] commented 1 month ago

Deploying regen-data-standards with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1d1eac9
Status: ✅  Deploy successful!
Preview URL: https://70d79187.regen-data-standards.pages.dev
Branch Preview URL: https://semantic-enumerations.regen-data-standards.pages.dev

View logs