Skip to content

Commit

Permalink
Docstring for ontology_converter
Browse files Browse the repository at this point in the history
  • Loading branch information
caufieldjh committed Dec 9, 2024
1 parent 806ed5f commit 9498dde
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/ontogpt/converters/ontology_converter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
"""Ontology converter."""
"""Ontology converter.
This module provides functionality for working with ontologies.
It includes methods to extract seed ontologies,
convert from an OAK adapter,
and convert from an OBO Graph.
Classes:
OntologyConverter: A class to handle the conversion of an
OAK ontology to an OntoGPT schema.
Methods:
__post_init__: Initializes the SchemaView with the path to
the template.
extract_seed_ontology: Extracts an ontology from a given
list of seed terms and predicates.
from_adapter: Converts an OAK adapter to an Ontology.
from_obograph: Converts an OBO Graph to an Ontology.
node_to_name: Converts a node to a name using its CURIE
and optional label.
"""

import logging
from dataclasses import dataclass, field
Expand Down

0 comments on commit 9498dde

Please sign in to comment.