Skip to main content

Crate rdf_reader_turtle

Crate rdf_reader_turtle 

Source
Expand description

A Turtle file reader for RDF.rs, a Rust framework for RDF knowledge graphs.

§Examples

use tokio::fs::File;
let file = File::open("example.ttl").await?;

use rdf_reader_turtle::TurtleReader;
let reader = TurtleReader::from(file);

use futures::StreamExt;
reader
    .into_stream()
    .for_each(|triple| async move {
        eprintln!("{:?}", triple);
    })
    .await;

Structs§

TurtleReader
A reader for the Turtle text format.

Type Aliases§

TurtleReaderError
An error encountered while reading a Turtle file.
TurtleReaderResult
TurtleTriple
A triple statement (S, P, O) originating from a Turtle file.