A Rust library for the Header Dictionary Triples compressed RDF format, including:
However it cannot:
For this functionality and acknowledgement of all the original authors, please look at the reference implementations in C++ and Java by the https://github.com/rdfhdt organisation.
It also cannot:
If you need any of the those features, consider using a SPARQL endpoint instead.
toml
[dependencies]
hdt = "0.0.11"
```rust use hdt::Hdt;
let file = std::fs::File::open("example.hdt").expect("error opening file");
let hdt = Hdt::Rc
You can also use the Sophia adapter to load HDT files and reduce memory consumption of an existing application based on Sophia:
```rust use hdt::{Hdt,HdtGraph}; use sophia::term::BoxTerm; use sophia::graph::Graph;
let file = std::fs::File::open("dbpedia.hdt").expect("error opening file");
let hdt = Hdt::
If you don't want to pull in the Sophia dependency, you can exclude the adapter:
toml
[dependencies]
hdt = { version = "0.0.11", default-features = false }