Skip to main content

parse_triples

Function parse_triples 

Source
pub fn parse_triples<R: BufRead, F: FnMut(Triple) -> Result<()>>(
    reader: R,
    format: InputFormat,
    on_triple: F,
) -> Result<ParseOutcome>
Expand description

Stream-parse reader according to format. For each triple (after dropping any graph context for quad formats), invoke on_triple. Triples involving a blank node are skipped and increment the skipped counter.

Returns a ParseOutcome containing totals and any prefix declarations seen in the source.