Enhance enum rendering #19

Closed
opened 2025-04-24 07:07:12 +00:00 by mih · 2 comments
Owner

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.

At present only the literal enum values are shown. ![image](/attachments/68772a28-2f13-4038-be1d-0d1aba18143f) It would be good to have their `description` be available as a tooltip (or equivalent) too.
Owner

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.

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.
Owner
Tracked here: https://github.com/psychoinformatics-de/shacl-vue/issues/116
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
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
inm7/annotate.inm7.de-simplesubmit#19
No description provided.