35 releases

new 0.1.91 Sep 18, 2025
0.1.82 Aug 20, 2025
0.1.81 Jul 13, 2025
0.1.60 Mar 11, 2025
0.0.3 Oct 30, 2023

#1709 in Web programming

Download history 98/week @ 2025-05-28 39/week @ 2025-06-11 30/week @ 2025-06-18 175/week @ 2025-06-25 78/week @ 2025-07-02 169/week @ 2025-07-09 27/week @ 2025-07-16 34/week @ 2025-07-23 2/week @ 2025-07-30 3/week @ 2025-08-06 396/week @ 2025-08-20 227/week @ 2025-08-27 387/week @ 2025-09-03 267/week @ 2025-09-10

1,277 downloads per month
Used in 23 crates (21 directly)

MIT/Apache

50KB
1K SLoC

prefixmap

This crate contains an implementation of prefixmaps in Rust. The prefixmaps are used in RDF.


lib.rs:

Prefix map implementation

Implements prefix maps, which are used in Turtle and ShEx

A prefix map is a list of alias declarations associated with IRIs

prefix schema: <http://schema.org/>
prefix :       <http://example.org/>

Example


let schema_iri  = IriS::from_str("http://schema.org/")?;
let example_iri = IriS::from_str("http://example.org/")?;
let mut pm = PrefixMap::new();
pm.insert("schema", &schema_iri);
pm.insert("", &example_iri);

Dependencies

~6–22MB
~321K SLoC