Package ai.chatur.cortex
Interface CortexIngestor
- All Known Subinterfaces:
Cortex
public interface CortexIngestor
Validates and stages incoming RDF assertions onto a review branch.
-
Method Summary
Modifier and TypeMethodDescriptionValidates the given assertions and stages them on a new branch.
-
Method Details
-
ingest
Validates the given assertions and stages them on a new branch.The input must first pass the
lint checkagainst the ontology; assertions failing it are rejected without being staged. Input that lints clean is then validated against the configured SHACL shapes, together with the already approved assertions, so incoming statements may rely on approved ones to conform. If the union conforms, the statements not already approved are stored on a newly created branch awaitingapproval; otherwise nothing is stored and the validation errors are reported in the result. Statements that are already approved are never staged again; if nothing novel remains, no branch is created.- Parameters:
ttl- RDF assertions in Turtle syntax, based on the classes and properties ofthe ontology- Returns:
- the outcome, carrying either the name of the created branch —
nullif every assertion was already approved — or the lint or validation errors
-