# RDF.rs Reader: JSON-LD
[](https://unlicense.org)
[](https://blog.rust-lang.org/2025/02/20/Rust-1.85.0/)
[](https://crates.io/crates/rdf-reader-jsonld)
[](https://docs.rs/rdf-reader-jsonld)
A JSON-LD file reader for [RDF.rs] knowledge graphs.
> [!TIP]
> 🚧 _We are building in public. This is presently under heavy construction._
<sub>
[[Features](#-features)] |
[[Prerequisites](#%EF%B8%8F-prerequisites)] |
[[Installation](#%EF%B8%8F-installation)] |
[[Examples](#-examples)] |
[[Reference](#-reference)] |
[[Development](#%E2%80%8D-development)]
</sub>
## ✨ Features
- Built on async Rust using lazily-evaluated streams throughout.
- Plays nice with others: interoperates with Oxigraph, Rudof, and Sophia.
- 100% pure and safe Rust with minimal dependencies and no bloat.
- Supports `no_std` environments from the get-go.
- Supports opting out of any feature using comprehensive [feature flags].
- Adheres to the Rust API Guidelines in its [naming conventions].
- Cuts red tape: 100% free and unencumbered public domain software.
## 🛠️ Prerequisites
- [Rust] 1.85+ (2024 edition)
## ⬇️ Installation
### Installation via Cargo
```bash
cargo add rdf-reader-jsonld
```
### Installation in `Cargo.toml`
Enable all default features:
```toml
[dependencies]
rdf-reader-jsonld = { version = "0.4" }
```
Enable only specific features:
```toml
[dependencies]
rdf-reader-jsonld = { version = "0.4", default-features = false, features = ["serde"] }
```
## 👉 Examples
### Importing the Library
```rust
use rdf_reader_jsonld::JsonldReader;
```
## 📚 Reference
[docs.rs/rdf-reader-jsonld](https://docs.rs/rdf-reader-jsonld)
### Feature Flags
#### Interoperability
| `serde` | 1.0 | Derives `serde::{Serialize, Deserialize}`
### See Also
| [rdf-reader-cottas](https://github.com/rust-rdf/rdf.rs/tree/master/lib/rdf-reader-cottas#readme) | [](https://crates.io/crates/rdf-reader-cottas) | [](https://docs.rs/rdf-reader-cottas) |
| [rdf-reader-hdt](https://github.com/rust-rdf/rdf.rs/tree/master/lib/rdf-reader-hdt#readme) | [](https://crates.io/crates/rdf-reader-hdt) | [](https://docs.rs/rdf-reader-hdt) |
| [rdf-reader-jelly](https://github.com/rust-rdf/rdf.rs/tree/master/lib/rdf-reader-jelly#readme) | [](https://crates.io/crates/rdf-reader-jelly) | [](https://docs.rs/rdf-reader-jelly) |
| [rdf-reader-jsonld](https://github.com/rust-rdf/rdf.rs/tree/master/lib/rdf-reader-jsonld#readme) | [](https://crates.io/crates/rdf-reader-jsonld) | [](https://docs.rs/rdf-reader-jsonld) |
| [rdf-reader-nquads](https://github.com/rust-rdf/rdf.rs/tree/master/lib/rdf-reader-nquads#readme) | [](https://crates.io/crates/rdf-reader-nquads) | [](https://docs.rs/rdf-reader-nquads) |
| [rdf-reader-ntriples](https://github.com/rust-rdf/rdf.rs/tree/master/lib/rdf-reader-ntriples#readme) | [](https://crates.io/crates/rdf-reader-ntriples) | [](https://docs.rs/rdf-reader-ntriples) |
| [rdf-reader-rdfxml](https://github.com/rust-rdf/rdf.rs/tree/master/lib/rdf-reader-rdfxml#readme) | [](https://crates.io/crates/rdf-reader-rdfxml) | [](https://docs.rs/rdf-reader-rdfxml) |
| [rdf-reader-trig](https://github.com/rust-rdf/rdf.rs/tree/master/lib/rdf-reader-trig#readme) | [](https://crates.io/crates/rdf-reader-trig) | [](https://docs.rs/rdf-reader-trig) |
| [rdf-reader-turtle](https://github.com/rust-rdf/rdf.rs/tree/master/lib/rdf-reader-turtle#readme) | [](https://crates.io/crates/rdf-reader-turtle) | [](https://docs.rs/rdf-reader-turtle) |
## 👨💻 Development
```bash
git clone https://github.com/rust-rdf/rdf.rs.git
```
---
[](https://x.com/intent/post?url=https%3A%2F%2Fgithub.com%2Frust-rdf%2Frdf.rs&text=RDF.rs)
[](https://reddit.com/submit?url=https%3A%2F%2Fgithub.com%2Frust-rdf%2Frdf.rs&title=RDF.rs)
[](https://news.ycombinator.com/submitlink?u=https%3A%2F%2Fgithub.com%2Frust-rdf%2Frdf.rs&t=RDF.rs)
[](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fgithub.com%2Frust-rdf%2Frdf.rs)
[](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fgithub.com%2Frust-rdf%2Frdf.rs)
[feature flags]: https://github.com/rust-rdf/rdf.rs/blob/master/lib/rdf-reader-jsonld/Cargo.toml
[naming conventions]: https://rust-lang.github.io/api-guidelines/naming.html
[RDF]: https://www.w3.org/TR/rdf12-concepts/
[RDF.rs]: https://github.com/rust-rdf/rdf.rs
[Rust]: https://rust-lang.org