Trait LinkedDataResource

Source
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<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 &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§