[−][src]Trait rome::graph::ResourceTranslator
translate from one graph to another useful for inferencing there can be a general implemenation as wel as an optimized one that's used when extending a graph by inferencing from its own content
Associated Types
type Graph: Graph<'g>
The source graph from which this translator translates.
type GraphWriter: GraphWriter<'g>
The type of the writer into which this translator translates.
Required Methods
fn translate_blank_node(
&mut self,
w: &mut Self::GraphWriter,
blank_node: &<Self::Graph as Graph<'g>>::BlankNodePtr
) -> <Self::GraphWriter as GraphWriter<'g>>::BlankNode
&mut self,
w: &mut Self::GraphWriter,
blank_node: &<Self::Graph as Graph<'g>>::BlankNodePtr
) -> <Self::GraphWriter as GraphWriter<'g>>::BlankNode
Translate a blank node from the source graph to the graph writer.
Provided Methods
fn translate_blank_node_or_iri(
&mut self,
w: &mut Self::GraphWriter,
blank_node_or_iri: &BlankNodeOrIRI<'g, <Self::Graph as Graph<'g>>::BlankNodePtr, <Self::Graph as Graph<'g>>::IRIPtr>
) -> WriterBlankNodeOrIRI<'g, Self::GraphWriter> where
Self: 'g,
&mut self,
w: &mut Self::GraphWriter,
blank_node_or_iri: &BlankNodeOrIRI<'g, <Self::Graph as Graph<'g>>::BlankNodePtr, <Self::Graph as Graph<'g>>::IRIPtr>
) -> WriterBlankNodeOrIRI<'g, Self::GraphWriter> where
Self: 'g,
Translate a blank node or iri from the source graph to the graph writer.
fn translate_resource(
&mut self,
w: &mut Self::GraphWriter,
resource: &Resource<'g, <Self::Graph as Graph<'g>>::BlankNodePtr, <Self::Graph as Graph<'g>>::IRIPtr, <Self::Graph as Graph<'g>>::LiteralPtr>
) -> WriterResource<'g, Self::GraphWriter> where
Self: 'g,
&mut self,
w: &mut Self::GraphWriter,
resource: &Resource<'g, <Self::Graph as Graph<'g>>::BlankNodePtr, <Self::Graph as Graph<'g>>::IRIPtr, <Self::Graph as Graph<'g>>::LiteralPtr>
) -> WriterResource<'g, Self::GraphWriter> where
Self: 'g,
Translate a Resource from the source graph to the graph writer.