Skip to content

loading local json files fails #607

@dosumis

Description

@dosumis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions