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

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

Required methods

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

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

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

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

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

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

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

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

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

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

fn clear(&mut self)[src]

Loading content...

Provided methods

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

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

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

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

Loading content...

Implementors

Loading content...