Context / Client / list_ontologies

list_ontologies

Context.Client.list_ontologies(**kwargs)

Lists the ontologies in your account, with the status of each.

See also: AWS API Documentation

Request Syntax

response = client.list_ontologies(
    maxResults=123,
    nextToken='string'
)
Parameters:
  • maxResults (integer) – The maximum number of ontology summaries to return in one page, 1–100. Defaults to 50. A value outside this range fails with ValidationException. AWS Context doesn’t clamp it.

  • nextToken (string) – Opaque continuation token from a prior response’s nextToken. Omit on the first page.

Return type:

dict

Returns:

Response Syntax

{
    'items': [
        {
            'id': 'string',
            'arn': 'string',
            'name': 'string',
            'description': 'string',
            'status': 'DRAFT'|'PUBLISHED',
            'updatedAt': datetime(2015, 1, 1),
            'ontologyInductionId': 'string',
            'defaultVersion': 'string',
            'publishedAt': datetime(2015, 1, 1),
            'nodeTypeCount': 123,
            'edgeTypeCount': 123
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • items (list) –

      One entry for each ontology that you own. Always present, and empty when you have none.

      • (dict) –

        Identity, status, DEFAULT-version summary and type counts for one ontology, ordered by ontology ID. Doesn’t include the template, which can be up to 2,000,000 characters. Call GetOntology for one ontology’s detail.

        • id (string) –

          The ID of the ontology, assigned by AWS Context.

        • arn (string) –

          The ARN of the ontology. Always present: every listed ontology is customer-owned, so its ARN includes the account.

        • name (string) –

          The ontology’s current display name. Present on every summary: only customer-owned ontologies are listed, and each has a name.

        • description (string) –

          The description. Absent when the ontology has none.

        • status (string) –

          The ontology’s status. PUBLISHED for every ontology CreateOntology made.

        • updatedAt (datetime) –

          When the ontology last changed. Equal to its creation time until the first update.

        • ontologyInductionId (string) –

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

        • defaultVersion (string) –

          The current DEFAULT version. While an induced ontology is DRAFT, its version 1.0.0, which has an empty template and no source until you publish the ontology in the AWS Context console.

        • publishedAt (datetime) –

          When that version was published as the DEFAULT. Absent while the ontology is DRAFT: a DRAFT ontology stays a draft until you publish it in the AWS Context console.

        • nodeTypeCount (integer) –

          Number of node types in the DEFAULT version’s template. Absent for an ontology created before counts were stored.

        • edgeTypeCount (integer) –

          Number of edge types in the DEFAULT version’s template. Absent for an ontology created before counts were stored.

    • nextToken (string) –

      The token for the next page of results. Pass it as nextToken in your next request. Absent on the last page. Treat the token as opaque.

Exceptions

  • Context.Client.exceptions.ThrottlingException

  • Context.Client.exceptions.ValidationException

  • Context.Client.exceptions.InternalServerException

  • Context.Client.exceptions.AccessDeniedException