Skip to content

GetOntologyResponse

Source code in docs_src/capo_context/types/get_ontology_response.py
class GetOntologyResponse(TypedDict, closed=True):
    arn: "capo_context.types.ontology_arn.OntologyArn"
    """<p>The ARN of the ontology. It has no account for an AWS managed ontology, and includes the account for a customer-owned one. Use it to address the same ontology again.</p>"""
    version: "capo_context.types.ontology_version_string.OntologyVersionString"
    """<p>The version of the ontology, in MAJOR.MINOR.PATCH form, for example <code>1.0.0</code>.</p>"""
    template: NotRequired["capo_context.types.ontology_template.OntologyTemplate"]
    """<p>The serialized template JSON for this version (see OntologyTemplate).</p>"""
    created_at: NotRequired["datetime.datetime"]
    """<p>When this version was created. Absent when the stored version carries no creation time.</p>"""
    published_at: NotRequired["datetime.datetime"]
    """<p>Publish time of the DEFAULT version. Absent for non-default versions, and while the ontology is DRAFT: a DRAFT ontology stays a draft until you publish it in the AWS Context console.</p>"""
    name: NotRequired["capo_context.types.ontology_name.OntologyName"]
    """<p>The ontology's current display name. The same for every version. Absent for an AWS managed ontology, which has no name, and for a customer-owned ontology that was created without a name and hasn't been named since.</p>"""
    description: NotRequired["capo_context.types.user_defined_string.UserDefinedString"]
    """<p>The ontology's description. The same for every version. Absent when the ontology has none.</p>"""
    derivation_version: NotRequired["str"]
    """<p>Identifies the derivation rules that produced this template. Node ID formulas don't change after a version is published.</p>"""
    id: "capo_context.types.ontology_identifier.OntologyIdentifier"
    """<p>The ID of the ontology, assigned by AWS Context.</p>"""
    status: "capo_context.types.ontology_status.OntologyStatus"
    """<p>The ontology's status. PUBLISHED for every ontology CreateOntology made. Check it before using the template: a DRAFT ontology stays a draft until you publish it in the AWS Context console, and until then its template is the empty template of version 1.0.0 and GetOntology returns the draft.</p>"""
    updated_at: "datetime.datetime"
    """<p>When the ontology itself last changed. Equal to the ontology's creation time until the first update. The top-level <code>createdAt</code> (from the version fields) is the returned version's creation time, not the ontology's.</p>"""
    ontology_induction_id: NotRequired[
        "capo_context.types.ontology_induction_identifier.OntologyInductionIdentifier"
    ]
    """<p>The induction that made the ontology. Absent for an ontology CreateOntology made.</p>"""
    source: NotRequired["capo_context.types.ontology_source.OntologySource"]
    """<p>The source document of the returned version, or the draft of a <code>DRAFT</code> ontology, with or without <code>version</code>. Set only when the request set <code>sourceFormat</code>. Absent otherwise.</p>"""
    source_format: NotRequired[
        "capo_context.types.ontology_source_format.OntologySourceFormat"
    ]
    """<p>The format of the version's source document. On a <code>DRAFT</code>, <code>TURTLE</code>, the format of the draft. Set whether or not the request asked for <code>source</code>, and a <code>source</code> in the response is in this format. On an AWS managed ontology, it names the format that its template was derived from, but its source is never returned (see <code>sourceFormat</code> on the request).</p>"""
    revision_id: NotRequired[
        "capo_context.types.ontology_draft_revision.OntologyDraftRevision"
    ]
    """<p>The revision of the draft. Set only for a DRAFT ontology.</p>"""
    validation_issues: NotRequired[
        "capo_context.types.ontology_validation_issues.OntologyValidationIssues"
    ]
    """<p>Non-fatal warnings raised while deriving the returned version. On a DRAFT, the warnings from deriving the draft.</p>"""

arn instance-attribute

The ARN of the ontology. It has no account for an AWS managed ontology, and includes the account for a customer-owned one. Use it to address the same ontology again.

created_at instance-attribute

created_at: NotRequired[datetime]

When this version was created. Absent when the stored version carries no creation time.

derivation_version instance-attribute

derivation_version: NotRequired[str]

Identifies the derivation rules that produced this template. Node ID formulas don't change after a version is published.

description instance-attribute

description: NotRequired[UserDefinedString]

The ontology's description. The same for every version. Absent when the ontology has none.

id instance-attribute

The ID of the ontology, assigned by AWS Context.

name instance-attribute

name: NotRequired[OntologyName]

The ontology's current display name. The same for every version. Absent for an AWS managed ontology, which has no name, and for a customer-owned ontology that was created without a name and hasn't been named since.

ontology_induction_id instance-attribute

ontology_induction_id: NotRequired[OntologyInductionIdentifier]

The induction that made the ontology. Absent for an ontology CreateOntology made.

published_at instance-attribute

published_at: NotRequired[datetime]

Publish time of the DEFAULT version. Absent for non-default versions, and while the ontology is DRAFT: a DRAFT ontology stays a draft until you publish it in the AWS Context console.

revision_id instance-attribute

revision_id: NotRequired[OntologyDraftRevision]

The revision of the draft. Set only for a DRAFT ontology.

source instance-attribute

source: NotRequired[OntologySource]

The source document of the returned version, or the draft of a DRAFT ontology, with or without version. Set only when the request set sourceFormat. Absent otherwise.

source_format instance-attribute

source_format: NotRequired[OntologySourceFormat]

The format of the version's source document. On a DRAFT, TURTLE, the format of the draft. Set whether or not the request asked for source, and a source in the response is in this format. On an AWS managed ontology, it names the format that its template was derived from, but its source is never returned (see sourceFormat on the request).

status instance-attribute

The ontology's status. PUBLISHED for every ontology CreateOntology made. Check it before using the template: a DRAFT ontology stays a draft until you publish it in the AWS Context console, and until then its template is the empty template of version 1.0.0 and GetOntology returns the draft.

template instance-attribute

template: NotRequired[OntologyTemplate]

The serialized template JSON for this version (see OntologyTemplate).

updated_at instance-attribute

updated_at: datetime

When the ontology itself last changed. Equal to the ontology's creation time until the first update. The top-level createdAt (from the version fields) is the returned version's creation time, not the ontology's.

validation_issues instance-attribute

validation_issues: NotRequired[OntologyValidationIssues]

Non-fatal warnings raised while deriving the returned version. On a DRAFT, the warnings from deriving the draft.

version instance-attribute

The version of the ontology, in MAJOR.MINOR.PATCH form, for example 1.0.0.