Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Checks if synonym val exists before access
The current obographs serialiser creates ``` { "id" : "http://purl.obolibrary.org/obo/OBA_2050220", "lbl" : "vascular cell adhesion protein 1 amount", "type" : "CLASS", "meta" : { "definition" : { "val" : "The amount of a vascular cell adhesion protein 1 when measured in anatomical entity.", "xrefs" : [ "AUTO:patterns/patterns/entity_attribute_location" ] }, "synonyms" : [ { "pred" : "hasExactSynonym" }] } } ``` So we need to check if the value exists before accessing it to not fail hard. This is not tested.
- Loading branch information