INDRA Ontology Processor (indra_cogex.sources.indra_ontology)

Processor for the INDRA ontology.

class OntologyProcessor(ontology=None)[source]

Bases: Processor

Processor for the INDRA ontology.

Initialize the INDRA ontology processor.

Parameters:

ontology (Optional[IndraOntology]) – An instance of an INDRA ontology. If none, loads the INDRA bio_ontology.

get_nodes()[source]

Iterate over the nodes to upload.

get_relations()[source]

Iterate over the relations to upload.