Skip to main content

Module ingest_formats

Module ingest_formats 

Source
Expand description

Dispatch ingest across RDF serialisations. Line formats seek; Turtle/TriG resume via prefix prolog + offset; XML / JSON-LD / gzip stay skip-N.

Structs§

RawTriple
Raw string triple from any RDF serialisation. context is the graph name hash (0 = default).

Constants§

OBJECT_IRI_MASK
Object-field hashes keep bits 60–63 free for resolver type tags.

Functions§

format_from_path
Infers the RDF ingest format from a lowercased path extension.
object_iri_hash
?::object_iri_hash.
pack_rio_quad
Packs a rio Quad into a RawTriple.
pack_rio_triple
Packs a rio Triple into a RawTriple under context.
parse_bytes_to_raw
Helper for tests / small in-memory sources.
parse_triples_format
Streams a triples-format document, invoking the callback per triple.
repair_rdfxml_empty_base
Catalog RDF/XML often ships xml:base="". Fill it from the stem IRI.