GetOntologyRequest
¶
Source code in docs_src/capo_context/types/get_ontology_request.py
ontology_id
instance-attribute
¶
ontology_id: OntologyIdentifier
The ontology to return, by its ID or ARN (see OntologyIdentifier).
source_format
instance-attribute
¶
source_format: NotRequired[OntologySourceFormat]
Return the version's source document in source, in this format, in place of the template. The response then has no template. The format must be the version's sourceFormat. On a DRAFT ontology, GetOntology returns the draft, with or without version (its only version is 1.0.0). If the ontology is AWS managed, whose source is never returned, or the version has no source document, the request fails with ValidationException. If you omit it, the response has the template and no source.
version
instance-attribute
¶
version: NotRequired[OntologyVersionString]
The version to return, in MAJOR.MINOR.PATCH form, for example 1.0.0. If you omit it, GetOntology returns the current default version.