An open API service indexing awesome lists of open source software.

https://github.com/field33/harriet

Parser and serializer for the Turtle format
https://github.com/field33/harriet

Last synced: 4 months ago
JSON representation

Parser and serializer for the Turtle format

Awesome Lists containing this project

README

          

Harriet
===========================

[github](https://github.com/field33/harriet)
[crates.io](https://crates.io/crates/harriet)
[docs.rs](https://docs.rs/harriet)

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

## Installation

Add harriet to your project (assuming [cargo-edit][cargo-edit] is installed) via:
```bash
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](https://github.com/field33/harriet/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

* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)

at your option.

[turtle]: https://www.w3.org/TR/turtle/
[rdf-wiki]: https://en.wikipedia.org/wiki/Resource_Description_Framework
[cargo-edit]: https://github.com/killercup/cargo-edit