psychoinformatics-de/shacl-vue

Patch LinkML to Enhance `enum` rendering

Aperta

#116 aperta il 19 mag 2025

 (0 commenti) (0 reazioni) (0 assegnatari)Vue (4 fork)auto 404
good first issue

Metriche repository

Star
 (2 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor