In ontobio.model.nlp (https://github.com/biolink/ontobio/blob/master/ontobio/model/nlp.py#L19) the field category is always empty, since SciGraph appears to the return the field as categories. I can't find precisely where or when in the SciGraph commit history the field was named categories, but you can see from this query that the returned field name is currently categories:
In
ontobio.model.nlp
(https://github.com/biolink/ontobio/blob/master/ontobio/model/nlp.py#L19) the fieldcategory
is always empty, since SciGraph appears to the return the field ascategories
. I can't find precisely where or when in the SciGraph commit history the field was namedcategories
, but you can see from this query that the returned field name is currentlycategories
:The result being:
If this is in fact a mislabeled field, both the field in
ontobio.model.nlp.Token
and the field inbiolink.datamodel.serializers
(https://github.com/biolink/biolink-api/blob/master/biolink/datamodel/serializers.py#L336) will need to be corrected.(This issue comes from investigating https://github.com/biolink/biolink-api/issues/387.)