Skip to main content

Ontology Objects

Access ontology related data and manipulate the ontology. Instantiate this class via get_ontology()

ontology_hash

Get the ontology hash (i.e. the Ontology ID).

title

Get the title of the ontology.

description

Get the description of the ontology.

created_at

Get the time the ontology was created at.

last_edited_at

Get the time the ontology was last edited at.

structure

Get the structure of the ontology.

refetch_data

The Ontology class will only fetch its properties once. Use this function if you suspect the state of those properties to be dirty.

save

Sync local state to the server, if updates are made to structure, title or description fields

list_groups

List all groups that have access to a particular ontology.

add_group

Add group to an ontology. Arguments:
  • group_hash - List of group hashes to be added.
  • user_role - User role that the group will be given.
Returns: None

remove_group

Remove group from ontology. Arguments:
  • group_hash - List of group hashes to be removed.
Returns: None