ontocast.api.schemas¶
Pydantic models for the OntoCast HTTP API.
Attributes¶
Classes¶
FlushOkResponse
¶
HealthErrorResponse
¶
HealthOkResponse
¶
Bases: BaseModel
Source code in ontocast/api/schemas.py
InfoResponse
¶
Bases: BaseModel
Source code in ontocast/api/schemas.py
Attributes¶
capabilities = Field(default_factory=lambda: ['text-to-triples', 'ontology-extraction'])
class-attribute
instance-attribute
¶
description = 'Agentic ontology assisted framework for semantic triple extraction'
class-attribute
instance-attribute
¶
input_types = Field(default_factory=lambda: ['txt', 'json', 'pdf', 'pptx'])
class-attribute
instance-attribute
¶
llm_cache = Field(default=None, description='In-memory and on-disk LLM cache statistics when available.')
class-attribute
instance-attribute
¶
max_concurrent_processes = Field(default=None, description='Configured cap on concurrent /process handlers, if any.')
class-attribute
instance-attribute
¶
name = 'ontocast'
class-attribute
instance-attribute
¶
output_types = Field(default_factory=lambda: ['turtle', 'json'])
class-attribute
instance-attribute
¶
version = __version__
class-attribute
instance-attribute
¶
OntologyDeleteResponse
¶
OntologyListResponse
¶
Bases: BaseModel
Current version of every ontology in the partition's catalog.
Source code in ontocast/api/schemas.py
OntologyMutationResponse
¶
Bases: BaseModel
Source code in ontocast/api/schemas.py
OntologySummary
¶
Bases: BaseModel
Header of the current version of one catalog ontology.
Source code in ontocast/api/schemas.py
ProcessErrorResponse
¶
Bases: BaseModel
Source code in ontocast/api/schemas.py
ProcessOkResponse
¶
Bases: BaseModel
Source code in ontocast/api/schemas.py
ProcessResultData
¶
Bases: BaseModel
Source code in ontocast/api/schemas.py
ProcessResultMetadata
¶
Bases: BaseModel
Source code in ontocast/api/schemas.py
Attributes¶
budget
instance-attribute
¶
chunks_processed
instance-attribute
¶
chunks_remaining
instance-attribute
¶
facts_conformance = Field(default_factory=dict, description='Validation summary for the returned facts graph: whether SHACL ran and the graph conforms, counts by finding kind and by SHACL constraint component, and the LLM-free repairs applied. Set by /process and /process_unit alike; empty when the gate did not run.')
class-attribute
instance-attribute
¶
facts_gate_repairs = Field(default_factory=list, description='LLM-free repairs applied to the merged graph by the gate (shape-driven retyping, code resolution, placeholder pruning). Per-unit repairs are in facts_repairs.')
class-attribute
instance-attribute
¶
facts_repairs = Field(default_factory=dict, description='Deterministic machine repairs applied per content unit, keyed by unit index. Lets a consumer tell machine-altered triples from what the model asserted.')
class-attribute
instance-attribute
¶
facts_validation_findings = Field(default_factory=list, description='Residual findings behind the summary, after every repair stage. A consumer that needs to know *which* nodes are non-conformant reads these.')
class-attribute
instance-attribute
¶
failed_units = Field(default_factory=list, description='Content units that produced no output, with the stage and reason. Empty on a fully successful run.')
class-attribute
instance-attribute
¶
improvement_suggestions = Field(default_factory=list, description='Advisory notes from the structural check and consistency critic (orphan terms, potential cross-ontology conflicts). Advisory only: nothing in the pipeline acts on them.')
class-attribute
instance-attribute
¶
retrieval_metrics = Field(default_factory=dict)
class-attribute
instance-attribute
¶
status = None
class-attribute
instance-attribute
¶
ShapesDeleteResponse
¶
ShapesListResponse
¶
Bases: BaseModel
Named graphs held in the shapes partition, and their merged size.
Source code in ontocast/api/schemas.py
ShapesMutationResponse
¶
Bases: BaseModel
One SHACL shapes document stored in the tenant's shapes partition.
Source code in ontocast/api/schemas.py
StatusErrorBody
¶
Bases: BaseModel