Skip to main content

Crate rdf_reader_ntriples

Crate rdf_reader_ntriples 

Source
Expand description

An N-Triples file reader for RDF.rs, a Rust framework for RDF knowledge graphs.

§Examples

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

use rdf_reader_ntriples::NtriplesReader;
let reader = NtriplesReader::from(file);

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

Structs§

NtriplesReader
A reader for the N-Triples text format.

Type Aliases§

NtriplesReaderError
An error encountered while reading an N-Triples file.
NtriplesReaderResult
NtriplesTriple
A triple statement (S, P, O) originating from an N-Triples file.