taganak-framework 0.1.0-dev2

Building blocks for applications based on Taganak (Transactional, Aggregating Graph Architecture for Networking and Access to Knowledge)
Documentation
pub mod datasets;
pub mod graphs;

// FIXME check that this is the taganak version, not the final binary name and version
pub const USER_AGENT: &str = concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION"),);

pub mod prelude {
    pub use taganak_core::prelude::*;

    // Traits and wrappers
    pub use super::datasets::{ConfigurableDataset, DatasetConfig};
    pub use super::graphs::{ConfigurableGraph, ConfigurableGraphs, GraphConfig, GraphConfigs};

    // Re-exports for convenience
    pub use futures::{Stream, StreamExt, TryStream, TryStreamExt};
}

#[cfg(feature = "source_n_triples")]
lazy_term!(pub SELF_TERM, "<https://sdk.taganak.net/#self>");
#[cfg(feature = "source_n_triples")]
pub static SELF_TTL: &str = include_str!("../self.ttl");
#[cfg(feature = "source_turtle")]
lazy_graph!(pub SELF_GRAPH, SELF_TTL, Some("https://sdk.taganak.net/#"));