foundry_dev_tools.clients.public_ontologies_client module#

Ontologies API.

https://www.palantir.com/docs/foundry/api/ontology-resources/ontology/ontology-basics/

class foundry_dev_tools.clients.public_ontologies_client.OntologiesClient[source]#

Bases: PublicAPIClient

The Ontologies API.

api_name: ClassVar[str] = 'ontologies'#
api_list_ontologies()[source]#

Lists the Ontologies visible to the current user.

Return type:

requests.Response

list()[source]#

Lists the Ontologies visible to the current user.

Returns:

list[Ontology] | None

Return type:

list[Ontology] | None

api_get_ontology(ontology_rid)[source]#

Gets a specific ontology with the given Ontology RID.

Parameters:

ontology_rid (OntologyRid)

Return type:

requests.Response

get(ontology_rid)[source]#

Gets a specific ontology with the given Ontology RID.

Returns:

Ontology

Parameters:

ontology_rid (OntologyRid)

Return type:

Ontology