Open deepakunni3 opened 1 year ago
@deepakunni3 is this the context for this issue? https://biohackrxiv.org/md73k/
@cmungall Yes, that is scenario where we first encountered this bug.
Upon close inspection, I noticed that the enums were not being parsed properly in the shexgen. Hence the PR. Would greatly appreciate inputs and happy to work on this further if the above fix is not sufficient in a wider scope.
Currently there seems to be an issue with the ShEx generator in linkml where enums are missed in the generated ShEx output.
To illustrate - If I have a schema as follows:
Then when running gen-shex, I get the following:
We see that there is a reference to
StatusEnum
but this is not described in the ShEx.Ideally, we should enumerate all the permissible values for StatusEnum as follows:
This was first discovered by @labra