[−][src]Trait sophia::serializer::TripleSerializer
A triple serializer writes triples according to a given format.
Associated Types
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,
&mut self,
source: &mut TS
) -> StreamResult<&mut Self, TS::Error, Self::Error> where
TS: TripleSource,
Self: Sized,
Serialize all triples from the given TripleSource
.
Provided methods
fn serialize_graph<G>(
&mut self,
graph: &G
) -> StreamResult<&mut Self, G::Error, Self::Error> where
G: Graph,
Self: Sized,
&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.
Implementors
impl<W> TripleSerializer for NtSerializer<W> where
W: Write,
[src]
W: Write,
type Error = Error
fn serialize_triples<TS>(
&mut self,
source: &mut TS
) -> StreamResult<&mut Self, TS::Error, Self::Error> where
TS: TripleSource,
[src]
&mut self,
source: &mut TS
) -> StreamResult<&mut Self, TS::Error, Self::Error> where
TS: TripleSource,