Trait rdf_types::vocabulary::LiteralVocabulary
source · pub trait LiteralVocabulary: IriVocabulary {
type Literal;
// Required methods
fn literal<'l>(
&'l self,
id: &'l Self::Literal
) -> Option<LiteralRef<'l, Self::Iri>>;
fn owned_literal(
&self,
id: Self::Literal
) -> Result<Literal<Self::Iri>, Self::Literal>;
fn get_literal(
&self,
id: LiteralRef<'_, Self::Iri>
) -> Option<Self::Literal>;
}
Expand description
Literal value vocabulary.
Required Associated Types§
Required Methods§
fn literal<'l>( &'l self, id: &'l Self::Literal ) -> Option<LiteralRef<'l, Self::Iri>>
fn owned_literal( &self, id: Self::Literal ) -> Result<Literal<Self::Iri>, Self::Literal>
sourcefn get_literal(&self, id: LiteralRef<'_, Self::Iri>) -> Option<Self::Literal>
fn get_literal(&self, id: LiteralRef<'_, Self::Iri>) -> Option<Self::Literal>
Returns the vocabulary id of the given literal identifier, if any.