Giter Club home page Giter Club logo

harriet's Introduction

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.

harriet's People

Contributors

hobofan avatar alisomay avatar

Stargazers

Shane Sveller avatar Arto Bendiken avatar Sam Van Campenhout avatar Nikolaus Schlemm avatar Michael Katsevman avatar Ian Channing avatar William Blackerby avatar  avatar guoyibin avatar Ingo Miosga avatar Daniel avatar

Watchers

Daniel avatar

harriet's Issues

Implement triple emitter

See https://www.w3.org/TR/turtle/#sec-parsing

Harriet currently only provides an AST of a Turtle file. To produce a set of RDF triples, one currently has to handle all different syntactic ways in how they could be defined.

A much easier way would be to provide a stream of RDF triples from harriet for Document and Statement::Triples.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.