pub struct VocabularyInterpretation<V: Vocabulary>(/* private fields */);Expand description
Vocabulary interpretation.
This type is a special sort of interpretation where every term is interpreted as itself.
Implementations§
Source§impl<V: Vocabulary> VocabularyInterpretation<V>
impl<V: Vocabulary> VocabularyInterpretation<V>
Trait Implementations§
Source§impl<V: Vocabulary> BlankIdInterpretation<<V as BlankIdVocabulary>::BlankId> for VocabularyInterpretation<V>
impl<V: Vocabulary> BlankIdInterpretation<<V as BlankIdVocabulary>::BlankId> for VocabularyInterpretation<V>
Source§fn blank_id_interpretation(
&self,
blank_id: &V::BlankId,
) -> Option<Self::Resource>
fn blank_id_interpretation( &self, blank_id: &V::BlankId, ) -> Option<Self::Resource>
Returns the interpretation of the given blank node identifier, if any.
fn lexical_blank_id_interpretation(
&self,
vocabulary: &impl BlankIdVocabulary<BlankId = B>,
blank_id: &BlankId,
) -> Option<Self::Resource>where
B: Sized,
Source§impl<V: Vocabulary> Default for VocabularyInterpretation<V>
impl<V: Vocabulary> Default for VocabularyInterpretation<V>
Source§impl<V: Vocabulary> Interpretation for VocabularyInterpretation<V>
impl<V: Vocabulary> Interpretation for VocabularyInterpretation<V>
Source§type Resource = Term<Id<<V as IriVocabulary>::Iri, <V as BlankIdVocabulary>::BlankId>, <V as LiteralVocabulary>::Literal>
type Resource = Term<Id<<V as IriVocabulary>::Iri, <V as BlankIdVocabulary>::BlankId>, <V as LiteralVocabulary>::Literal>
Resource identifier type.
Source§impl<V: Vocabulary> IriInterpretation<<V as IriVocabulary>::Iri> for VocabularyInterpretation<V>
impl<V: Vocabulary> IriInterpretation<<V as IriVocabulary>::Iri> for VocabularyInterpretation<V>
Source§fn iri_interpretation(&self, iri: &V::Iri) -> Option<Self::Resource>
fn iri_interpretation(&self, iri: &V::Iri) -> Option<Self::Resource>
Returns the interpretation of the given IRI, if any.
fn lexical_iri_interpretation(
&self,
vocabulary: &impl IriVocabulary<Iri = I>,
iri: &Iri,
) -> Option<Self::Resource>where
I: Sized,
Source§impl<V: Vocabulary> LiteralInterpretation<<V as LiteralVocabulary>::Literal> for VocabularyInterpretation<V>
impl<V: Vocabulary> LiteralInterpretation<<V as LiteralVocabulary>::Literal> for VocabularyInterpretation<V>
Source§fn literal_interpretation(&self, literal: &V::Literal) -> Option<Self::Resource>
fn literal_interpretation(&self, literal: &V::Literal) -> Option<Self::Resource>
Returns the interpretation of the given literal value, if any.
fn lexical_literal_interpretation<V: LiteralVocabulary<Literal = L>>( &self, vocabulary: &V, literal: LiteralRef<'_, V::Iri>, ) -> Option<Self::Resource>
Source§impl<V: Vocabulary> ReverseBlankIdInterpretation for VocabularyInterpretation<V>
impl<V: Vocabulary> ReverseBlankIdInterpretation for VocabularyInterpretation<V>
Source§impl<V: Vocabulary> ReverseIriInterpretation for VocabularyInterpretation<V>
impl<V: Vocabulary> ReverseIriInterpretation for VocabularyInterpretation<V>
Source§impl<V: Vocabulary> ReverseLiteralInterpretation for VocabularyInterpretation<V>
impl<V: Vocabulary> ReverseLiteralInterpretation for VocabularyInterpretation<V>
Auto Trait Implementations§
impl<V> Freeze for VocabularyInterpretation<V>
impl<V> RefUnwindSafe for VocabularyInterpretation<V>where
V: RefUnwindSafe,
impl<V> Send for VocabularyInterpretation<V>where
V: Send,
impl<V> Sync for VocabularyInterpretation<V>where
V: Sync,
impl<V> Unpin for VocabularyInterpretation<V>where
V: Unpin,
impl<V> UnwindSafe for VocabularyInterpretation<V>where
V: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<I> FallibleInterpretation for Iwhere
I: Interpretation,
impl<I> FallibleInterpretation for Iwhere
I: Interpretation,
type Resource = <I as Interpretation>::Resource
type Error = Infallible
Source§impl<I, B, T> IdInterpretation<I, B> for Twhere
T: IriInterpretation<I> + BlankIdInterpretation<B>,
impl<I, B, T> IdInterpretation<I, B> for Twhere
T: IriInterpretation<I> + BlankIdInterpretation<B>,
Source§fn id_interpretation(&self, id: &Id<I, B>) -> Option<Self::Resource>
fn id_interpretation(&self, id: &Id<I, B>) -> Option<Self::Resource>
Returns the interpretation of the given node identifier, if any.
fn lexical_id_interpretation( &self, vocabulary: &(impl IriVocabulary<Iri = I> + BlankIdVocabulary<BlankId = B>), id: Id<&Iri, &BlankId>, ) -> Option<Self::Resource>
Source§impl<I> ReverseIdInterpretation for I
impl<I> ReverseIdInterpretation for I
Source§impl<I> ReverseTermInterpretation for I
impl<I> ReverseTermInterpretation for I
fn terms_of<'a>(&'a self, id: &'a Self::Resource) -> TermsOf<'a, Self> ⓘ
fn term_of<'a>(&'a self, id: &'a Self::Resource) -> Option<TermOf<'a, Self>>
fn has_term(&self, id: &Self::Resource) -> bool
fn quads_of<'a>( &'a self, quad: Quad<&'a Self::Resource, &'a Self::Resource, &'a Self::Resource, &'a Self::Resource>, ) -> QuadsOf<'a, Self> ⓘ
fn grdf_quads_of<'a>( &'a self, quad: Quad<&'a Self::Resource, &'a Self::Resource, &'a Self::Resource, &'a Self::Resource>, ) -> GrdfQuadsOf<'a, Self> ⓘ
Source§impl<I, B, L, T> TermInterpretation<I, B, L> for Twhere
T: IdInterpretation<I, B> + LiteralInterpretation<L>,
impl<I, B, L, T> TermInterpretation<I, B, L> for Twhere
T: IdInterpretation<I, B> + LiteralInterpretation<L>,
Source§fn 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.