Trait Rdf

Source
pub trait Rdf: Sized {
    type Subject: Subject + From<Self::IRI> + From<Self::BNode> + From<IriS> + TryFrom<Self::Term> + TryFrom<Object> + Matcher<Self::Subject>;
    type IRI: Iri + From<IriS> + TryFrom<Self::Term> + Matcher<Self::IRI>;
    type Term: Term + From<Self::Subject> + From<Self::IRI> + From<Self::BNode> + From<Self::Literal> + From<IriS> + From<Object> + Into<Object> + Matcher<Self::Term>;
    type BNode: BlankNode + TryFrom<Self::Term>;
    type Literal: Literal + From<bool> + From<String> + From<i128> + From<f64> + TryFrom<Self::Term> + From<SRDFLiteral>;
    type Triple: Triple<Self::Subject, Self::IRI, Self::Term>;
    type Err: Display;

    // Required methods
    fn qualify_iri(&self, iri: &Self::IRI) -> String;
    fn qualify_subject(&self, subj: &Self::Subject) -> String;
    fn qualify_term(&self, term: &Self::Term) -> String;
    fn prefixmap(&self) -> Option<PrefixMap>;
    fn resolve_prefix_local(
        &self,
        prefix: &str,
        local: &str,
    ) -> Result<IriS, PrefixMapError>;
}

Required Associated Types§

Source

type Subject: Subject + From<Self::IRI> + From<Self::BNode> + From<IriS> + TryFrom<Self::Term> + TryFrom<Object> + Matcher<Self::Subject>

Source

type IRI: Iri + From<IriS> + TryFrom<Self::Term> + Matcher<Self::IRI>

Source

type Term: Term + From<Self::Subject> + From<Self::IRI> + From<Self::BNode> + From<Self::Literal> + From<IriS> + From<Object> + Into<Object> + Matcher<Self::Term>

Source

type BNode: BlankNode + TryFrom<Self::Term>

Source

type Literal: Literal + From<bool> + From<String> + From<i128> + From<f64> + TryFrom<Self::Term> + From<SRDFLiteral>

Source

type Triple: Triple<Self::Subject, Self::IRI, Self::Term>

Source

type Err: Display

Required Methods§

Source

fn qualify_iri(&self, iri: &Self::IRI) -> String

Source

fn qualify_subject(&self, subj: &Self::Subject) -> String

Source

fn qualify_term(&self, term: &Self::Term) -> String

Source

fn prefixmap(&self) -> Option<PrefixMap>

Source

fn resolve_prefix_local( &self, prefix: &str, local: &str, ) -> Result<IriS, PrefixMapError>

Resolves a a prefix and a local name and obtains the corresponding full IriS

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§