Skip to main content

Crate rdf_reader_cottas

Crate rdf_reader_cottas 

Source
Expand description

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

§Examples

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

use rdf_reader_cottas::CottasReader;
let reader = CottasReader::try_from(file).await?;

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

Structs§

CottasReader
A reader for the COTTAS (Parquet) binary format.

Type Aliases§

CottasReaderError
An error encountered while reading a COTTAS file.
CottasReaderResult
CottasTerm