json2rdf
This Rust-based tool converts JSON data into RDF format, utilizing the oxrdf
crate for RDF graph handling and serde_json
for efficient JSON parsing. It supports lightweight, memory-efficient processing by reading JSON data values sequentially, which makes it suitable for large datasets.
Using the json2rdf CLI
This library includes a CLI utility for parsing JSON and generating N-Triple RDF using the convert
subcommand. The binary can be built using cargo build
.
)
)
Using the convert library
The conversion functionality can also be called directly in Rust. The library supports writing results to a file or building an in-memory oxrdf::Graph
.
use json_to_rdf;
// capture conversion results to file
let results = json_to_rdf;
// capture conversion results to an oxrdf::Graph
let results = json_to_rdf;
License
This project is licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- BSD 3-Clause License (LICENSE-BSD-3 or https://opensource.org/licenses/BSD-3-Clause)
at your option.