In [4]:
from ontobio.ontol_factory import OntologyFactory
ont = OntologyFactory().create('doid')
ont


Out[4]:
<ontobio.sparql.sparql_ontology.EagerRemoteSparqlOntology at 0x1116bec50>

In [5]:
ont.search('PTSD')


Out[5]:
[]

In [1]:
import ontobio.sparql.wikidata as wd

In [2]:
proteins = wd.canned_query('genetic_association', doid)


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-2-8d320f7b4c8f> in <module>()
----> 1 proteins = wd.canned_query('genetic_association', doid)

NameError: name 'doid' is not defined

In [ ]: