loading local OboGraph JSON files following examples from the notebooks or using local obograph JSON files generated by ROBOT consistently => empty graphs
eg.
from ontobio.ontol_factory import OntologyFactory
ont = OntologyFactory()
n = ont.create("./tests/resources/nucleus.json")
2021-12-01 22:16:19 [WARNING] [PID:90975 TID:4447808960] [sparql_ontol_utils.py:98 in `get_edges`] No edges for ./tests/resources/nucleus.json
2021-12-01 22:16:19 [ERROR] [PID:90975 TID:4447808960] [sparql_ontology.py:233 in `__init__`] Empty graph for './tests/resources/nucleus.json' - did you use the correct id?
# OTOH - Loading remote using OBO ontology ID works fine.
pato = ont.create('pato')
pato.search('morphology')
['PATO:0000051']
pato.parents('PATO:0000051')
['PATO:0001241']
I've seen this with both PyPi install and the latest code from GitHub.
loading local OboGraph JSON files following examples from the notebooks or using local obograph JSON files generated by ROBOT consistently => empty graphs
eg.
I've seen this with both PyPi install and the latest code from GitHub.