27 releases

0.1.53 Nov 13, 2024
0.1.35 Oct 25, 2024
0.1.5 Jul 30, 2024
0.0.10 Jan 29, 2024
0.0.3 Oct 30, 2023

#2100 in Database interfaces

Download history 231/week @ 2024-10-29 42/week @ 2024-11-05 176/week @ 2024-11-12 42/week @ 2024-11-19 51/week @ 2024-11-26 41/week @ 2024-12-03 118/week @ 2024-12-10 18/week @ 2024-12-17 5/week @ 2024-12-31 9/week @ 2025-01-07 12/week @ 2025-01-14 19/week @ 2025-01-21 17/week @ 2025-01-28 9/week @ 2025-02-04 27/week @ 2025-02-11

76 downloads per month
Used in 21 crates (19 directly)

MIT/Apache

46KB
958 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
~225K SLoC