| Crates.io | oxrdf_elevont |
| lib.rs | oxrdf_elevont |
| version | 0.3.0-beta.1 |
| created_at | 2025-07-15 12:48:17.48136+00 |
| updated_at | 2025-07-20 20:15:14.575679+00 |
| description | Basic data structures related to RDF |
| homepage | |
| repository | https://github.com/elevont/oxigraph/tree/main/lib/oxrdf |
| max_upload_size | |
| id | 1753243 |
| size | 239,854 |
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 1.2 is available behind the rdf-12 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);
This project is licensed under either of
<http://www.apache.org/licenses/LICENSE-2.0>)<http://opensource.org/licenses/MIT>)at your option.
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.