25 releases

0.2.4 Jan 11, 2025
0.2.3 Nov 7, 2024
0.2.2 Oct 31, 2024
0.2.0-alpha.5 May 22, 2024
0.1.0 Mar 19, 2022

#493 in Rust patterns

Download history 1279/week @ 2025-03-10 1181/week @ 2025-03-17 1428/week @ 2025-03-24 707/week @ 2025-03-31 1036/week @ 2025-04-07 898/week @ 2025-04-14 1721/week @ 2025-04-21 3210/week @ 2025-04-28 2298/week @ 2025-05-05 1732/week @ 2025-05-12 2165/week @ 2025-05-19 1043/week @ 2025-05-26 1057/week @ 2025-06-02 1145/week @ 2025-06-09 1239/week @ 2025-06-16 1314/week @ 2025-06-23

4,833 downloads per month
Used in 78 crates (41 directly)

MIT/Apache

265KB
6K SLoC

OxRDF

Latest Version Released API docs Crates.io downloads actions status Gitter

OxRDF is a simple library providing datastructures encoding RDF 1.1 concepts.

This crate is intended to be a basic building block of other crates like Oxigraph or Spargebra.

Support for RDF-star is available behind the rdf-star feature.

OxRDF is inspired by RDF/JS and Apache Commons RDF.

Use oxrdfio if you need to read or write RDF files.

Usage example:

use oxrdf::*;

let mut graph = Graph::default();

// insertion
let ex = NamedNodeRef::new("http://example.com").unwrap();
let triple = TripleRef::new(ex, ex, ex);
graph.insert(triple);

// simple filter
let results: Vec<_> = graph.triples_for_subject(ex).collect();
assert_eq!(vec![triple], results);

License

This project is licensed under either of

  • Apache License, Version 2.0, (LICENSE-APACHE or <http://www.apache.org/licenses/LICENSE-2.0>)
  • MIT license (LICENSE-MIT or <http://opensource.org/licenses/MIT>)

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Oxigraph by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0.6–1MB
~23K SLoC