Skip to main content

generate_feature_node_hash

Utility function to generate an 8-character hex string.

Ontology Objects

This class is DEPRECATED. We recommend using Ontology

from_dict

Convert python dictionary too an Ontology object. Arguments:
  • ontology_dict - The dictionary to convert.

add_object

Add an OntologyObject to the ontology. Arguments:
  • name - A descriptive name of the object.
  • shape - The shape of the object.

add_classification

Add a classification to the ontology. Arguments:
  • name - A descriptive name of the classification.
  • classification_type - The type of the classification.
  • required - Indicate whether annotating this classification is required.
  • options - Nested classification options.

to_dict

Convert the ontology object to a python dictionary.