-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add Biolink Model validation depth to Edge attribute (constraint) validation #19
Comments
Commentary from @edeutsch specifically regarding validation of the The constraint is not really absolute, mostly because many of the concepts we want to convey are not in biolink. So I think we should enforce a curie, so if there's not colon, then that should be an error. If the prefix is not biolink, that should be a warning. If the prefix is not known to biolink that should be a double warning. Are we able to report warnings? or just errors?
|
toolkit.get_element_by_prefix() might help If the double warning is instead to validate that the curie prefix is a valid prefix in the world, I think you can use other packages for that (see bioregistry). For infores validation, I'd like to add BMT methods that would query that controlled vocabulary. We could repurpose this ticket for that purpose, if you think toolkit.get_element_by_prefix() will work for this. |
Yes, |
@sierra-moxon , @edeutsch , rather than opening up a fresh issue, I note our discussion today (23 March 2023) as discovering that |
"warning.knowledge_graph.edge.attribute.type_id.unknown_prefix": {
"CHEMBL.COMPOUND:CHEMBL112--biolink:occurs_together_in_literature_with->CHEMBL.COMPOUND:CHEMBL1201558": [
{
"attribute_type_id": "EDAM-DATA:2526"
},
{
"attribute_type_id": "EDAM-OPERATION:0226"
}, |
attribute:
is_a: named thing
mixins:
- ontology class
...
slots:
- name # 'attribute_name'
- has attribute type # 'attribute_type'
# 'value', 'value_type', 'value_type_name'
# extracted from either of the next two slots
- has quantitative value
- has qualitative value
...
id_prefixes:
- EDAM-DATA
- EDAM-FORMAT
- EDAM-OPERATION
- EDAM-TOPIC |
has attribute type:
...
domain: attribute
range: ontology class
multivalued: false
required: true
... |
If anything, all the TRAPI |
…resolution of reasoner-validator issue #19
this test in bmt works:
as does this:
so I think the method is working on all elements at least |
Also, technically, biolink is in BioPortal as an ontology :) - but I agree the |
The current TRAPI Knowledge Graph edge validation falls short of detailed validation of edge attributes (see attribute validation code snippet (or lack thereof) in the edge validator.
Deeper validation of Biolink Model (and perhaps, some TRAPI-specific) validation is required at this level.
The text was updated successfully, but these errors were encountered: