16 releases

0.2.0-alpha.4 Mar 23, 2024
0.2.0-alpha.2 Jan 25, 2024
0.1.7 Jun 13, 2023
0.1.5 Mar 19, 2023
0.1.0 Mar 19, 2022

#587 in Data structures

Download history 188/week @ 2023-12-18 224/week @ 2023-12-25 269/week @ 2024-01-01 431/week @ 2024-01-08 282/week @ 2024-01-15 200/week @ 2024-01-22 263/week @ 2024-01-29 268/week @ 2024-02-05 290/week @ 2024-02-12 462/week @ 2024-02-19 290/week @ 2024-02-26 515/week @ 2024-03-04 364/week @ 2024-03-11 503/week @ 2024-03-18 308/week @ 2024-03-25 621/week @ 2024-04-01

1,837 downloads per month
Used in 38 crates (21 directly)

MIT/Apache

260KB
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.7–1.2MB
~26K SLoC