27 releases

new 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

#2272 in Database interfaces

Download history 266/week @ 2024-07-28 135/week @ 2024-08-04 559/week @ 2024-08-11 81/week @ 2024-08-18 104/week @ 2024-08-25 77/week @ 2024-09-01 63/week @ 2024-09-08 290/week @ 2024-09-15 157/week @ 2024-09-22 87/week @ 2024-09-29 46/week @ 2024-10-06 33/week @ 2024-10-13 487/week @ 2024-10-20 280/week @ 2024-10-27 69/week @ 2024-11-03 168/week @ 2024-11-10

1,004 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–20MB
~226K SLoC