Awesome Open Source
Awesome Open Source

Build Status Current Version

Rome is an RDF library written in safe Rust.



  • Access any data in a uniform way as RDF by implementing a Graph.
  • Read/write Turtle and N-Triple files.
  • Iterate over triples in graphs.
  • Wrap a graph in code generated from an ontology.
  • Use the type system to distinguish between blank nodes, IRIs and literals at compile time.

Generated code

The ontology code is generated by these commands:

cargo run --example generate_code src/ontology ontologies/*
cargo fmt


The Turtle parser passes the W3 test suite.

Run the tests like this:

tar xf TESTS.tar.gz
cargo run --example w3tests TurtleTests/manifest.ttl


Rome is licensed under AGPLv3.0 or any later version.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the AGPLv3.0 license, shall be licensed as above, without any additional terms or conditions.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
rust (3,976
rdf (76

Find Open Source By Browsing 7,000 Topics Across 59 Categories