Skip to content

ontocast.api.schemas

Pydantic models for the OntoCast HTTP API.

ShapesListResponse

Bases: BaseModel

Named graphs held in the shapes partition, and their merged size.

Source code in ontocast/api/schemas.py
class ShapesListResponse(BaseModel):
    """Named graphs held in the shapes partition, and their merged size."""

    status: str = "success"
    graph_uris: list[str]
    triples: int

ShapesMutationResponse

Bases: BaseModel

One SHACL shapes document stored in the tenant's shapes partition.

Source code in ontocast/api/schemas.py
class ShapesMutationResponse(BaseModel):
    """One SHACL shapes document stored in the tenant's shapes partition."""

    status: str = "success"
    graph_uri: str
    triples: int