11 releases

new 0.0.12 Jun 17, 2024
0.0.11 Jun 8, 2024
0.0.10 Jan 29, 2024
0.0.6 Dec 30, 2023
0.0.3 Oct 30, 2023

#6 in #iri

Download history 143/week @ 2024-02-26 8/week @ 2024-03-04 18/week @ 2024-03-11 4/week @ 2024-03-18 39/week @ 2024-04-01 4/week @ 2024-04-15 5/week @ 2024-04-22 2/week @ 2024-05-13 28/week @ 2024-05-20 34/week @ 2024-05-27 190/week @ 2024-06-03 39/week @ 2024-06-10

292 downloads per month
Used in 11 crates

MIT/Apache

31KB
677 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

~2–13MB
~112K SLoC