[][src]Trait sophia::serializer::TripleSerializer

pub trait TripleSerializer {
    type Error: 'static + Error;
    fn serialize_triples<TS>(
        &mut self,
        source: &mut TS
    ) -> StreamResult<&mut Self, TS::Error, Self::Error>
    where
        TS: TripleSource,
        Self: Sized
; fn serialize_graph<G>(
        &mut self,
        graph: &G
    ) -> StreamResult<&mut Self, G::Error, Self::Error>
    where
        G: Graph,
        Self: Sized
, { ... } }

A triple serializer writes triples according to a given format.

Associated Types

type Error: 'static + Error

Loading content...

Required methods

fn serialize_triples<TS>(
    &mut self,
    source: &mut TS
) -> StreamResult<&mut Self, TS::Error, Self::Error> where
    TS: TripleSource,
    Self: Sized

Serialize all triples from the given TripleSource.

Loading content...

Provided methods

fn serialize_graph<G>(
    &mut self,
    graph: &G
) -> StreamResult<&mut Self, G::Error, Self::Error> where
    G: Graph,
    Self: Sized

Serialize a whole Graph.

While this method has a default implementation based on serialize_triples, some implementations may override it in order to better use the structure of the Graph.

Loading content...

Implementors

impl<W> TripleSerializer for NtSerializer<W> where
    W: Write
[src]

type Error = Error

Loading content...