26 releases

new 0.1.52 Nov 1, 2024
0.1.26 Sep 20, 2024
0.1.5 Jul 30, 2024
0.0.10 Jan 29, 2024
0.0.3 Oct 30, 2023

#2283 in Database interfaces

Download history 153/week @ 2024-07-12 41/week @ 2024-07-19 340/week @ 2024-07-26 51/week @ 2024-08-02 627/week @ 2024-08-09 124/week @ 2024-08-16 71/week @ 2024-08-23 99/week @ 2024-08-30 59/week @ 2024-09-06 149/week @ 2024-09-13 311/week @ 2024-09-20 79/week @ 2024-09-27 57/week @ 2024-10-04 36/week @ 2024-10-11 334/week @ 2024-10-18 279/week @ 2024-10-25

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

MIT/Apache

45KB
952 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

~5–19MB
~229K SLoC