1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! Prefix map implementation
//!
//! Implements prefix maps, which are used in TURTLE, SPARQL and ShEx
//!
//! A prefix map is a list of alias declarations associated with IRIs:
//!
//! ```turtle
//! prefix schema: <https://schema.org/>
//! prefix : <https://example.org/>
//! ```
//!
//! Example
//!
//! ```
//! # use std::str::FromStr;
//! # use iri_s::{IriS, error::IriSError};
//! # use prefixmap::PrefixMap;
//!
//! # fn main() -> Result<(), IriSError> {
//! let schema_iri = IriS::from_str("https://schema.org/")?;
//! let example_iri = IriS::from_str("https://example.org/")?;
//! let mut pm = PrefixMap::new();
//! pm.add_prefix("schema", schema_iri);
//! pm.add_prefix("", example_iri);
//! # Ok(())
//! # }
//! ```
pub use crate*;
pub use crateDerefIri;
pub use crateIriRef;
pub use cratePrefixMap;