Struct rdf_types::interpretation::Indexed
source · pub struct Indexed { /* private fields */ }Implementations§
Trait Implementations§
source§impl BlankIdInterpretation<BlankIdIndex> for Indexed
impl BlankIdInterpretation<BlankIdIndex> for Indexed
source§fn blank_id_interpretation(
&self,
blank_id: &BlankIdIndex
) -> Option<Self::Resource>
fn blank_id_interpretation( &self, blank_id: &BlankIdIndex ) -> 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 BlankIdInterpretationMut<BlankIdIndex> for Indexed
impl BlankIdInterpretationMut<BlankIdIndex> for Indexed
source§fn interpret_blank_id(&mut self, blank_id: BlankIdIndex) -> Self::Resource
fn interpret_blank_id(&mut self, blank_id: BlankIdIndex) -> Self::Resource
Interprets the given blank node identifier.
fn interpret_lexical_blank_id( &mut self, vocabulary: &mut impl BlankIdVocabularyMut<BlankId = B>, blank_id: &BlankId ) -> Self::Resource
fn interpret_owned_lexical_blank_id( &mut self, vocabulary: &mut impl BlankIdVocabularyMut<BlankId = B>, blank_id: BlankIdBuf ) -> Self::Resource
source§impl Interpretation for Indexed
impl Interpretation for Indexed
§type Resource = ResourceIndex
type Resource = ResourceIndex
Resource identifier type.
source§impl<V> InterpretationMut<V> for Indexed
impl<V> InterpretationMut<V> for Indexed
source§fn new_resource(&mut self, _vocabulary: &mut V) -> Self::Resource
fn new_resource(&mut self, _vocabulary: &mut V) -> Self::Resource
Creates a new resource.
source§impl IriInterpretation<IriIndex> for Indexed
impl IriInterpretation<IriIndex> for Indexed
source§fn iri_interpretation(&self, iri: &IriIndex) -> Option<Self::Resource>
fn iri_interpretation(&self, iri: &IriIndex) -> 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 IriInterpretationMut<IriIndex> for Indexed
impl IriInterpretationMut<IriIndex> for Indexed
source§fn interpret_iri(&mut self, iri: IriIndex) -> Self::Resource
fn interpret_iri(&mut self, iri: IriIndex) -> Self::Resource
Interprets the given IRI.
fn interpret_lexical_iri( &mut self, vocabulary: &mut impl IriVocabularyMut<Iri = I>, iri: &Iri ) -> Self::Resource
fn interpret_owned_lexical_iri( &mut self, vocabulary: &mut impl IriVocabularyMut<Iri = I>, iri: IriBuf ) -> Self::Resource
source§impl LiteralInterpretation<LiteralIndex> for Indexed
impl LiteralInterpretation<LiteralIndex> for Indexed
source§fn literal_interpretation(
&self,
literal: &LiteralIndex
) -> Option<Self::Resource>
fn literal_interpretation( &self, literal: &LiteralIndex ) -> 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: &Literal<V::Iri> ) -> Option<Self::Resource>
source§impl LiteralInterpretationMut<LiteralIndex> for Indexed
impl LiteralInterpretationMut<LiteralIndex> for Indexed
source§fn interpret_literal(&mut self, literal: LiteralIndex) -> Self::Resource
fn interpret_literal(&mut self, literal: LiteralIndex) -> Self::Resource
Interprets the given literal value.
fn interpret_lexical_literal<V: LiteralVocabularyMut<Literal = L>>( &mut self, vocabulary: &mut V, literal: &Literal<V::Iri> ) -> Self::Resource
fn interpret_owned_lexical_literal<V: LiteralVocabularyMut<Literal = L>>( &mut self, vocabulary: &mut V, literal: Literal<V::Iri> ) -> Self::Resource
fn interpret_full_lexical_literal( &mut self, vocabulary: &mut (impl IriVocabularyMut + LiteralVocabularyMut<Literal = L>), literal: Literal ) -> Self::Resource
source§impl PartialEq for Indexed
impl PartialEq for Indexed
source§impl ReverseBlankIdInterpretation for Indexed
impl ReverseBlankIdInterpretation for Indexed
type BlankId = BlankIdIndex
type BlankIds<'a> = Flatten<IntoIter<Iter<'a, BlankIdIndex>>>
fn blank_ids_of(&self, id: &Self::Resource) -> Self::BlankIds<'_>
source§impl ReverseIriInterpretation for Indexed
impl ReverseIriInterpretation for Indexed
source§impl ReverseLiteralInterpretation for Indexed
impl ReverseLiteralInterpretation for Indexed
type Literal = LiteralIndex
type Literals<'a> = Flatten<IntoIter<Iter<'a, LiteralIndex>>>
fn literals_of(&self, id: &Self::Resource) -> Self::Literals<'_>
source§impl TraversableInterpretation for Indexed
impl TraversableInterpretation for Indexed
impl Eq for Indexed
impl StructuralPartialEq for Indexed
Auto Trait Implementations§
impl RefUnwindSafe for Indexed
impl Send for Indexed
impl Sync for Indexed
impl Unpin for Indexed
impl UnwindSafe for Indexed
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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, B, T> IdInterpretationMut<I, B> for Twhere
T: IriInterpretationMut<I> + BlankIdInterpretationMut<B>,
impl<I, B, T> IdInterpretationMut<I, B> for Twhere
T: IriInterpretationMut<I> + BlankIdInterpretationMut<B>,
source§fn interpret_id(&mut self, id: Id<I, B>) -> Self::Resource
fn interpret_id(&mut self, id: Id<I, B>) -> Self::Resource
Interprets the given identifier.
fn interpret_lexical_id( &mut self, vocabulary: &mut (impl IriVocabularyMut<Iri = I> + BlankIdVocabularyMut<BlankId = B>), id: Id<&Iri, &BlankId> ) -> Self::Resource
fn interpret_owned_lexical_id( &mut self, vocabulary: &mut (impl IriVocabularyMut<Iri = I> + BlankIdVocabularyMut<BlankId = B>), id: Id ) -> Self::Resource
source§impl<I> ReverseIdInterpretation for I
impl<I> ReverseIdInterpretation for I
source§impl<I> ReverseIdInterpretationMut for I
impl<I> ReverseIdInterpretationMut 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> ReverseTermInterpretationMut for I
impl<I> ReverseTermInterpretationMut for I
source§fn assign_term(
&mut self,
resource: &Self::Resource,
term: Term<Id<Self::Iri, Self::BlankId>, Self::Literal>
) -> bool
fn assign_term( &mut self, resource: &Self::Resource, term: Term<Id<Self::Iri, Self::BlankId>, Self::Literal> ) -> bool
Assigns the given term to the given resource.
source§fn assign_terms(
&mut self,
f: impl FnMut(&Self, &Self::Resource) -> Option<Term<Id<Self::Iri, Self::BlankId>, Self::Literal>>
)
fn assign_terms( &mut self, f: impl FnMut(&Self, &Self::Resource) -> Option<Term<Id<Self::Iri, Self::BlankId>, Self::Literal>> )
Assigns a term to all the interpreted resources.
source§fn generate_ids<V: IriVocabulary + BlankIdVocabulary>(
&mut self,
vocabulary: &mut V,
generator: &mut impl Generator<V>
)where
Self::Resource: Clone,
Self: TraversableInterpretation + ReverseTermInterpretationMut<Iri = V::Iri, BlankId = V::BlankId>,
fn generate_ids<V: IriVocabulary + BlankIdVocabulary>(
&mut self,
vocabulary: &mut V,
generator: &mut impl Generator<V>
)where
Self::Resource: Clone,
Self: TraversableInterpretation + ReverseTermInterpretationMut<Iri = V::Iri, BlankId = V::BlankId>,
Generates and assign a node identifier for all the resources that don’t
have any term, using the given generator.
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.