Context / Paginator / ListOntologies
ListOntologies¶
- class Context.Paginator.ListOntologies¶
paginator = client.get_paginator('list_ontologies')
- paginate(**kwargs)¶
Creates an iterator that will paginate through responses from
Context.Client.list_ontologies().See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
PaginationConfig (dict) –
A dictionary that provides parameters to control pagination.
MaxItems (integer) –
The total number of items to return. If the total number of items available is more than the value specified in max-items then a
NextTokenwill be provided in the output that you can use to resume pagination.PageSize (integer) –
The size of each page.
StartingToken (string) –
A token to specify where to start paginating. This is the
NextTokenfrom a previous response.
- 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) –
A token to resume pagination.