Skip to main content

Module ingest_resume

Module ingest_resume 

Source
Expand description

Format-aware resume: newline skip for NT/NQ, prefix+offset for Turtle/TriG/N3. Gzip/XML/JSON-LD stay skip-N (cannot seek honestly).

Structs§

ByteCounter
Counts bytes the inner reader actually delivers (parser-facing).
PrefixCapture
Copies @prefix / @base / PREFIX / BASE statements into prolog.
ResumeCursor

Constants§

RESUME_FILE

Functions§

format_can_seek
true when fmt supports byte-offset seeking.
format_is_line_oriented
true when fmt parses line-by-line (ND/NT/NQ).
format_uses_prolog
true when fmt parses through the Prolog engine.
open_resumed_file
Open a seekable file, optionally resume at cursor.
skip_newlines
Skip n newline-terminated records. Returns (bytes consumed, unread tail after the nth newline so the next parser does not lose triples).