kg_covid_19.transform_utils.ontology package

Submodules

kg_covid_19.transform_utils.ontology.ontology_transform module

class kg_covid_19.transform_utils.ontology.ontology_transform.OntologyTransform(input_dir: str = None, output_dir: str = None)

Bases: kg_covid_19.transform_utils.transform.Transform

OntologyTransform parses an Obograph JSON form of an Ontology into nodes nad edges.

parse(name: str, data_file: str, source: str) → None

Processes the data_file. Args:

name: Name of the ontology data_file: data file to parse source: Source name

Returns:

None.

run(data_file: Optional[str] = None) → None

Method is called and performs needed transformations to process an ontology. Args:

data_file: data file to parse

Returns:

None.

Module contents

class kg_covid_19.transform_utils.ontology.OntologyTransform(input_dir: str = None, output_dir: str = None)

Bases: kg_covid_19.transform_utils.transform.Transform

OntologyTransform parses an Obograph JSON form of an Ontology into nodes nad edges.

parse(name: str, data_file: str, source: str) → None

Processes the data_file. Args:

name: Name of the ontology data_file: data file to parse source: Source name

Returns:

None.

run(data_file: Optional[str] = None) → None

Method is called and performs needed transformations to process an ontology. Args:

data_file: data file to parse

Returns:

None.