OntologyClass

class oci.ai_vision.models.OntologyClass(**kwargs)

Bases: object

Images and ImageObjects can be labeled with an OntologyClass.

Methods

__init__(**kwargs) Initializes a new OntologyClass object with values from keyword arguments.

Attributes

name [Required] Gets the name of this OntologyClass.
parent_names Gets the parent_names of this OntologyClass.
synonym_names Gets the synonym_names of this OntologyClass.
__init__(**kwargs)

Initializes a new OntologyClass object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • name (str) – The value to assign to the name property of this OntologyClass.
  • parent_names (list[str]) – The value to assign to the parent_names property of this OntologyClass.
  • synonym_names (list[str]) – The value to assign to the synonym_names property of this OntologyClass.
name

[Required] Gets the name of this OntologyClass. The label name.

Returns:The name of this OntologyClass.
Return type:str
parent_names

Gets the parent_names of this OntologyClass. The label parents.

Returns:The parent_names of this OntologyClass.
Return type:list[str]
synonym_names

Gets the synonym_names of this OntologyClass. The label synonyms.

Returns:The synonym_names of this OntologyClass.
Return type:list[str]