Interface OntologyInductionFailure.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<OntologyInductionFailure.Builder,,OntologyInductionFailure> SdkBuilder<OntologyInductionFailure.Builder,,OntologyInductionFailure> SdkPojo
- Enclosing class:
OntologyInductionFailure
-
Method Summary
Modifier and TypeMethodDescriptionA code that identifies why the induction failed.A human-readable description of why the induction failed.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
code
A code that identifies why the induction failed. Codes include the following:
-
INPUT_UNREADABLE- AWS Context couldn't read an uploaded document. -
TOO_MANY_DOCUMENTS- The request has more documents than one induction accepts. -
SEED_INVALID- The seed ontology's source document was deleted, is larger than 400,000 bytes, or doesn't parse. -
FRAGMENT_EMPTY- The induction found nothing to induce in the documents, and there is no seed to start from. -
FRAGMENT_FAILED- Inducing from a document failed after retries. -
DOCUMENT_FILTERED- The model that drafts the ontology refused to process a document. -
MERGE_FAILED- Merging the results from the documents failed after retries. -
INDUCED_TOO_LARGE- The draft is larger than the maximum size of an ontology. -
DRAFT_WRITE_FAILED- AWS Context couldn't save the draft. -
TIMED_OUT- The induction didn't finish within its time limit. -
RUN_STOPPED- The run stopped before it finished.
If AWS Context rejects the induced draft,
codeis the code that CreateOntology reports for the same problem (seeOntologyIssueCode), for exampleRDF_PARSE_ERRORorNO_CLASSES.For
INPUT_UNREADABLE,TOO_MANY_DOCUMENTS,SEED_INVALID,FRAGMENT_EMPTY,DOCUMENT_FILTERED, andINDUCED_TOO_LARGE, fix the input, and then start a new induction. For the other codes, start a new induction with the same input. New codes can be added, so handle a code that you don't recognize. Usecode, notmessage, to decide how to respond.- Parameters:
code- A code that identifies why the induction failed. Codes include the following:-
INPUT_UNREADABLE- AWS Context couldn't read an uploaded document. -
TOO_MANY_DOCUMENTS- The request has more documents than one induction accepts. -
SEED_INVALID- The seed ontology's source document was deleted, is larger than 400,000 bytes, or doesn't parse. -
FRAGMENT_EMPTY- The induction found nothing to induce in the documents, and there is no seed to start from. -
FRAGMENT_FAILED- Inducing from a document failed after retries. -
DOCUMENT_FILTERED- The model that drafts the ontology refused to process a document. -
MERGE_FAILED- Merging the results from the documents failed after retries. -
INDUCED_TOO_LARGE- The draft is larger than the maximum size of an ontology. -
DRAFT_WRITE_FAILED- AWS Context couldn't save the draft. -
TIMED_OUT- The induction didn't finish within its time limit. -
RUN_STOPPED- The run stopped before it finished.
If AWS Context rejects the induced draft,
codeis the code that CreateOntology reports for the same problem (seeOntologyIssueCode), for exampleRDF_PARSE_ERRORorNO_CLASSES.For
INPUT_UNREADABLE,TOO_MANY_DOCUMENTS,SEED_INVALID,FRAGMENT_EMPTY,DOCUMENT_FILTERED, andINDUCED_TOO_LARGE, fix the input, and then start a new induction. For the other codes, start a new induction with the same input. New codes can be added, so handle a code that you don't recognize. Usecode, notmessage, to decide how to respond.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
message
A human-readable description of why the induction failed. Use
code, notmessage, to decide how to respond.- Parameters:
message- A human-readable description of why the induction failed. Usecode, notmessage, to decide how to respond.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-