6 releases

0.2.3 Sep 19, 2022
0.2.2 Sep 13, 2022
0.2.0 Jul 25, 2022
0.1.1 Jun 22, 2022
0.1.0 Oct 29, 2021

#264 in Parser implementations

Download history 34/week @ 2022-06-18 21/week @ 2022-06-25 15/week @ 2022-07-02 28/week @ 2022-07-09 60/week @ 2022-07-16 66/week @ 2022-07-23 51/week @ 2022-07-30 86/week @ 2022-08-06 103/week @ 2022-08-13 95/week @ 2022-08-20 42/week @ 2022-08-27 105/week @ 2022-09-03 202/week @ 2022-09-10 97/week @ 2022-09-17 104/week @ 2022-09-24

512 downloads per month
Used in fewer than 7 crates


2.5K SLoC


github crates.io docs.rs

Harriet is a parser for the Turtle document format, which is a format "that allows an RDF graph to be completely written in a compact and natural text form".


Add harriet to your project (assuming cargo-edit is installed) via:

cargo add harriet


  • Provide a direct 1:1 AST mapping of a Turtle document
  • Provide abilities to easily navigate and edit the AST
  • Preserve the format: Parsing a document and then writing it, should yield the input document, including all whitespace and comments


  • The main harriet crate doesn't aim to produce a RDF graph via interpreting the contents of a document. This is left to optional crates, that convert the AST into a specific RDF representation (e.g. rdftk)


We are happy about any contributions!

To get started you can take a look at our Github issues.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as below, without any additional terms or conditions.


Licensed under either of

at your option.


~22K SLoC