lint vs. validate conflict: linter-recommended EDAM.TOPIC
prefix fails validation but linter-disapproved EDAM_TOPIC
works:
#1512
Labels
bug
Something that should work but isn't, with an example and a test case.
community-generated
linkml-validate
linting
Describe the bug
Hello!
I have an issue with the prefix for the EDAM ontology when using
meaning
in anenum
. I followed the the convention in biolink withEDAM_TOPIC
but this raised issue with validation (details below)TL;DR:
EDAM_TOPIC
: linkml-lint FAIL ; linkml-validate PASSEDAM.TOPIC
: linkml-lint PASS ; linkml-validate FAILThe linter has a default configuration with regards to
prefixmaps
.Should I follow the convention in biolink with
EDAM_TOPIC
and ignore the lint?because it seems that
EDAM.TOPIC
is converted to the python:which causes a
NameError: name 'EDAM' is not defined
.Best regards,
Details:
See more with prefix `EDAM_TOPIC`: linkml-lint FAIL ; linkml-validate PASS
https://github.com/FAIR-MI/miiid-schema/blob/410aeb29afd3e81961ecc45a534f59077b651222/src/miiid_schema/schema/miiid_schema.yaml#LL17
Linting
Validation
linkml-validate -s src/miiid_schema/schema/miiid_schema.yaml -C IntermicrobialInteraction \ src/data/examples/valid/IntermicrobialInteraction-pairwise.yaml # None
See more with prefix `EDAM.TOPIC`: linkml-lint PASS ; linkml-validate FAIL
https://github.com/FAIR-MI/miiid-schema/blob/26460cd64769ddb87ac4a2f471ef7bb2c0f07fdd/src/miiid_schema/schema/miiid_schema.yaml#L17
Linting
Validation
with one of the faulty line being probably:
The text was updated successfully, but these errors were encountered: