#rdf

oxrdf

A library providing basic data structures related to RDF

10 releases

new 0.1.5 Mar 19, 2023
0.1.4 Feb 23, 2023
0.1.2 Jan 18, 2023
0.1.1 Dec 7, 2022
0.1.0-beta.2 Jan 29, 2022

#172 in Data structures

Download history 254/week @ 2022-11-30 278/week @ 2022-12-07 94/week @ 2022-12-14 187/week @ 2022-12-21 200/week @ 2022-12-28 78/week @ 2023-01-04 92/week @ 2023-01-11 168/week @ 2023-01-18 71/week @ 2023-01-25 137/week @ 2023-02-01 95/week @ 2023-02-08 151/week @ 2023-02-15 289/week @ 2023-02-22 150/week @ 2023-03-01 133/week @ 2023-03-08 176/week @ 2023-03-15

781 downloads per month
Used in 7 crates (3 directly)

MIT/Apache

230KB
5.5K 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.

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.3–0.8MB
~15K SLoC