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§
Sourcefn term_interpretation(
&self,
term: &Term<Id<I, B>, L>,
) -> Option<Self::Resource>
fn term_interpretation( &self, term: &Term<Id<I, B>, L>, ) -> Option<Self::Resource>
Returns the interpretation of the given term, if any.
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.