[][src]Trait rdftk_core::graph::mapping::PrefixMappings

pub trait PrefixMappings: Debug {
    pub fn is_empty(&self) -> bool;
pub fn len(&self) -> usize;
pub fn get_namespace(&self, prefix: &Prefix) -> Option<&IRIRef>;
pub fn get_prefix(&self, namespace: &IRIRef) -> Option<&Prefix>;
pub fn prefixes(&self) -> Vec<&Prefix>;
pub fn expand(&self, qname: &QName) -> Option<IRIRef>;
pub fn compress(&self, iri: &IRIRef) -> Option<QName>;
pub fn insert_default(&mut self, iri: IRIRef) -> &mut Self
    where
        Self: Sized
;
pub fn insert(&mut self, prefix: &str, iri: IRIRef) -> &mut Self
    where
        Self: Sized
;
pub fn remove(&mut self, prefix: &Prefix);
pub fn clear(&mut self); pub fn get_default_namespace(&self) -> Option<&IRIRef> { ... }
pub fn include_xsd(&mut self) -> &mut Self
    where
        Self: Sized
, { ... }
pub fn include_rdf(&mut self) -> &mut Self
    where
        Self: Sized
, { ... }
pub fn include_rdfs(&mut self) -> &mut Self
    where
        Self: Sized
, { ... } }

Required methods

pub fn is_empty(&self) -> bool[src]

pub fn len(&self) -> usize[src]

pub fn get_namespace(&self, prefix: &Prefix) -> Option<&IRIRef>[src]

pub fn get_prefix(&self, namespace: &IRIRef) -> Option<&Prefix>[src]

pub fn prefixes(&self) -> Vec<&Prefix>[src]

pub fn expand(&self, qname: &QName) -> Option<IRIRef>[src]

pub fn compress(&self, iri: &IRIRef) -> Option<QName>[src]

pub fn insert_default(&mut self, iri: IRIRef) -> &mut Self where
    Self: Sized
[src]

pub fn insert(&mut self, prefix: &str, iri: IRIRef) -> &mut Self where
    Self: Sized
[src]

pub fn remove(&mut self, prefix: &Prefix)[src]

pub fn clear(&mut self)[src]

Loading content...

Provided methods

pub fn get_default_namespace(&self) -> Option<&IRIRef>[src]

pub fn include_xsd(&mut self) -> &mut Self where
    Self: Sized
[src]

pub fn include_rdf(&mut self) -> &mut Self where
    Self: Sized
[src]

pub fn include_rdfs(&mut self) -> &mut Self where
    Self: Sized
[src]

Loading content...

Implementors

Loading content...