28 releases

0.1.60 Mar 11, 2025
0.1.53 Nov 13, 2024
0.1.35 Oct 25, 2024
0.1.5 Jul 30, 2024
0.0.3 Oct 30, 2023

#80 in Science

Download history 78/week @ 2024-12-04 77/week @ 2024-12-11 15/week @ 2024-12-18 5/week @ 2025-01-01 10/week @ 2025-01-08 12/week @ 2025-01-15 19/week @ 2025-01-22 18/week @ 2025-01-29 8/week @ 2025-02-05 29/week @ 2025-02-12 20/week @ 2025-02-19 3/week @ 2025-02-26 80/week @ 2025-03-05 93/week @ 2025-03-12 14/week @ 2025-03-19

193 downloads per month
Used in 20 crates (18 directly)

MIT/Apache

46KB
984 lines

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–17MB
~218K SLoC