Trait TermInterpretation

Source
pub trait TermInterpretation<I, B, L = Literal>: IdInterpretation<I, B> + LiteralInterpretation<L> {
    // Provided methods
    fn term_interpretation(
        &self,
        term: &Term<Id<I, B>, L>,
    ) -> Option<Self::Resource> { ... }
    fn lexical_term_interpretation(
        &self,
        vocabulary: &impl Vocabulary<Iri = I, BlankId = B, Literal = L>,
        term: Term<Id<&Iri, &BlankId>, LiteralRef<'_, I>>,
    ) -> Option<Self::Resource> { ... }
}
Expand description

RDF Term interpretation.

Provided Methods§

Source

fn term_interpretation( &self, term: &Term<Id<I, B>, L>, ) -> Option<Self::Resource>

Returns the interpretation of the given term, if any.

Source

fn lexical_term_interpretation( &self, vocabulary: &impl Vocabulary<Iri = I, BlankId = B, Literal = L>, term: Term<Id<&Iri, &BlankId>, LiteralRef<'_, I>>, ) -> Option<Self::Resource>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<I, B, L, T: IdInterpretation<I, B> + LiteralInterpretation<L>> TermInterpretation<I, B, L> for T