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
- Host: GitHub
- URL: https://github.com/field33/harriet
- Owner: field33
- License: apache-2.0
- Created: 2021-07-25T14:58:31.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-07-04T15:17:59.000Z (about 3 years ago)
- Last Synced: 2026-02-20T11:37:39.018Z (5 months ago)
- Language: Rust
- Homepage: https://crates.io/crates/harriet
- Size: 118 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
- awesome-semantic-web - harriet - A format-preserving serialization/deserialization library for Turtle. (Programming / Rust)
README
Harriet
===========================
[
](https://github.com/field33/harriet)
[
](https://crates.io/crates/harriet)
[
](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