[−][src]Trait sophia_term::iri::resolve::Resolve
Resolve some kind of IRI with self
as the base.
Required methods
fn resolve(&self, other: S) -> T
Resolve relative IRI(s) somewhat contained in other
with self
as
the base IRI.
Implementors
impl<'a> Resolve<&'a IriParsed<'a>, IriParsed<'a>> for IriParsed<'a>
[src]
impl<'a, 'b> Resolve<&'a str, Result<MownStr<'a>, InvalidIri>> for IriParsed<'b>
[src]
fn resolve(&self, other: &'a str) -> Result<MownStr<'a>, InvalidIri>
[src]
Resolve an IRI given as String
.
Fails if other
is not a valid IRI.
impl<'a, 'b> Resolve<Iri<&'a str>, Iri<MownStr<'a>>> for IriParsed<'b>
[src]
impl<'a, 'b, T> Resolve<&'a Namespace<T>, Namespace<MownStr<'a>>> for IriParsed<'b> where
T: AsRef<str>,
[src]
T: AsRef<str>,
fn resolve(&self, other: &'a Namespace<T>) -> Namespace<MownStr<'a>>
[src]
Resolve the IRI of the given Namespace
.
impl<'a, 'b, TD> Resolve<&'a Term<TD>, Term<MownStr<'a>>> for IriParsed<'b> where
TD: TermData,
[src]
TD: TermData,
fn resolve(&self, other: &'a Term<TD>) -> MownTerm<'a>
[src]
Resolve IRIs and the IRIs of typed literals.
Performance
May allocate an intermediate IRI if an IRI is suffixed.
impl<'a, 'b, TD> Resolve<&'a Iri<TD>, Iri<MownStr<'a>>> for IriParsed<'b> where
TD: TermData,
[src]
TD: TermData,
impl<'a, 'b, TD> Resolve<&'a Literal<TD>, Literal<MownStr<'a>>> for IriParsed<'b> where
TD: TermData,
[src]
TD: TermData,