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
1,277 downloads per month
Used in 23 crates
(21 directly)
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