Term

Documentation

class pandasaurus.resources.term.Term(label: str, iri: str, is_valid: bool, new_label: str | None = None, new_iri: str | None = None)[source]

Represents ontology terms.

get_iri() str[source]

Returns term IRI.

Returns:

Term IRI

get_is_obsoleted() str[source]

Returns term obsoletion status.

Returns:

True if term is obsoleted False otherwise

get_is_valid() bool[source]

Returns term validation status.

Returns:

True if term is valid False otherwise

get_label() str[source]

Returns term label.

Returns:

Term label

get_new_iri() str[source]

Returns new term IRI of obsoleted term.

Returns:

New term IRI

get_new_label() str[source]

Returns new term label of obsoleted term.

Returns:

New term label

update_obsoleted_term()[source]

Updates term label and IRI if the term is obsoleted, and changes its obsoletion status.