

# What an induced draft contains

An induced draft is an OWL ontology in Turtle, a text format for RDF data. It describes the kinds of things in your documents and how they relate. When you know what a draft can contain, you can decide what to keep, change, or add before you publish it.

## Terms in an induced draft
<a name="ontology-draft-contents-terms"></a>

A draft can contain the following terms:
+  **Classes** – The kinds of things that the documents describe. Each induced class has a label, and a description when the documents give one. Each is at most 500 characters.
+  **Class hierarchy** – Classes that are kinds of other classes (`rdfs:subClassOf`).
+  **Attributes** – Properties that describe a class (`owl:DatatypeProperty`). Each induced attribute belongs to one class, and the subclasses of that class inherit it. An attribute that the documents don’t tie to any class belongs to no class. When the documents use the same attribute on classes that aren’t subclasses of one another, each class gets its own copy. If you change the attribute on one class, only that class and its subclasses change.
+  **Relationships** – Links between classes (`owl:ObjectProperty`). Each relationship has one source class (its domain) and one target class (its range).
+  **An identifier** – An attribute on each induced class that identifies each instance of the class. A class from the template ontology keeps the identifier that it has there.
+  **Template ontology content** – Everything from the template ontology, if you gave one, unchanged. For information about template ontologies, see [Choose a template ontology (optional)](ontology-induce-inputs.md#ontology-induce-inputs-seed).

Induced terms use the namespace `http://aws.amazon.com/context/induced/<induction ID>#`. An induced attribute’s IRI also names its class, as in `http://aws.amazon.com/context/induced/<induction ID>#Claim/status`.

## Example of an induced draft
<a name="ontology-draft-contents-example"></a>

Suppose that you induce an ontology from claims handling documents. The following table shows terms that the draft might contain. This example is for illustration only. Your draft depends on your documents.


| Kind of term | Example | 
| --- | --- | 
| Class | Claim, Policy, and Claimant | 
| Class hierarchy | Vehicle claim is a kind of Claim. | 
| Attribute | Claim ID and Claim date on Claim | 
| Relationship | A Claim *is covered by* a Policy. The source class is Claim, and the target class is Policy. | 

## Size limits and removed terms
<a name="ontology-draft-contents-limits"></a>

 AWS Context keeps the draft within size limits. With these limits, you can use the draft with an Amazon Bedrock Managed Knowledge Base connection. When the induced draft is larger, AWS Context removes induced terms until it fits. It starts with the terms that the fewest documents gave. It never removes a term from the template ontology.

A class can have at most 49 fields. When a class has more, one of the following happens:
+  **The class can lose enough induced fields.** AWS Context removes the induced fields that the fewest documents gave. It removes each field where it is defined: on the class, or on the parent class that the class inherits it from. When the field is on a parent class, the parent class and its other subclasses lose that field too.
+  **The class can’t lose enough induced fields.** AWS Context removes no fields. Instead, it removes the nearest induced link to a parent class that the class inherits fields through. The class keeps its own fields.
+  **The class has too many fields because of the template ontology alone.** AWS Context can’t trim the class, and the induction fails.

 AWS Context doesn’t report which terms it removed. If a term that you expected is missing, you can add it when you edit the draft. For information about how to edit a draft, see [Edit a draft ontology](ontology-draft-edit.md).

The following table lists the size limits for an induced draft.


| Item | Limit | 
| --- | --- | 
| Classes | 128 | 
| Properties (attributes and relationships) | 2,000 | 
| Fields per class, including inherited fields and the name and summary fields that every class gets | 49 | 
| Size of the draft in Turtle | 400,000 bytes | 