Struct rdf_types::vocabulary::IndexVocabulary
source · pub struct IndexVocabulary<I = IriIndex, B = BlankIdIndex, L = LiteralIndex> { /* private fields */ }
Expand description
Vocabulary that stores IRIs and blank node identifiers with a unique index.
Implementations§
source§impl<I, B> IndexVocabulary<I, B>
impl<I, B> IndexVocabulary<I, B>
Trait Implementations§
source§impl<I, B: IndexedBlankId, L> BlankIdVocabulary for IndexVocabulary<I, B, L>
impl<I, B: IndexedBlankId, L> BlankIdVocabulary for IndexVocabulary<I, B, L>
type BlankId = B
source§fn blank_id<'b>(&'b self, id: &'b B) -> Option<&'b BlankId>
fn blank_id<'b>(&'b self, id: &'b B) -> Option<&'b BlankId>
Returns the blank node identifier associated to the given id.
source§fn get_blank_id(&self, blank_id: &BlankId) -> Option<B>
fn get_blank_id(&self, blank_id: &BlankId) -> Option<B>
Returns the vocabulary id of the given blank node identifier, if any.
source§fn owned_blank_id(&self, id: Self::BlankId) -> Result<BlankIdBuf, Self::BlankId>
fn owned_blank_id(&self, id: Self::BlankId) -> Result<BlankIdBuf, Self::BlankId>
Returns a copy of the blank node identifier associated to the given id.
source§impl<I, B: IndexedBlankId, L> BlankIdVocabularyMut for IndexVocabulary<I, B, L>
impl<I, B: IndexedBlankId, L> BlankIdVocabularyMut for IndexVocabulary<I, B, L>
source§fn insert_blank_id(&mut self, blank_id: &BlankId) -> Self::BlankId
fn insert_blank_id(&mut self, blank_id: &BlankId) -> Self::BlankId
Inserts a blank node identifier to the vocabulary and returns its id. Read more
fn insert_owned_blank_id(&mut self, id: BlankIdBuf) -> Self::BlankId
source§impl<I, B, L> Default for IndexVocabulary<I, B, L>
impl<I, B, L> Default for IndexVocabulary<I, B, L>
source§impl<I: IndexedIri, B, L> IriVocabulary for IndexVocabulary<I, B, L>
impl<I: IndexedIri, B, L> IriVocabulary for IndexVocabulary<I, B, L>
source§impl<I: IndexedIri, B, L> IriVocabularyMut for IndexVocabulary<I, B, L>
impl<I: IndexedIri, B, L> IriVocabularyMut for IndexVocabulary<I, B, L>
source§impl<I: Clone + IndexedIri + Eq + Hash, B, L: IndexedLiteral<I>> LiteralVocabulary for IndexVocabulary<I, B, L>
impl<I: Clone + IndexedIri + Eq + Hash, B, L: IndexedLiteral<I>> LiteralVocabulary for IndexVocabulary<I, B, L>
fn literal<'b>(&'b self, id: &'b L) -> Option<LiteralRef<'b, I>>
fn owned_literal( &self, id: Self::Literal ) -> Result<Literal<Self::Iri>, Self::Literal>
source§fn get_literal(&self, literal: LiteralRef<'_, Self::Iri>) -> Option<L>
fn get_literal(&self, literal: LiteralRef<'_, Self::Iri>) -> Option<L>
Returns the vocabulary id of the given literal identifier, if any.
source§impl<I: IndexedIri + Clone + Eq + Hash, B, L: IndexedLiteral<I>> LiteralVocabularyMut for IndexVocabulary<I, B, L>
impl<I: IndexedIri + Clone + Eq + Hash, B, L: IndexedLiteral<I>> LiteralVocabularyMut for IndexVocabulary<I, B, L>
fn insert_literal( &mut self, literal: LiteralRef<'_, Self::Iri> ) -> Self::Literal
fn insert_owned_literal(&mut self, literal: Literal<I>) -> Self::Literal
Auto Trait Implementations§
impl<I, B, L> Freeze for IndexVocabulary<I, B, L>
impl<I, B, L> RefUnwindSafe for IndexVocabulary<I, B, L>
impl<I, B, L> Send for IndexVocabulary<I, B, L>
impl<I, B, L> Sync for IndexVocabulary<I, B, L>
impl<I, B, L> Unpin for IndexVocabulary<I, B, L>
impl<I, B, L> UnwindSafe for IndexVocabulary<I, B, L>
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<V> TryExportId<<V as IriVocabulary>::Iri, <V as BlankIdVocabulary>::BlankId> for Vwhere
V: Vocabulary,
impl<V> TryExportId<<V as IriVocabulary>::Iri, <V as BlankIdVocabulary>::BlankId> for Vwhere
V: Vocabulary,
type Error = Id<<V as IriVocabulary>::Iri, <V as BlankIdVocabulary>::BlankId>
source§fn try_export_id(
&self,
id: Id<<V as IriVocabulary>::Iri, <V as BlankIdVocabulary>::BlankId>
) -> Result<Id, <V as TryExportId<<V as IriVocabulary>::Iri, <V as BlankIdVocabulary>::BlankId>>::Error>
fn try_export_id( &self, id: Id<<V as IriVocabulary>::Iri, <V as BlankIdVocabulary>::BlankId> ) -> Result<Id, <V as TryExportId<<V as IriVocabulary>::Iri, <V as BlankIdVocabulary>::BlankId>>::Error>
Turns an
Id<I, B>
into an Id
.