Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Union as range without type #10

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Conversation

cpauvert
Copy link
Contributor

follow up of #9 to fix the validation. Here the issue is that all data are valid

linkml-validate -s src/miiid_schema/schema/miiid_schema.yaml -C IntermicrobialInteraction\ \
   src/data/examples/valid/IntermicrobialInteraction-pairwise-with-missing-data.yaml
# None for valid data
linkml-validate -s src/miiid_schema/schema/miiid_schema.yaml -C IntermicrobialInteraction \
   src/data/examples/invalid/IntermicrobialInteraction-pairwise-with-wrong-missing-data.yaml
# None for invalid data as well

It turns out that the integers or enums are converted to strings:

linkml-convert -s src/miiid_schema/schema/miiid_schema.yaml -C IntermicrobialInteraction \
   src/data/examples/invalid/IntermicrobialInteraction-pairwise-with-wrong-missing-data.yaml
{
  "id": "miiid:pairwise",
  "participants": [
    "Acidobacteria",
    "Gammaproteobacteria"
  ],
  "tax_id": [
    "NA",    # <----
    "1236" # <----
  ],
  "evidence_type": "high throughput evidence used in automatic assertion",
  "reference": "https://doi.org/10.1038/ismej.2011.119",
  "@type": "IntermicrobialInteraction"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant