brainkb_ingest_text
Ingest raw RDF text (Turtle / N-Triples / JSON-LD, auto-detected) into a named graph. Returns a job_id; ingestion runs in the background — poll with brainkb_job_status. The graph must be registered (see brainkb_add_space_graph) and the caller must have write access to its space.
`sha256` / `expected_bytes` are an integrity contract, and you should use them
whenever the RDF came from a file. Ingest is append-only — no delete for
triples, no unregister for a graph — so RDF that arrives here mangled is
permanent. Because `data` is a string, it passes through the caller's context,
where dense Turtle is exactly what gets silently altered: ligatures, Greek
letters, embedded newlines, escaped quotes. Declare the digest of the bytes you
MEANT to send (`shasum -a 256 file.ttl`) and this refuses the write on any
mismatch, turning an unrecoverable corruption into a clean rejection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| sha256 | No | ||
| expected_bytes | No | ||
| named_graph_iri | Yes |