[][src]Trait rome::graph::ResourceTranslator

pub trait ResourceTranslator<'g> {
    type Graph: Graph<'g>;
    type GraphWriter: GraphWriter<'g>;
    fn translate_blank_node(
        &mut self,
        w: &mut Self::GraphWriter,
        blank_node: &<Self::Graph as Graph<'g>>::BlankNodePtr
    ) -> <Self::GraphWriter as GraphWriter<'g>>::BlankNode; 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
, { ... }
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
, { ... } }

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

The source graph from which this translator translates.

The type of the writer into which this translator translates.

Required Methods

Translate a blank node from the source graph to the graph writer.

Provided Methods

Translate a blank node or iri from the source graph to the graph writer.

Translate a Resource from the source graph to the graph writer.

Implementors