View a markdown version of this page

Limits for an uploaded ontology - AWS Context

Limits for an uploaded ontology

The limits for your ontology depend on how you use it.

To use your ontology in an Agent Context, it must stay within the following limits.

Limit Maximum

File size

2 MB (2,000,000 bytes)

Classes

2,048

Properties for each class, including inherited properties

128

Properties in the ontology

7,952

Statements (triples) in the file

200,000

Length of one Internationalized Resource Identifier (IRI)

1,024 characters

Ontologies per account

400

To also use your ontology in document and file extraction, from Amazon Bedrock Managed Knowledge Base connections, it must stay within the following smaller limits.

Limit Maximum

File size

400 KB (400,000 bytes)

Classes

128

Properties for each class, including inherited properties

49

Properties in the ontology

2,000

If your ontology is larger than the limits for document and file extraction, you can still upload it and use it in an Agent Context. AWS Context shows a MAPPING_LIMITS_EXCEEDED warning. On the console, the warning appears on the ontology’s page under This ontology was accepted with warnings. The warning says that you can’t map the ontology to a Knowledge Base connection, and it names the first limit that the ontology exceeds, for example the number of classes.

To use your ontology as a template ontology for ontology induction, keep its file at 400 KB or smaller. For more information, see Choose a template ontology (optional).