Patch LinkML to Enhance enum rendering #116

Open
opened 2025-05-19 11:36:15 +00:00 by jsheunis · 0 comments
jsheunis commented 2025-05-19 11:36:15 +00:00 (Migrated from github.com)

Origin: inm7/annotate.inm7.de-simplesubmit#19

At present only the literal enum values are shown.

image

It would be good to have their description be available as a tooltip (or equivalent) too.

and:

This is a current limitation of the shaclgen.py code in LinkML, because its output for enum values (sh:in) only includes the literal values. Here's an excerpt from the exported SHACL:

        [ sh:description "Type of an organization." ;
            sh:group inm7si:OrganizationPropertyGroup ;
            sh:in ( "team" "group" "division" "institute" "researchcenter" "researchorganization" "faculty" "college" "university" "nonprofit" "business" ) ;
            sh:maxCount 1 ;
            sh:name "Type"^^xsd:string ;
            sh:order 3 ;
            sh:path inm7si:organization_type ],

So we'll have to create a patch first, if possible.

Origin: https://hub.psychoinformatics.de/inm7/annotate.inm7.de-simplesubmit/issues/19 > > At present only the literal enum values are shown. > > image > > It would be good to have their description be available as a tooltip (or equivalent) too. and: > This is a current limitation of the `shaclgen.py` code in LinkML, because its output for enum values (`sh:in`) only includes the literal values. Here's an excerpt from the exported SHACL: > > ``` > [ sh:description "Type of an organization." ; > sh:group inm7si:OrganizationPropertyGroup ; > sh:in ( "team" "group" "division" "institute" "researchcenter" "researchorganization" "faculty" "college" "university" "nonprofit" "business" ) ; > sh:maxCount 1 ; > sh:name "Type"^^xsd:string ; > sh:order 3 ; > sh:path inm7si:organization_type ], > ``` > > So we'll have to create a patch first, if possible. >
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#116
No description provided.