pub trait LinkedDataResource<I: Interpretation = (), V: Vocabulary = ()> {
    // Required method
    fn interpretation(
        &self,
        vocabulary: &mut V,
        interpretation: &mut I
    ) -> ResourceInterpretation<'_, I, V>;

    // Provided methods
    fn lexical_representation<'a>(
        &'a self,
        vocabulary: &'a mut V,
        interpretation: &'a mut I
    ) -> Option<CowRdfTerm<'a, V>>
       where I: ReverseTermInterpretation<Iri = V::Iri, BlankId = V::BlankId, Literal = V::Literal> { ... }
    fn reference_interpretation(
        &self,
        vocabulary: &mut V,
        interpretation: &mut I
    ) -> ResourceInterpretation<'_, I, V> { ... }
}
Expand description

Type that can have an interpretation.

Required Methods§

source

fn interpretation( &self, vocabulary: &mut V, interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

Provided Methods§

source

fn lexical_representation<'a>( &'a self, vocabulary: &'a mut V, interpretation: &'a mut I ) -> Option<CowRdfTerm<'a, V>>
where I: ReverseTermInterpretation<Iri = V::Iri, BlankId = V::BlankId, Literal = V::Literal>,

source

fn reference_interpretation( &self, vocabulary: &mut V, interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

Implementations on Foreign Types§

source§

impl<'a, I: Interpretation, V: Vocabulary, T: ?Sized + LinkedDataResource<I, V>> LinkedDataResource<I, V> for &'a T

source§

fn interpretation( &self, vocabulary: &mut V, interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

source§

impl<I: Interpretation, V: Vocabulary> LinkedDataResource<I, V> for ()

source§

fn interpretation( &self, _vocabulary: &mut V, _interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

source§

impl<I: Interpretation, V: Vocabulary, T: LinkedDataResource<I, V>> LinkedDataResource<I, V> for Option<T>

source§

fn interpretation( &self, vocabulary: &mut V, interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

source§

impl<I: Interpretation, V: Vocabulary, T: ?Sized + LinkedDataResource<I, V>> LinkedDataResource<I, V> for Box<T>

source§

fn interpretation( &self, vocabulary: &mut V, interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

source§

impl<V: Vocabulary + BlankIdVocabularyMut, I: Interpretation> LinkedDataResource<I, V> for BlankId

source§

fn interpretation( &self, vocabulary: &mut V, _interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

source§

impl<V: Vocabulary + BlankIdVocabularyMut, I: Interpretation> LinkedDataResource<I, V> for BlankIdBuf

source§

fn interpretation( &self, vocabulary: &mut V, _interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

source§

impl<V: Vocabulary + IriVocabularyMut + LiteralVocabularyMut, I: Interpretation> LinkedDataResource<I, V> for i8

source§

fn interpretation( &self, _vocabulary: &mut V, _interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

source§

impl<V: Vocabulary + IriVocabularyMut + LiteralVocabularyMut, I: Interpretation> LinkedDataResource<I, V> for i16

source§

fn interpretation( &self, _vocabulary: &mut V, _interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

source§

impl<V: Vocabulary + IriVocabularyMut + LiteralVocabularyMut, I: Interpretation> LinkedDataResource<I, V> for i32

source§

fn interpretation( &self, _vocabulary: &mut V, _interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

source§

impl<V: Vocabulary + IriVocabularyMut + LiteralVocabularyMut, I: Interpretation> LinkedDataResource<I, V> for i64

source§

fn interpretation( &self, _vocabulary: &mut V, _interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

source§

impl<V: Vocabulary + IriVocabularyMut + LiteralVocabularyMut, I: Interpretation> LinkedDataResource<I, V> for str

source§

fn interpretation( &self, _vocabulary: &mut V, _interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

source§

impl<V: Vocabulary + IriVocabularyMut + LiteralVocabularyMut, I: Interpretation> LinkedDataResource<I, V> for u8

source§

fn interpretation( &self, _vocabulary: &mut V, _interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

source§

impl<V: Vocabulary + IriVocabularyMut + LiteralVocabularyMut, I: Interpretation> LinkedDataResource<I, V> for u16

source§

fn interpretation( &self, _vocabulary: &mut V, _interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

source§

impl<V: Vocabulary + IriVocabularyMut + LiteralVocabularyMut, I: Interpretation> LinkedDataResource<I, V> for u32

source§

fn interpretation( &self, _vocabulary: &mut V, _interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

source§

impl<V: Vocabulary + IriVocabularyMut + LiteralVocabularyMut, I: Interpretation> LinkedDataResource<I, V> for u64

source§

fn interpretation( &self, _vocabulary: &mut V, _interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

source§

impl<V: Vocabulary + IriVocabularyMut + LiteralVocabularyMut, I: Interpretation> LinkedDataResource<I, V> for String

source§

fn interpretation( &self, _vocabulary: &mut V, _interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

source§

impl<V: Vocabulary + IriVocabularyMut + LiteralVocabularyMut, I: Interpretation> LinkedDataResource<I, V> for DateTime

source§

fn interpretation( &self, _vocabulary: &mut V, _interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

source§

impl<V: Vocabulary + IriVocabularyMut + LiteralVocabularyMut, I: Interpretation> LinkedDataResource<I, V> for AnyUriBuf

source§

fn interpretation( &self, _vocabulary: &mut V, _interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

source§

fn reference_interpretation( &self, vocabulary: &mut V, _interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

source§

impl<V: Vocabulary + IriVocabularyMut, I: Interpretation> LinkedDataResource<I, V> for Iri

source§

fn interpretation( &self, vocabulary: &mut V, _interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

source§

impl<V: Vocabulary + IriVocabularyMut, I: Interpretation> LinkedDataResource<I, V> for IriBuf

source§

fn interpretation( &self, vocabulary: &mut V, _interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

source§

impl<V: Vocabulary, I: Interpretation> LinkedDataResource<I, V> for Literal<V::Iri>

source§

fn interpretation( &self, _vocabulary: &mut V, _interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

source§

impl<V: Vocabulary, I: Interpretation, T: LinkedDataResource<I, V>, B: LinkedDataResource<I, V>> LinkedDataResource<I, V> for Id<T, B>

source§

fn interpretation( &self, vocabulary: &mut V, interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

source§

impl<V: Vocabulary, I: Interpretation, T: LinkedDataResource<I, V>, B: LinkedDataResource<I, V>, L: LinkedDataResource<I, V>> LinkedDataResource<I, V> for Term<Id<T, B>, L>

source§

fn interpretation( &self, vocabulary: &mut V, interpretation: &mut I ) -> ResourceInterpretation<'_, I, V>

Implementors§