Skip to main content

RdfVocabulary

Trait RdfVocabulary 

Source
pub trait RdfVocabulary {
    const BASE: &'static str;

    // Provided method
    fn base_iri() -> &'static IriS { ... }
}

Required Associated Constants§

Source

const BASE: &'static str

Provided Methods§

Source

fn base_iri() -> &'static 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§

Source§

impl RdfVocabulary for RdfVocab

RDF vocabulary terms

Source§

const BASE: &'static str = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"

Source§

impl RdfVocabulary for RdfsVocab

RDFS vocabulary terms.

Source§

const BASE: &'static str = "http://www.w3.org/2000/01/rdf-schema#"

Source§

impl RdfVocabulary for ShaclNodeExprVocab

Source§

const BASE: &'static str = "http://www.w3.org/ns/shacl-node-expr#"

Source§

impl RdfVocabulary for ShaclVocab

SHACL vocabulary terms

Source§

const BASE: &'static str = "http://www.w3.org/ns/shacl#"

Source§

impl RdfVocabulary for XsdVocab

XSD vocabulary terms

Source§

const BASE: &'static str = "http://www.w3.org/2001/XMLSchema#"