Skip to content

OntologyValidationIssue

Source code in docs_src/capo_context/types/ontology_validation_issue.py
class OntologyValidationIssue(TypedDict, closed=True):
    code: "capo_context.types.ontology_issue_code.OntologyIssueCode"
    """<p>A code that identifies the issue, such as <code>RDF_PARSE_ERROR</code> or <code>UNMAPPABLE_CLASS</code>. New codes can be added, so handle a code that you don't recognize.</p>"""
    message: "capo_context.types.ontology_validation_issue_message.OntologyValidationIssueMessage"
    """<p>A human-readable description of the issue.</p>"""
    line: NotRequired["int"]
    """<p>1-based line in the uploaded source, when the failure is attributable to a specific triple.</p>"""
    subject: NotRequired[
        "capo_context.types.ontology_validation_issue_subject.OntologyValidationIssueSubject"
    ]
    """<p>What the issue is about, when attributable. From an ontology operation, such as GetOntology: the offending subject/predicate IRI. In the draft of an induced ontology, the IRI of a term.</p>"""

code instance-attribute

A code that identifies the issue, such as RDF_PARSE_ERROR or UNMAPPABLE_CLASS. New codes can be added, so handle a code that you don't recognize.

line instance-attribute

line: NotRequired[int]

1-based line in the uploaded source, when the failure is attributable to a specific triple.

message instance-attribute

A human-readable description of the issue.

subject instance-attribute

subject: NotRequired[OntologyValidationIssueSubject]

What the issue is about, when attributable. From an ontology operation, such as GetOntology: the offending subject/predicate IRI. In the draft of an induced ontology, the IRI of a term.