field33 / harriet

Parser and serializer for the Turtle format

Home Page:https://crates.io/crates/harriet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Harriet

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".

Installation

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

cargo add harriet

Goals

  • 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

Non-Goals

  • 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)

Contributing

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.

License

Licensed under either of

at your option.

About

Parser and serializer for the Turtle format

https://crates.io/crates/harriet

License:Apache License 2.0


Languages

Language:Rust 100.0%