Skip to main content

Reader

Trait Reader 

Source
pub trait Reader<T>: Execute<T> { }
Expand description

An importer that maps a document or byte stream into an RDF graph or dataset.

Source data may use an RDF or non-RDF format. The program defines supported inputs and their mappings, including vocabulary, base-IRI handling, and identifier generation. This role describes a data-import operation, not an implementation of Rust’s byte-reading traits.

§Command-line contract

PROGRAM [OPTIONS] [INPUT-FILE [OUTPUT-FILE]]

Input and output default to stdin and stdout. A single operand selects input; two select input then output, with - denoting a standard stream. ReaderOptions defaults to automatic input-format detection and jsonl output. The program must document its detection procedure and fail if it cannot select a supported input format.

T is the implementation’s imported-result representation. See crate::programs for links to concrete execution behavior and the reader specification.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§